|
||||||||||
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.apache.jdo.impl.sco.SqlTime
public class SqlTime
A mutable 2nd class object that represents java.sql.Time.
Time
,
Serialized FormConstructor Summary | |
---|---|
SqlTime()
Creates a SqlTime object that represents the time at which
it was allocated. |
|
SqlTime(long date)
Creates a SqlTime object that represents the given time
in milliseconds. |
Method Summary | |
---|---|
java.lang.Object |
clone()
Creates and returns a copy of this object. |
java.lang.String |
getFieldName()
Returns the field name |
java.lang.Object |
getOwner()
Returns the owner object of the SCO instance |
void |
setHours(int hours)
Deprecated. As of JDK version 1.1, replaced by Calendar.set(Calendar.HOUR_OF_DAY, int hours) . |
void |
setMinutes(int minutes)
Deprecated. As of JDK version 1.1, replaced by Calendar.set(Calendar.MINUTE, int minutes) . |
void |
setOwner(java.lang.Object owner,
int fieldNumber)
Sets the owner and field number. |
void |
setSeconds(int seconds)
Deprecated. As of JDK version 1.1, replaced by Calendar.set(Calendar.SECOND, int seconds) . |
void |
setTime(long time)
Sets the SqlTime object to represent a point in time that is time milliseconds after January 1, 1970 00:00:00 GMT. |
void |
setTimeInternal(long time)
Sets the SqlTime object without notification of the Owner field. |
void |
unsetOwner(java.lang.Object owner,
int fieldNumber)
Nullifies references to the owner Object iff the passed in owner and fieldNumber match. |
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, toGMTString, toLocaleString, UTC |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SqlTime()
SqlTime
object that represents the time at which
it was allocated.
public SqlTime(long date)
SqlTime
object that represents the given time
in milliseconds.
date
- the number of millisecondsMethod Detail |
---|
public void setTime(long time)
setTime
in class java.sql.Time
time
- the number of milliseconds.Time
public java.lang.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 SCO
clone
in class java.util.Date
public void setHours(int hours)
Calendar.set(Calendar.HOUR_OF_DAY, int hours)
.
setHours
in class java.util.Date
hours
- the hour value.Calendar
,
Time
public void setMinutes(int minutes)
Calendar.set(Calendar.MINUTE, int minutes)
.
setMinutes
in class java.util.Date
minutes
- the value of the minutes.Calendar
,
Time
public void setSeconds(int seconds)
Calendar.set(Calendar.SECOND, int seconds)
.
setSeconds
in class java.util.Date
seconds
- the seconds value.Calendar
,
Time
public void setTimeInternal(long time)
setTimeInternal
in interface SCODate
time
- the number of milliseconds.Time
public void unsetOwner(java.lang.Object owner, int fieldNumber)
SCO
unsetOwner
in interface SCO
owner
- the existing owner object.fieldNumber
- the existing number of the field.SCO.unsetOwner(Object owner, int fieldNumber)
public void setOwner(java.lang.Object owner, int fieldNumber)
SCO
setOwner
in interface SCO
owner
- the owner object.fieldNumber
- the number of the field associated with this instance.(Object owner, int fieldNumber)
public java.lang.Object getOwner()
SCO
getOwner
in interface SCO
SCO.getOwner()
public java.lang.String getFieldName()
SCO
getFieldName
in interface SCO
SCO.getFieldName()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |