| java.lang.Object java.util.Date java.sql.Time org.jpox.sco.SqlTime
SqlTime | public class SqlTime extends java.sql.Time implements SCO(Code) | | A mutable second-class SQLTime object.
version: $Revision: 1.24 $ |
Constructor Summary | |
public | SqlTime(StateManager ownerSM, String fieldName) Creates a SqlTime object that represents the time at which
it was allocated. |
Method Summary | |
public void | attachCopy(Object value) Method to return an attached version for the passed StateManager and field, using the passed value. | public Object | clone() Creates and returns a copy of this object.
Mutable second-class Objects are required to provide a public
clone method in order to allow for copying PersistenceCapable
objects. | public Object | detachCopy(FetchPlanState state) Method to detach a copy of this object. | public String | getFieldName() | public Object | getOwner() Accessor for the owner. | public Object | getValue() Accessor for the unwrapped value that we are wrapping. | public void | initialise() Method to initialise the SCO for use. | public void | initialise(Object o, boolean forInsert, boolean forUpdate) Method to initialise the SCO from an existing value. | public void | makeDirty() | public void | setTime(long time) Sets the time of this Time object to the specified value. | public 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. |
SqlTime | public SqlTime(StateManager ownerSM, String fieldName)(Code) | | Creates a SqlTime object that represents the time at which
it was allocated. Assigns owning object and field name.
Parameters: ownerSM - the owning StateManager Parameters: fieldName - the owning field name |
attachCopy | public void attachCopy(Object value)(Code) | | Method to return an attached version for the passed StateManager and field, using the passed value.
Parameters: value - The new value |
clone | public Object clone()(Code) | | Creates and returns a copy of this object.
Mutable second-class Objects are required to provide a public
clone method in order to allow for copying PersistenceCapable
objects. In contrast to Object.clone(), this method must not throw a
CloneNotSupportedException.
Clone of the object |
detachCopy | public Object detachCopy(FetchPlanState state)(Code) | | Method to detach a copy of this object.
Parameters: state - State for detachment process The detached object |
getFieldName | public String getFieldName()(Code) | | Accessor for the field name
The field name |
getOwner | public Object getOwner()(Code) | | Accessor for the owner.
The owner |
getValue | public Object getValue()(Code) | | Accessor for the unwrapped value that we are wrapping.
The unwrapped value |
initialise | public void initialise()(Code) | | Method to initialise the SCO for use.
|
initialise | public void initialise(Object o, boolean forInsert, boolean forUpdate)(Code) | | Method to initialise the SCO from an existing value.
Parameters: o - The Object Parameters: forInsert - Whether the object needs inserting in the datastore with this value Parameters: forUpdate - Whether to update the datastore with this value |
makeDirty | public void makeDirty()(Code) | | Utility to mark the object as dirty
|
setTime | public void setTime(long time)(Code) | | Sets the time of this Time object to the specified value.
This Time object is modified so that it represents a point in
time with the hour, minute, second as specified.
Parameters: time - millisecs since 1 Jan 1970, 00:00:00 GMT See Also: java.util.Calendar |
unsetOwner | public void unsetOwner()(Code) | | Utility to unset the owner.
|
writeReplace | protected Object writeReplace() throws ObjectStreamException(Code) | | The writeReplace method is called when ObjectOutputStream is preparing to write the object to the stream. The
ObjectOutputStream checks whether the class defines the writeReplace method. If the method is defined, the
writeReplace method is called to allow the object to designate its replacement in the stream. The object returned
should be either of the same type as the object passed in or an object that when read and resolved will result in
an object of a type that is compatible with all references to the object.
the replaced object throws: ObjectStreamException - |
|
|