|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface BlackBerryPIMItem
Contains the functionality for the BlackBerry-specific implementation of PIMItem
.
PIMItem
Field Summary |
---|
Fields inherited from interface javax.microedition.pim.PIMItem |
---|
ATTR_NONE, BINARY, BOOLEAN, DATE, EXTENDED_ATTRIBUTE_MIN_VALUE, EXTENDED_FIELD_MIN_VALUE, INT, STRING, STRING_ARRAY |
Method Summary | ||
---|---|---|
|
int |
commit(int flags)
Persists the data in the item to its PIM list. |
|
boolean |
isSupportedFlag(int flag)
Returns whether or not a flag is supported for BlackBerryPIMItem.commit(int) . |
Methods inherited from interface javax.microedition.pim.PIMItem |
---|
addBinary, addBoolean, addDate, addInt, addString, addStringArray, addToCategory, commit, countValues, getAttributes, getBinary, getBoolean, getCategories, getDate, getFields, getInt, getPIMList, getString, getStringArray, isModified, maxCategories, removeFromCategory, removeValue, setBinary, setBoolean, setDate, setInt, setString, setStringArray |
Method Detail |
---|
int commit(int flags) throws PIMException
PIMItem
, the data is not immediately
written to the underlying data storage for the list. This method commits
that data to the underlying data storage for the list.
Some devices may not allow categories in the item to be persisted if the categories
are not in the list returned from PIMList.getCategories()
.
In this case the categories are dropped silently when this method is invoked
(this allows data imported using
PIM.fromSerialFormat(java.io.InputStream, String)
to be
persisted).
Also note that some field values may be altered during the commit to fit
platform restrictions. A common example of this is DATE
fields. If a platform does not support storing its Date values with
millisecond granularity, the platform rounds down the given Date value to
its nearest value supported by the platform.
flags
- Option for the commit.
Currently, the only supported flag is BlackBerryEvent.DO_NOT_NOTIFY_ATTENDEES
.
If this flag is used, no notification is sent to attendees if the PIMItem
is a meeting
(unless it is a new meeting or if invitees have been added since the last update,
because invitees must be notified about the meeting in order to accept the meeting or not).
BlackBerryEvent.MEETING_RECORD_NOT_FOUND
or
BlackBerryEvent.INVITEE_LIST_CHANGED
means that notification is sent.
PIMException
- if the commit encounters an error and cannot complete.
Also thrown if the item does not belong to any list, or
the list is closed or inaccessible.
SecurityException
- if the application has not been granted write access to
the PIM list or the list is opened PIM.READ_ONLY
.boolean isSupportedFlag(int flag)
BlackBerryPIMItem.commit(int)
.
flag
- Option flag to be validated. Currently, the only supported flag is
BlackBerryEvent.DO_NOT_NOTIFY_ATTENDEES
.
true
if supported; false
otherwise.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright 1999-2011 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Java is a trademark of Oracle America Inc. in the US and other countries.
Legal