|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 (Constructor(StateManager
owner, String fieldName))
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 PersistenceCapable objects can take place. |
void |
detach(FetchPlanState state)
Method to detach this object. |
java.lang.Object |
detachCopy(FetchPlanState state)
Method to return a detached copy of this object. |
java.lang.String |
getFieldName()
Returns the field name. |
java.lang.Object |
getOwner()
Returns the owner object of the SCO instance. |
void |
makeTransient(FetchPlanState state)
Method to make the object transient. |
void |
runReachability(java.util.Set reachables)
Method to run reachability from this SCO. |
void |
setValueFrom(java.lang.Object obj,
boolean forUpdate)
Assigns the value of this second-class object from an existing object of the same or compatible type. |
void |
unsetOwner()
Nullifies references to the owner Object and Field. |
Method Detail |
public void setValueFrom(java.lang.Object obj, boolean forUpdate) throws java.lang.ClassCastException
obj
- the object from which to copy the value.forUpdate
- 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.public java.lang.String getFieldName()
public java.lang.Object getOwner()
PersistenceCapable
.
Internally, the SCO implementation can obtain the owner instance from the ownerSM.getObject() call.
public void unsetOwner()
As pos-condition, the SCO instance is no longer associated
with the owner, thus should not issue any request to the datastore. All references to
a StateManager
or PersistenceCapable
must be released.
public java.lang.Object clone()
CloneNotSupportedException
.
public void runReachability(java.util.Set reachables)
reachables
- List of StateManagers reachable so farpublic void makeTransient(FetchPlanState state)
state
- State of the fetchplan processpublic void detach(FetchPlanState state)
state
- State for the detachment processpublic java.lang.Object detachCopy(FetchPlanState state)
state
- State of the detachment process
public void attachCopy(java.lang.Object value)
PersistenceCapable
.
value
- The object value from the detached instance
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |