|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.motorola.iden.udm.DateBook
Represents a DateBook list containing DateBook event elements.
Field Summary | |
static int |
NUM_OF_NON_REPEAT_EVENTS
NUM_OF_NON_REPEAT_EVENTS Total non repeat events in the DateBook native database. |
static int |
NUM_OF_REPEAT_EVENTS
NUM_OF_REPEAT_EVENTS Total repeat events in the DateBook native database. |
static int |
TOTAL_AVAILABLE
TOTAL_AVAILABLE Total available slots in the DateBook native database. |
static int |
TOTAL_INUSE
TOTAL_INUSE Total inuse slots in the DateBook native database. |
Method Summary | |
void |
close()
Closes the list, releasing any resources for this list. |
DateBookEvent |
createDateBookEvent()
Factory method to create a DateBookEvent for this DateBookEvent list. |
void |
deleteAllDateBookEvents()
Removes all DateBookEvents from the list. |
java.util.Enumeration |
elements()
Return an Enumeration of all elements in the list. |
java.util.Enumeration |
elements(long startDate,
long endDate)
Return an Enumeration of all elements in the list. |
int[] |
getAvailableStorage()
Returns an integer array the amount of slots available on the native database. |
int[] |
getEventCount()
Returns an integer array of the number of used and empty slots in the DateBook native database. |
int |
getNumOfEntries()
Returns the amount of entries (not individual numbers) in the list. |
int[] |
getSupportedFields()
Returns an int array containing all field IDs supported by this list. |
int[] |
getSupportedTypes(int fieldID)
Returns an integer array containing the supported type ids for the given field ID. |
DateBookEvent |
importDateBookEvent(DateBookEvent element)
Imports the given DateBookEvent into this DateBookEvent list by making a new DateBookEvent for the list and filling its information with as much information as it can from the provided DateBookEvent. |
static boolean |
isCurrent()
Returns a flag indicating whether or not a DateBook object has been created since the last native Date Book update. |
boolean |
isSupportedField(int fieldID)
Indicates whether or not the given fieldID is supported in this UDM list. |
void |
removeDateBookEvent(DateBookEvent element)
Removes a specific DateBookEvent from the list. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int TOTAL_AVAILABLE
public static final int TOTAL_INUSE
public static final int NUM_OF_REPEAT_EVENTS
public static final int NUM_OF_NON_REPEAT_EVENTS
Method Detail |
public DateBookEvent createDateBookEvent() throws UDMException
UDMException
- if the element cannot be created (e.g. "there are not enough slots") or the list is no longer accessible or closed.public DateBookEvent importDateBookEvent(DateBookEvent element) throws UDMException
element
- the DateBookEvent to import into the list.
UDMException
- If an error occurs or there is not enough space or the list is no longer accessible or closed.
java.lang.IllegalArgumentException
- If the DateBookEvent is null.
java.lang.SecurityException
- if the application is not given permission to write to the DateBookEvent list.public void removeDateBookEvent(DateBookEvent element) throws UDMException
element
- the DateBookEvent to be removed from the list.
UDMException
- If an error occurs deleting the item or the list is no longer accessible or closed.
java.lang.IllegalArgumentException
- If the DateBookEvent is null.
java.lang.SecurityException
- if the application is not given permission to write to the DateBookEvent list.public void deleteAllDateBookEvents() throws UDMException
UDMException
- If an error occurs deleting the item or the list is no longer accessible or closed.
java.lang.SecurityException
- if the application is not given permission to write to the DateBookEvent list.public int[] getEventCount() throws UDMException
UDMException
- if the list is closed or is no longer accessible.public java.util.Enumeration elements(long startDate, long endDate) throws UDMException
startDate
- inclusively begin looking for events on this date in long ms format.endDate
- inclusively stop looking for events beyond this date in long ms format.
java.lang.IllegalArgumentException
- if the value is outside the range supported by
the native database.
UDMException
- If the operation is unsupported, an error occurs, or the list
is no longer accessible or closed.public void close() throws UDMException
close
in interface UDMList
UDMException
- If the list is no longer accessible.public java.util.Enumeration elements() throws UDMException
elements
in interface UDMList
UDMException
- If an error occurs or the list is no longer accessible or closed.public static boolean isCurrent()
DateBook
object created is current, no new object was created.public boolean isSupportedField(int fieldID) throws UDMException
isSupportedField
in interface UDMList
fieldID
- The fieldID to check, as defined by the UDMEntry subclasses.
The acceptable fieldIDs should be DateBookEvent.START, DateBookEvent.END, DateBookEvent.ALARM,
DateBookEvent.SUMMARY, DateBookEvent.LOCATION, DateBookEvent.REVISION, DateBookEvent.RINGER,
DateBookEvent.STYLE, DateBookEvent.MIDLET_SUITE and DateBookEvent.MIDLET.
Only START, END, SUMMARY, LOCATION and ALARM are supported on Gemini product.
java.lang.IllegalArgumentException
- if fieldID is an invalid ID for this list.
UDMException
- if the list is closed or is no longer accessible.public int[] getSupportedFields() throws UDMException
getSupportedFields
in interface UDMList
UDMException
- - if the list is closed or is no longer accessible.public int[] getSupportedTypes(int fieldID) throws UDMException
getSupportedTypes
in interface UDMList
fieldID
- the fieldID to check
java.lang.IllegalArgumentException
- if fieldID is not one of the valid field IDs for the implementing class.
UDMException
- if the list is closed or is no longer accessible.public int[] getAvailableStorage() throws UDMException
UDMException
- if the list is closed or is no longer accessible.public int getNumOfEntries() throws UDMException
getNumOfEntries
in interface UDMList
UDMException
- if the list is closed or is no longer accessible.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |