About fields

1-10 of 200Refresh
Manual
210

JPA Entity Fields

Fields of persistable user defined classes (entity classes, embeddable classes and mapped superclasses) can be classified into the following five groups: Transient fields Persistent fields Inverse (Mapped By) fields Primary key (ID) fields Version field The first three groups (transient, persistent
JPA Doc
173

JPA Annotations for Fields

The way a field of a persistable class is managed by JPA can be set by the following annotations: Additional annotations (and enum) are designated for enum fields: Other additional annotations (and enum) are designated for date and calendar fields: Chapter 2 of the ObjectDB manual explains how to use all the above annotations.
JDO Doc
169

JDO Annotations for Fields

The way a field of a persistable class is managed by JDO can be set by the following annotations and enum types:
JDO Doc
72

FetchPlan.DETACH_LOAD_FIELDS

Static Field javax.jdo.FetchPlan int DETACH_LOAD_FIELDS For use with PersistenceManager.detachCopy and setDetachmentOptions. Specifies that fields that are not loaded but are in the current fetch plan should be loaded prior to detachment. Since: JDO 2.0
JDO Doc
72

FetchPlan.DETACH_UNLOAD_FIELDS

Static Field javax.jdo.FetchPlan int DETACH_UNLOAD_FIELDS For use with PersistenceManager.detachCopy and setDetachmentOptions. Specifies that fields that are loaded but not in the current fetch plan should be unloaded prior to detachment. Since: JDO 2.0
JDO Doc
53

getBooleanField(pc, field, currentValue)

Method javax.jdo.spi.StateManager boolean getBooleanField(   PersistenceCapable pc,   int field,   boolean currentValue ) Return the value for the field. Parameters: pc - the calling PersistenceCapable instance field - the field number currentValue - the current value of the field Returns: the new value for the field Since: JDO 1.0
JDO Doc
53

getByteField(pc, field, currentValue)

Method javax.jdo.spi.StateManager byte getByteField(   PersistenceCapable pc,   int field,   byte currentValue ) Return the value for the field. Parameters: pc - the calling PersistenceCapable instance field - the field number currentValue - the current value of the field Returns: the new value for the field Since: JDO 1.0
JDO Doc
53

getCharField(pc, field, currentValue)

Method javax.jdo.spi.StateManager char getCharField(   PersistenceCapable pc,   int field,   char currentValue ) Return the value for the field. Parameters: pc - the calling PersistenceCapable instance field - the field number currentValue - the current value of the field Returns: the new value for the field Since: JDO 1.0
JDO Doc
53

getDoubleField(pc, field, currentValue)

Method javax.jdo.spi.StateManager double getDoubleField(   PersistenceCapable pc,   int field,   double currentValue ) Return the value for the field. Parameters: pc - the calling PersistenceCapable instance field - the field number currentValue - the current value of the field Returns: the new value for the field Since: JDO 1.0
JDO Doc
53

getFloatField(pc, field, currentValue)

Method javax.jdo.spi.StateManager float getFloatField(   PersistenceCapable pc,   int field,   float currentValue ) Return the value for the field. Parameters: pc - the calling PersistenceCapable instance field - the field number currentValue - the current value of the field Returns: the new value for the field Since: JDO 1.0