Class CoreObjectBuilder<ABSTRACT_RECORD extends CoreAbstractRecord,ABSTRACT_SESSION extends CoreAbstractSession,FIELD extends CoreField,MAPPING extends CoreMapping>
- java.lang.Object
-
- org.eclipse.persistence.internal.core.descriptors.CoreObjectBuilder<ABSTRACT_RECORD,ABSTRACT_SESSION,FIELD,MAPPING>
-
- Direct Known Subclasses:
ObjectBuilder,XPathObjectBuilder
public abstract class CoreObjectBuilder<ABSTRACT_RECORD extends CoreAbstractRecord,ABSTRACT_SESSION extends CoreAbstractSession,FIELD extends CoreField,MAPPING extends CoreMapping> extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description CoreObjectBuilder()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract java.lang.ObjectbuildNewInstance()Return a new instance of the receiver's javaClass.abstract ABSTRACT_RECORDcreateRecord(ABSTRACT_SESSION session)Create a new row/record for the object builder.abstract ABSTRACT_RECORDcreateRecordFromXMLContext(XMLContext context)Create a new row/record from XMLContext.abstract java.lang.ObjectextractPrimaryKeyFromObject(java.lang.Object domainObject, ABSTRACT_SESSION session)Extract primary key attribute values from the domainObject.abstract MAPPINGgetMappingForField(FIELD field)Return the mapping for the specified field.
-
-
-
Method Detail
-
buildNewInstance
public abstract java.lang.Object buildNewInstance()
Return a new instance of the receiver's javaClass.
-
createRecord
public abstract ABSTRACT_RECORD createRecord(ABSTRACT_SESSION session)
Create a new row/record for the object builder. This allows subclasses to define different record types.
-
createRecordFromXMLContext
public abstract ABSTRACT_RECORD createRecordFromXMLContext(XMLContext context)
Create a new row/record from XMLContext.
-
extractPrimaryKeyFromObject
public abstract java.lang.Object extractPrimaryKeyFromObject(java.lang.Object domainObject, ABSTRACT_SESSION session)Extract primary key attribute values from the domainObject.
-
-