public class SqlTime extends Time implements SCO<Time>
| Modifier and Type | Field and Description |
|---|---|
protected AbstractMemberMetaData |
ownerMmd |
protected ObjectProvider |
ownerOP |
| Constructor and Description |
|---|
SqlTime(ObjectProvider op,
AbstractMemberMetaData mmd)
Creates a SqlTime object that represents the time at which it was allocated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
attachCopy(Time value)
Method to return an attached version for the passed ObjectProvider and field, using the passed value.
|
Object |
clone()
Creates and returns a copy of this object.
|
Time |
detachCopy(FetchPlanState state)
Method to detach a copy of this object.
|
String |
getFieldName()
Accessor for the field name
|
Object |
getOwner()
Accessor for the owner.
|
Time |
getValue()
Accessor for the unwrapped value that we are wrapping.
|
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(Time t)
Method to initialise the SCO for use with the provided initial value.
|
void |
initialise(Time 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 |
makeDirty()
Utility to mark the object as dirty
|
void |
setTime(long time)
Sets the time of this Time object to the specified value.
|
void |
unsetOwner()
Utility to unset the owner.
|
protected Object |
writeReplace()
The writeReplace method is called when ObjectOutputStream is preparing to write the object to the stream.
|
getDate, getDay, getMonth, getYear, setDate, setMonth, setYear, toInstant, toLocalTime, toString, valueOf, valueOfafter, before, compareTo, equals, from, getHours, getMinutes, getSeconds, getTime, getTimezoneOffset, hashCode, parse, setHours, setMinutes, setSeconds, toGMTString, toLocaleString, UTCprotected transient ObjectProvider ownerOP
protected transient AbstractMemberMetaData ownerMmd
public SqlTime(ObjectProvider op, AbstractMemberMetaData mmd)
op - ObjectProvider for the owning objectmmd - Metadata for the memberpublic void initialise()
SCOinitialise in interface SCO<Time>public void initialise(Time newValue, Object oldValue)
SCOinitialise in interface SCO<Time>newValue - New value (to wrap)oldValue - Old value (to use in deciding what needs deleting etc)public void initialise(Time t)
SCOinitialise in interface SCO<Time>t - the object from which to copy the value.public Time getValue()
public void unsetOwner()
unsetOwner in interface SCO<Time>public Object getOwner()
public String getFieldName()
getFieldName in interface SCO<Time>public void makeDirty()
public Time detachCopy(FetchPlanState state)
detachCopy in interface SCO<Time>state - State for detachment processpublic void attachCopy(Time value)
attachCopy in interface SCO<Time>value - The new valuepublic Object clone()
Mutable second-class Objects are required to provide a public clone method in order to allow for copying persistable objects. In contrast to Object.clone(), this method must not throw a CloneNotSupportedException.
public void setTime(long time)
protected Object writeReplace() throws ObjectStreamException
ObjectStreamException - if an error occursCopyright © 2016. All rights reserved.