es.cesar.quitesleep.ddbb
Class Deletes

java.lang.Object
  extended by es.cesar.quitesleep.ddbb.Deletes
All Implemented Interfaces:
IDDBB

public class Deletes
extends java.lang.Object
implements IDDBB

Author:
Cesar Valiente Gordo

Field Summary
(package private)  java.lang.String CLASS_NAME
           
 
Fields inherited from interface es.cesar.quitesleep.interfaces.IDDBB
DDBB_DIR, DDBB_FILE, DEEP, QUITESLEEP_PATH, SDCARD_PATH, SEMAPHORE
 
Constructor Summary
Deletes(com.db4o.ObjectContainer db)
          Constructor
 
Method Summary
 int deleteAllBanned()
           
 int deleteAllCallLog()
           
 int deleteAllContacts()
           
 int deleteAllMails()
           
 int deleteAllPhones()
           
 boolean deleteBanned(Banned banned)
          Delete the banned object passed
 boolean deleteContact(Contact contact)
          Delete one Contact object in the DDBB that matches with the passed
 boolean deleteSettings(Settings settings)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLASS_NAME

final java.lang.String CLASS_NAME
Constructor Detail

Deletes

public Deletes(com.db4o.ObjectContainer db)
Constructor

Parameters:
db -
Method Detail

deleteContact

public boolean deleteContact(Contact contact)
Delete one Contact object in the DDBB that matches with the passed

Parameters:
contact -
Returns:
true or false with the operation result
See Also:
boolean

deleteBanned

public boolean deleteBanned(Banned banned)
Delete the banned object passed

Parameters:
banned -
Returns:
true or false of the banned object delete sucessfully
See Also:
boolean

deleteSettings

public boolean deleteSettings(Settings settings)
Parameters:
settings -
Returns:

deleteAllContacts

public int deleteAllContacts()
Returns:

deleteAllPhones

public int deleteAllPhones()
Returns:

deleteAllMails

public int deleteAllMails()
Returns:

deleteAllBanned

public int deleteAllBanned()
Returns:

deleteAllCallLog

public int deleteAllCallLog()
Returns: