ObjectDB ObjectDB

Internal Website Search

1-10 of 200 resultsRefresh
125

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
95

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.
9

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:
4

[ODB1] Chapter 4 - JDO Metadata

declaring a persistent class as a subclass of a non persistent class. Of course, in that case the fields of class X are not persistent fields, and when an instance of class C is stored, only persistent fields ... always uses datastore identity with its own object-id class). 4.3 Metadata for Fields Unlike
3

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
3

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
2

setBooleanField(pc, field, currentValue, newValue)

Method javax.jdo.spi.StateManager void setBooleanField( PersistenceCapable pc, int field, boolean currentValue, boolean newValue ) Mark the field as modified by the user. Parameters: pc - the calling PersistenceCapable instance field - the field number currentValue - the current value of the field
2

setCharField(pc, field, currentValue, newValue)

Method javax.jdo.spi.StateManager void setCharField( PersistenceCapable pc, int field, char currentValue, char newValue ) Mark the field as modified by the user. Parameters: pc - the calling PersistenceCapable instance field - the field number currentValue - the current value of the field newValue - the proposed new value of the field Since: JDO 1.0
2

setByteField(pc, field, currentValue, newValue)

Method javax.jdo.spi.StateManager void setByteField( PersistenceCapable pc, int field, byte currentValue, byte newValue ) Mark the field as modified by the user. Parameters: pc - the calling PersistenceCapable instance field - the field number currentValue - the current value of the field newValue - the proposed new value of the field Since: JDO 1.0
2

setFloatField(pc, field, currentValue, newValue)

Method javax.jdo.spi.StateManager void setFloatField( PersistenceCapable pc, int field, float currentValue, float newValue ) Mark the field as modified by the user. Parameters: pc - the calling PersistenceCapable instance field - the field number currentValue - the current value of the field

Getting Started

ObjectDB is very easy to use. Follow the Getting Started Tutorial and the Quick Tour manual chapter and in minutes you may be able to write and run first Java programs against ObjectDB.

Prior knowledge or experience in database programming (SQL, JDBC, ORM, JPA, etc.) is not required, but some background in using the Java language is essential.

Need Help?

  1. Search ObjectDB website
  2. Read the FAQ
  3. Follow the Tutorials
  4. View or post in the forum
  5. Search or file an issue
  6. Contact support