|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SCO
Representation of a wrapper/proxy for a mutable SCO type supported by JPOX.
An implementation of this interface must have a constructor with the arguments
StateManager ownerSM, String fieldName.
The constructor must be capable of taking nulls for these arguments to create a non-managed wrapper
which effectively just acts like an unwrapped object.
| Method Summary | |
|---|---|
void |
attachCopy(java.lang.Object value)
Method to return an attached copy of this object. |
java.lang.Object |
clone()
Mutable second class objects are required to provide a public clone() method so that copying of persistable objects can take place. |
java.lang.Object |
detachCopy(FetchPlanState state)
Method to return a detached copy of this object. |
java.lang.String |
getFieldName()
Accessor for the field name. |
java.lang.Object |
getOwner()
Accessor for the owner object of the SCO instance. |
java.lang.Object |
getValue()
Method to return the value of the unwrapped type. |
void |
initialise()
Method to initialise the SCO for use. |
void |
initialise(java.lang.Object value,
boolean forInsert,
boolean forUpdate)
Method to initialise the SCO for use using an existing object of the same or compatible type. |
void |
unsetOwner()
Nullifies references to the owner Object and field. |
| Method Detail |
|---|
void initialise(java.lang.Object value,
boolean forInsert,
boolean forUpdate)
throws java.lang.ClassCastException
value - the object from which to copy the value.forInsert - Whether the object needs inserting in the datastore with this valueforUpdate - Whether the object needs updating in the datastore with this value
java.lang.ClassCastException - Thrown if the given object is not of a type that's compatible with this
second-class wrapper object.void initialise()
java.lang.String getFieldName()
java.lang.Object getOwner()
void unsetOwner()
java.lang.Object getValue()
java.lang.Object clone()
CloneNotSupportedException.
java.lang.Object detachCopy(FetchPlanState state)
state - State of the detachment process
void attachCopy(java.lang.Object value)
value - The object value from the detached instance
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||