T
- The type of the field/propertypublic interface SCO<T>
ObjectProvider
ownerOP, 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.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.
|
void |
initialise(T 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.
|
void initialise(T value, boolean forInsert, boolean forUpdate)
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 valuevoid initialise()
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 © 2015. All rights reserved.