|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.Date
java.sql.Time
org.datanucleus.store.types.sco.simple.SqlTime
public class SqlTime
A mutable second-class SQLTime object.
| Field Summary | |
|---|---|
protected String |
fieldName
|
protected ObjectProvider |
ownerSM
|
| Constructor Summary | |
|---|---|
SqlTime(ObjectProvider ownerSM,
String fieldName)
Creates a SqlTime object that represents the time at which it was allocated. |
|
| Method Summary | |
|---|---|
void |
attachCopy(Object value)
Method to return an attached version for the passed StateManager and field, using the passed value. |
Object |
clone()
Creates and returns a copy of this object. |
Object |
detachCopy(FetchPlanState state)
Method to detach a copy of this object. |
String |
getFieldName()
Accessor for the field name |
Object |
getOwner()
Accessor for the owner. |
Object |
getValue()
Accessor for the unwrapped value that we are wrapping. |
void |
initialise()
Method to initialise the SCO for use. |
void |
initialise(Object o,
boolean forInsert,
boolean forUpdate)
Method to initialise the SCO from an existing 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. |
| Methods inherited from class java.sql.Time |
|---|
getDate, getDay, getMonth, getYear, setDate, setMonth, setYear, toString, valueOf |
| Methods inherited from class java.util.Date |
|---|
after, before, compareTo, equals, getHours, getMinutes, getSeconds, getTime, getTimezoneOffset, hashCode, parse, setHours, setMinutes, setSeconds, toGMTString, toLocaleString, UTC |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected transient ObjectProvider ownerSM
protected transient String fieldName
| Constructor Detail |
|---|
public SqlTime(ObjectProvider ownerSM,
String fieldName)
ownerSM - the owning StateManagerfieldName - the owning field name| Method Detail |
|---|
public void initialise()
initialise in interface SCO
public void initialise(Object o,
boolean forInsert,
boolean forUpdate)
initialise in interface SCOo - The ObjectforInsert - Whether the object needs inserting in the datastore with this valueforUpdate - Whether to update the datastore with this valuepublic Object getValue()
getValue in interface SCOpublic void unsetOwner()
unsetOwner in interface SCOpublic Object getOwner()
getOwner in interface SCOpublic String getFieldName()
getFieldName in interface SCOpublic void makeDirty()
public Object detachCopy(FetchPlanState state)
detachCopy in interface SCOstate - State for detachment process
public void attachCopy(Object value)
attachCopy in interface SCOvalue - The new valuepublic Object clone()
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 in interface SCOclone in class Datepublic void setTime(long time)
setTime in class Timetime - millisecs since 1 Jan 1970, 00:00:00 GMTCalendar
protected Object writeReplace()
throws ObjectStreamException
ObjectStreamException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||