public class SerializedObjectPolicyWrapper extends AbstractSerializedObjectPolicy
Constructor and Description |
---|
SerializedObjectPolicyWrapper(java.lang.String serializedObjectPolicyClassName) |
Modifier and Type | Method and Description |
---|---|
SerializedObjectPolicyWrapper |
clone() |
java.util.List<DatabaseField> |
getAllSelectionFields()
Lists the database fields that should be read by the query using the policy, in case all inherited objects are read using outer joining.
|
java.lang.Object |
getObjectFromRow(AbstractRecord databaseRow,
AbstractSession session,
ObjectLevelReadQuery query)
Deserialize the object from the value corresponding to the policy field, nullify that value, set the object into the row using setSopObject, also return it.
|
java.util.List<DatabaseField> |
getSelectionFields()
Lists the database fields that should be read by the query using the policy.
|
java.lang.String |
getSerializedObjectPolicyClassName() |
void |
initialize(AbstractSession session)
initialize the policy
|
void |
initializeField(AbstractSession session)
unless the field is already initialized by parent descriptor, add the field to the owning descriptor and set field's type
|
SerializedObjectPolicy |
instantiateChild()
instantiate policy for child descriptor
|
void |
postInitialize(AbstractSession session)
postinitialize the policy: determine which mappings are included, which fields should be selected
|
void |
putObjectIntoRow(AbstractRecord databaseRow,
java.lang.Object object,
AbstractSession session)
Serialize the object and put the result into the row as a value corresponding to the policy field
|
getDescriptor, getField, setDescriptor, setField
public SerializedObjectPolicyWrapper(java.lang.String serializedObjectPolicyClassName)
public java.lang.String getSerializedObjectPolicyClassName()
public SerializedObjectPolicyWrapper clone()
clone
in interface SerializedObjectPolicy
clone
in class AbstractSerializedObjectPolicy
public SerializedObjectPolicy instantiateChild()
SerializedObjectPolicy
public void initializeField(AbstractSession session)
SerializedObjectPolicy
initializeField
in interface SerializedObjectPolicy
initializeField
in class AbstractSerializedObjectPolicy
public void initialize(AbstractSession session)
SerializedObjectPolicy
public void postInitialize(AbstractSession session)
SerializedObjectPolicy
public void putObjectIntoRow(AbstractRecord databaseRow, java.lang.Object object, AbstractSession session)
SerializedObjectPolicy
public java.lang.Object getObjectFromRow(AbstractRecord databaseRow, AbstractSession session, ObjectLevelReadQuery query)
SerializedObjectPolicy
public java.util.List<DatabaseField> getSelectionFields()
SerializedObjectPolicy
public java.util.List<DatabaseField> getAllSelectionFields()
SerializedObjectPolicy
EclipseLink 2.6.3, "build v20160428-59c81c5" API Reference