Save This Page
Home » apache-openjpa-1.1.0-source » org.apache.openjpa » util » [javadoc | source]
org.apache.openjpa.util
public class: ApplicationIds [javadoc | source]
java.lang.Object
   org.apache.openjpa.util.ApplicationIds
Utility class for manipulating application object ids.
Method from org.apache.openjpa.util.ApplicationIds Summary:
assign,   copy,   create,   fromPKValues,   get,   toPKValues
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.openjpa.util.ApplicationIds Detail:
 public static boolean assign(OpenJPAStateManager sm,
    StoreManager store,
    boolean preFlush) 
    Assign an application identity object to the given state, or return false if determining the application identity requires a flush.
 public static Object copy(Object oid,
    ClassMetaData meta) 
    Copy the given oid value.
 public static Object create(PersistenceCapable pc,
    ClassMetaData meta) 
    Generate an application id based on the current primary key field state of the given instance.
 public static Object fromPKValues(Object[] pks,
    ClassMetaData meta) 
    Return a new object id constructed from the given primary key values. Values for PC primary key fields should be the primarky key value or oid value of the related instance (depending on FieldMetaData#isObjectIdFieldIdOfPC ).
 public static Object get(Object oid,
    FieldMetaData fmd) 
    Return the given primary key field value from the given oid.
 public static Object[] toPKValues(Object oid,
    ClassMetaData meta) 
    Return the primary key values for the given object id. The values will be returned in the same order as the metadata primary key fields. Values for PC primary key fields will be the primarky key value or oid value of the related instance (depending on FieldMetaData#isObjectIdFieldIdOfPC ).