Java Doc for AbstractPIMItem.java in  » 6.0-JDK-Modules » j2me » com » sun » kvem » midp » pim » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » 6.0 JDK Modules » j2me » com.sun.kvem.midp.pim 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.sun.kvem.midp.pim.AbstractPIMItem

All known Subclasses:   com.sun.kvem.midp.pim.ToDoImpl,  com.sun.kvem.midp.pim.ContactImpl,  com.sun.kvem.midp.pim.EventImpl,
AbstractPIMItem
abstract public class AbstractPIMItem implements PIMItem(Code)
Partial implementation of PIMItem. Extended by ContactImpl, EventImpl and ToDoImpl.



Constructor Summary
protected  AbstractPIMItem(AbstractPIMList pimList, int type)
     Constructs a PIM list.
protected  AbstractPIMItem(AbstractPIMList pimList, PIMItem baseItem)
     This constructor is used when importing an item.

Method Summary
public  voidaddBinary(int field, int attributes, byte[] value, int offset, int length)
    
public  voidaddBoolean(int field, int attributes, boolean value)
    
public  voidaddDate(int field, int attributes, long value)
    
public  voidaddInt(int field, int attributes, int value)
    
public  voidaddString(int field, int attributes, String value)
    
public  voidaddStringArray(int field, int attributes, String[] value)
    
public  voidaddToCategory(String category)
    
public  voidcommit()
    
static  RuntimeExceptioncomplaintAboutField(int type, int field)
     Throw an exception based on field failure type.
public  intcountValues(int field)
    
protected  StringformatData()
     Format the data for output.
public  intgetAttributes(int field, int index)
    
public  byte[]getBinary(int field, int index)
    
public  booleangetBoolean(int field, int index)
    
public  String[]getCategories()
    
 String[]getCategoriesRaw()
    
public  longgetDate(int field, int index)
    
abstract  PIMFormatgetEncodingFormat()
     Gets the format codec used to encode and decode this object for storage.
 PIMFieldgetField(int field, boolean create, boolean check)
     Gets the field entry.
public  PIMFieldgetField(int key)
     Looks up a PIMField.
public  int[]getFields()
    
public  intgetInt(int field, int index)
    
 ObjectgetKey()
    
public  PIMListgetPIMList()
    
public  ObjectgetPIMListHandle()
     Returns the handle of the PIMList associated with this item. the handle of the PIMList that this item belongs to.
abstract protected  intgetRevisionField()
     Gets the field that corresponds to the REVISION of this PIMItem.
public  StringgetString(int field, int index)
    
public  String[]getStringArray(int field, int index)
    
abstract protected  intgetUIDField()
     Gets the field that corresponds to the UID of this PIMItem.
 booleanisInCategory(String category)
     Checks the category is valid.
public  booleanisModified()
    
static  booleanisValidPIMField(int type, int field)
     Checks for valid PIM field.
public  intmaxCategories()
    
public  voidputField(int key, PIMField field)
     Stores a PIMField.
 voidremove()
    
public  voidremoveField(int key)
     Removes a PIMField.
public  voidremoveFromCategory(String category)
    
public  voidremoveValue(int field, int index)
    
public  voidsetBinary(int field, int index, int attributes, byte[] value, int offset, int length)
    
public  voidsetBoolean(int field, int index, int attributes, boolean value)
    
public  voidsetDate(int field, int index, int attributes, long value)
    
protected  voidsetDefaultValues()
     Sets default values for this item.
public  voidsetInt(int field, int index, int attributes, int value)
    
 voidsetKey(Object key)
    
 voidsetModified(boolean modified)
     Sets the modified flag.
 voidsetPIMList(AbstractPIMList list)
     Set the PIMList of this item.
public  voidsetString(int field, int index, int attributes, String value)
    
public  voidsetStringArray(int field, int index, int attributes, String[] value)
    
abstract protected  StringtoDisplayableString()
     Converts the record to a printable format.
public  StringtoString()
     Convert the data to a String.


Constructor Detail
AbstractPIMItem
protected AbstractPIMItem(AbstractPIMList pimList, int type)(Code)
Constructs a PIM list.
Parameters:
  pimList - initial list
Parameters:
  type - type of list



AbstractPIMItem
protected AbstractPIMItem(AbstractPIMList pimList, PIMItem baseItem)(Code)
This constructor is used when importing an item.
Parameters:
  pimList - initial list
Parameters:
  baseItem - initial entry




Method Detail
addBinary
public void addBinary(int field, int attributes, byte[] value, int offset, int length)(Code)



addBoolean
public void addBoolean(int field, int attributes, boolean value)(Code)



addDate
public void addDate(int field, int attributes, long value)(Code)



addInt
public void addInt(int field, int attributes, int value)(Code)



addString
public void addString(int field, int attributes, String value)(Code)



addStringArray
public void addStringArray(int field, int attributes, String[] value)(Code)



addToCategory
public void addToCategory(String category) throws PIMException(Code)



commit
public void commit() throws PIMException(Code)



complaintAboutField
static RuntimeException complaintAboutField(int type, int field)(Code)
Throw an exception based on field failure type.
Parameters:
  type - list type
Parameters:
  field - identifier of field UnsupportedFieldException if the field value is not supportedin the field or IllegalArgumentException, if the field is not valid



countValues
public int countValues(int field)(Code)



formatData
protected String formatData()(Code)
Format the data for output. formatted data



getAttributes
public int getAttributes(int field, int index)(Code)



getBinary
public byte[] getBinary(int field, int index)(Code)



getBoolean
public boolean getBoolean(int field, int index)(Code)



getCategories
public String[] getCategories()(Code)



getCategoriesRaw
String[] getCategoriesRaw()(Code)



getDate
public long getDate(int field, int index)(Code)



getEncodingFormat
abstract PIMFormat getEncodingFormat()(Code)
Gets the format codec used to encode and decode this object for storage. an instance of PIMFormat that can deal with this item



getField
PIMField getField(int field, boolean create, boolean check)(Code)
Gets the field entry.
Parameters:
  field - identifier for the field
Parameters:
  create - if true create the fieldif it doesn't already exist
Parameters:
  check - if true check that the field issupported before attempting to get it the request field entry



getField
public PIMField getField(int key)(Code)
Looks up a PIMField. O(log fieldKeys.length) in time.
Parameters:
  key - property key for requested field PIM field requested



getFields
public int[] getFields()(Code)



getInt
public int getInt(int field, int index)(Code)



getKey
Object getKey()(Code)
Gets the key that identifies this item in the PIM database an Object used to index this item



getPIMList
public PIMList getPIMList()(Code)



getPIMListHandle
public Object getPIMListHandle()(Code)
Returns the handle of the PIMList associated with this item. the handle of the PIMList that this item belongs to. If theitem does not belong to any list, handle of default dummylist is returned.



getRevisionField
abstract protected int getRevisionField()(Code)
Gets the field that corresponds to the REVISION of this PIMItem. REVISION fields have special handling; they are set automatically on commit and import, and are read only to the application once the item has been committed. revision field



getString
public String getString(int field, int index)(Code)



getStringArray
public String[] getStringArray(int field, int index)(Code)



getUIDField
abstract protected int getUIDField()(Code)
Gets the field that corresponds to the UID of this PIMItem. UIDfields have special handling; they are set automatically on commit and import. UID field



isInCategory
boolean isInCategory(String category)(Code)
Checks the category is valid.
Parameters:
  category - name of category to check true if is int category



isModified
public boolean isModified()(Code)



isValidPIMField
static boolean isValidPIMField(int type, int field)(Code)
Checks for valid PIM field.
Parameters:
  type - list type
Parameters:
  field - identifier for field true if field is valid



maxCategories
public int maxCategories()(Code)



putField
public void putField(int key, PIMField field)(Code)
Stores a PIMField. O(fieldKeys.length) in space and time.
Parameters:
  key - property key for requested field
Parameters:
  field - identifier of field



remove
void remove() throws PIMException(Code)
Removed this PIMItem from its list



removeField
public void removeField(int key)(Code)
Removes a PIMField. O(fieldKeys.length) in space and time.
Parameters:
  key - property key for requested field



removeFromCategory
public void removeFromCategory(String category)(Code)



removeValue
public void removeValue(int field, int index)(Code)



setBinary
public void setBinary(int field, int index, int attributes, byte[] value, int offset, int length)(Code)



setBoolean
public void setBoolean(int field, int index, int attributes, boolean value)(Code)



setDate
public void setDate(int field, int index, int attributes, long value)(Code)



setDefaultValues
protected void setDefaultValues()(Code)
Sets default values for this item.



setInt
public void setInt(int field, int index, int attributes, int value)(Code)



setKey
void setKey(Object key)(Code)
Sets the key that identifies this item in the PIM database
Parameters:
  key - an Object used to index this item



setModified
void setModified(boolean modified)(Code)
Sets the modified flag.
Parameters:
  modified - flag to be saved



setPIMList
void setPIMList(AbstractPIMList list)(Code)
Set the PIMList of this item.
Parameters:
  list - data to be saved



setString
public void setString(int field, int index, int attributes, String value)(Code)



setStringArray
public void setStringArray(int field, int index, int attributes, String[] value)(Code)



toDisplayableString
abstract protected String toDisplayableString()(Code)
Converts the record to a printable format. formatted record



toString
public String toString()(Code)
Convert the data to a String. formatted data



Methods inherited from java.lang.Object
public boolean equals(Object obj)(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.