|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectes.cesar.quitesleep.ddbb.Selects
public class Selects
Field Summary |
---|
Fields inherited from interface es.cesar.quitesleep.interfaces.IDDBB |
---|
DDBB_DIR, DDBB_FILE, DEEP, QUITESLEEP_PATH, SDCARD_PATH, SEMAPHORE |
Constructor Summary | |
---|---|
Selects(com.db4o.ObjectContainer db)
Constructor |
Method Summary | |
---|---|
int |
countCallLog()
Return an integer counts the number of CallLog objects in the ddbb. |
int |
getNumberOfBlockCallsConf()
This function gets the number of the BlockCallsConf objects in the ddbb. |
int |
getNumberOfContacts()
This function gets the number of the contacts objects in the ddbb. |
int |
getNumberOfMuteOrHangup()
This function gets the number of the MuteOrHangUp objects in the ddbb. |
java.util.List<Banned> |
selectAllBannedContacts()
Get all banned contacts from the database |
java.util.List<CallLog> |
selectAllCallLog()
Select all CallLog objects from the ddbb |
java.util.List<Mail> |
selectAllContactMailForContact(Contact contact)
|
java.util.List<Mail> |
selectAllContactMailsForName(java.lang.String contactName)
Get all mails from the selected contact |
java.util.List<Phone> |
selectAllContactPhonesForName(java.lang.String contactName)
Get all phones of the selected contact |
java.util.List<Contact> |
selectAllContacts()
Select all Contact objects from the DDBB and return it. |
java.util.List<Contact> |
selectAllNotBannedContacts()
Get all not banned contacts from the database |
Banned |
selectBannedContactForName(java.lang.String contactName)
Get the banned object that match with the contactName passed. |
Contact |
selectBannedContactForPhoneNumber(java.lang.String phoneNumber)
Get the banned contact associate to the phone number passed to the function. |
BlockCallsConf |
selectBlockCallConf()
Select the BlockCallsConfig object in the ddbb, only must return one object. |
Contact |
selectContactForMail(java.lang.String mailContact)
Select Contact object match with the passed phoneNumber, search along all contact's phone numbers. |
Contact |
selectContactForName(java.lang.String contactName)
Select one Contact that is the same with the name passed |
Contact |
selectContactForPhoneNumber(java.lang.String phoneContact)
Select Contact object match with the passed phoneNumber, search along all contact's phone numbers. |
MuteOrHangUp |
selectMuteOrHangUp()
This function gets a MuteOrHangUp object from the ddbb. |
Phone |
selectPhoneForPhoneNumber(java.lang.String phoneNumber)
Select the Phone object that contains the phoneNumber passed throw the param value. |
Schedule |
selectSchedule()
Get the (for the moment) the one Schedule object in the database. |
Settings |
selectSettings()
Return the settings object only if is the one in the ddbb, else return null because have to be an error, only must be one Settings object in the ddbb. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Selects(com.db4o.ObjectContainer db)
db
- Method Detail |
---|
public int getNumberOfContacts()
public int getNumberOfMuteOrHangup()
public int getNumberOfBlockCallsConf()
public java.util.List<Contact> selectAllContacts()
List
public Contact selectContactForName(java.lang.String contactName)
contactName
-
Contact
public Contact selectContactForPhoneNumber(java.lang.String phoneContact)
phoneContact
-
Contact
public Contact selectContactForMail(java.lang.String mailContact)
phoneNumber
-
Contact
public java.util.List<Phone> selectAllContactPhonesForName(java.lang.String contactName)
contactName
-
List
public java.util.List<Mail> selectAllContactMailsForName(java.lang.String contactName)
contactName
-
List
public java.util.List<Mail> selectAllContactMailForContact(Contact contact)
contact
-
public java.util.List<Banned> selectAllBannedContacts()
List
public java.util.List<Contact> selectAllNotBannedContacts()
public Contact selectBannedContactForPhoneNumber(java.lang.String phoneNumber)
phoneNumber
-
Contact
public Banned selectBannedContactForName(java.lang.String contactName)
contactName
-
Banned
public Schedule selectSchedule()
Schedule
public Settings selectSettings()
Settings
public Phone selectPhoneForPhoneNumber(java.lang.String phoneNumber)
phoneNumber
-
public java.util.List<CallLog> selectAllCallLog()
public int countCallLog()
public BlockCallsConf selectBlockCallConf()
BlockCallsConf
public MuteOrHangUp selectMuteOrHangUp()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |