| Modifier and Type | Field and Description |
|---|---|
| protected String |
| Access | Constructor and Description |
|---|---|
| public |
| serializedObjectPolicyClassName | back to summary |
|---|---|
| protected String serializedObjectPolicyClassName | |
| SerializedObjectPolicyWrapper | back to summary |
|---|---|
| public SerializedObjectPolicyWrapper(String serializedObjectPolicyClassName) | |
| clone | back to summary |
|---|---|
| public SerializedObjectPolicyWrapper clone() Overrides org. Implements org. Doc from java. Creates and returns a copy of this object. The precise meaning
of "copy" may depend on the class of the object. The general
intent is that, for any object will be true, and that the expression:x.clone() != x will bex.clone().getClass() == x.getClass() true, but these are not absolute requirements.
While it is typically the case that:
will bex.clone().equals(x) true, this is not an absolute requirement.
By convention, the returned object should be obtained by calling
By convention, the object returned by this method should be independent
of this object (which is being cloned). To achieve this independence,
it may be necessary to modify one or more fields of the object returned
by
| |
| getAllSelectionFields | back to summary |
|---|---|
| public List Implements org. Doc from org. Lists the database fields that should be read by the query using the policy, in case all inherited objects are read using outer joining. To allow recovery in case of null or invalid sopObject, then this method should return all the fields define by descriptor (descriptor.getAllFields()).
| |
| getObjectFromRow | back to summary |
|---|---|
| public Object getObjectFromRow(AbstractRecord databaseRow, AbstractSession session, ObjectLevelReadQuery query) Implements org. Doc from org. 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. If the object is null or invalid, behaviour depend on whether the policy allows the query to recover or not (see comments to getFieldsToSelect and getAllFieldsToSelect methods): if recovery is possible then the method should return null, otherwise throw QueryException (query is a parameter of this method only because it's required by QueryException).
| |
| getSelectionFields | back to summary |
|---|---|
| public List Implements org. Doc from org. Lists the database fields that should be read by the query using the policy. To allow recovery in case of null or invalid sopObject, then this method should return all the fields define by descriptor (descriptor.getFields()).
| |
| getSerializedObjectPolicyClassName | back to summary |
|---|---|
| public String getSerializedObjectPolicyClassName() | |
| initialize | back to summary |
|---|---|
| public void initialize(AbstractSession session) Implements org. Doc from org. initialize the policy
| |
| initializeField | back to summary |
|---|---|
| public void initializeField(AbstractSession session) Overrides org. Implements org. Doc from org. unless the field is already initialized by parent descriptor, add the field to the owning descriptor and set field's type
| |
| instantiateChild | back to summary |
|---|---|
| public SerializedObjectPolicy instantiateChild() Implements org. Doc from org. instantiate policy for child descriptor
| |
| postInitialize | back to summary |
|---|---|
| public void postInitialize(AbstractSession session) Implements org. Doc from org. postinitialize the policy: determine which mappings are included, which fields should be selected
| |
| putObjectIntoRow | back to summary |
|---|---|
| public void putObjectIntoRow(AbstractRecord databaseRow, Object object, AbstractSession session) Implements org. Doc from org. Serialize the object and put the result into the row as a value corresponding to the policy field
| |