T
- The type of the field/propertypublic interface SCO<T>
ObjectProvider
ownerOP, AbstractMemberMetaData mmd.
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.Modifier and Type | Method and Description |
---|---|
void |
attachCopy(T value)
Method to return an attached copy of this object.
|
Object |
clone()
Mutable second class objects are required to provide a public clone() method so that copying
of persistable objects can take place.
|
T |
detachCopy(FetchPlanState state)
Method to return a detached copy of this object.
|
String |
getFieldName()
Accessor for the field name.
|
Object |
getOwner()
Accessor for the owner object of the SCO instance.
|
T |
getValue()
Method to return the value of the unwrapped type.
|
void |
initialise()
Method to initialise the SCO for use, and allowing the SCO to be loaded from the datastore (when we have a backing store).
|
void |
initialise(T value)
Method to initialise the SCO for use with the provided initial value.
|
void |
initialise(T newValue,
Object oldValue)
Method to initialise the SCO for use, where replacing an old value with a new value such as when calling a setter field
passing in a new value.
|
void |
unsetOwner()
Nullifies references to the owner Object and field.
|
void initialise(T value)
value
- the object from which to copy the value.void initialise()
void initialise(T newValue, Object oldValue)
newValue
- New value (to wrap)oldValue
- Old value (to use in deciding what needs deleting etc)String getFieldName()
Object getOwner()
void unsetOwner()
T getValue()
Object clone()
CloneNotSupportedException
.T detachCopy(FetchPlanState state)
state
- State of the detachment processvoid attachCopy(T value)
value
- The object value from the detached instanceCopyright © 2018. All rights reserved.