ObjectDB ObjectDB

Internal Website Search

1-10 of 60 resultsRefresh
7

[ODB1] Chapter 6 - Persistent Objects

of a persistent object can be done as follows: Object oid = pm.getObjectId(obj); Or by a static method (useful when a PersistenceManager is unavailable): Object oid = JDOHelper.getObjectId(obj); JDO does ... ().begin(); Person person = new Person("George", "Bush"); pm.makePersistent(person); Object oid = pm
7

getObjectById(oid, validate)

Method javax.jdo.PersistenceManager Object getObjectById( Object oid, boolean validate ... . The oid parameter object might have been returned by an earlier call to getObjectId or ... to resolve the oid parameter to an ObjectId instance, then it throws a JDOUserException. If the validate
6

copyKeyFieldsToObjectId(pcClass, fm, oid)

, ObjectIdFieldSupplier fm, Object oid ) Copy fields from an outside source to the key fields in the ObjectId ... , and Float salary) would have the method generated: void jdoCopyKeyFieldsToObjectId (Object oid, ObjectIdFieldSupplier fm) { oid.id = fm.fetchIntField (0); oid.name = fm.fetchStringField (1); oid
6

copyKeyFieldsFromObjectId(pcClass, fm, oid)

, ObjectIdFieldConsumer fm, Object oid ) Copy fields to an outside source from the key fields in the ObjectId ... (PersistenceCapable oid, ObjectIdFieldConsumer fm) { fm.storeIntField (0, oid.id); fm.storeStringField (1, oid.name); fm.storeObjectField (2, oid.salary); } The implementation is responsible for implementing
6

jdoCopyKeyFieldsToObjectId(fm, oid)

, Object oid ) Copy fields from an outside source to the key fields in the ObjectId. This method ... fm, Object objectId) { EmployeeKey oid = (EmployeeKey)objectId; oid.id = fm.fetchIntField (0); oid.name = fm.fetchStringField (1); oid.salary = fm.fetchObjectField (2); } The implementation
6

jdoCopyKeyFieldsFromObjectId(fm, oid)

, Object oid ) Copy fields to an outside consumer from the key fields in the ObjectId. This method ... (ObjectIdFieldConsumer fm, Object objectId) { EmployeeKey oid = (EmployeeKey)objectId; fm.storeIntField (0, oid.id); fm.storeStringField (1, oid.name); fm.storeObjectField (2, oid.salary); } The implementation
6

getObjectsById(oids, validate)

Method javax.jdo.PersistenceManager Object[] getObjectsById( Object[] oids, boolean validate ) Return the objects with the given oids. Parameters: oids - the oids of the objects to return validate ... that were looked up, in the same order as the oids parameter. Since: JDO 2.0 See Also: getObjectById(Object,boolean) getObjectsById(boolean,Object...)
6

getObjectsById(oids)

Method javax.jdo.PersistenceManager Collection getObjectsById( Collection oids ) Return the objects with the given oids. This method is equivalent to calling getObjectsById(Collection, boolean) with the validate flag true. Parameters: oids - the oids of the objects to return Returns: the objects
6

getObjectsById(oids, validate)

Method javax.jdo.PersistenceManager Collection getObjectsById( Collection oids, boolean validate ) Return the objects with the given oids. Parameters: oids - the oids of the objects to return ... that were looked up, in the same order as the oids parameter. Since: JDO 2.0 See Also: getObjectById(Object,boolean)
6

getObjectsById(validate, oids)

Method javax.jdo.PersistenceManager Object[] getObjectsById( boolean validate, Object... oids ) Return the objects with the given oids. Parameters: validate - if true, the existance of the objects in the datastore will be validated. oids - the oids of the objects to return Returns: the objects

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