|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.util.Date
java.sql.Timestamp
org.apache.jdo.impl.sco.SqlTimestamp
A mutable 2nd class object that represents java.sql.Timestamp
Timestamp,
Serialized Form| Field Summary | |
private static java.lang.String |
_SqlTimestamp
|
private int |
fieldNumber
|
private StateManagerInternal |
owner
|
| Fields inherited from class java.sql.Timestamp |
|
| Fields inherited from class java.util.Date |
|
| Constructor Summary | |
SqlTimestamp()
Creates a SqlTimestamp object that represents the time at which
it was allocated. |
|
SqlTimestamp(long date)
Creates a SqlTimestamp 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 |
private void |
makeDirty()
Marks object dirty |
void |
setDate(int date)
Deprecated. As of JDK version 1.1, replaced by Calendar.set(Calendar.DAY_OF_MONTH, int date). |
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 |
setMonth(int month)
Deprecated. As of JDK version 1.1, replaced by Calendar.set(Calendar.MONTH, int month). |
void |
setNanos(int n)
Sets this Timestamp object's nanos value
to the given value. |
void |
setNanosInternal(int n)
Sets the SqlTimestamp object's nanos value without
notification of the Owner field. |
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 SqlTimestamp 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 SqlTimestamp object without notification of the Owner field. |
void |
setYear(int year)
Deprecated. As of JDK version 1.1, replaced by Calendar.set(Calendar.YEAR, year + 1900). |
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.Timestamp |
after, before, compareTo, compareTo, equals, equals, getNanos, getTime, toString, valueOf |
| Methods inherited from class java.util.Date |
after, before, compareTo, getDate, getDay, getHours, getMinutes, getMonth, getSeconds, getTimezoneOffset, getYear, hashCode, parse, toGMTString, toLocaleString, UTC |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
private transient StateManagerInternal owner
private transient int fieldNumber
private static final java.lang.String _SqlTimestamp
| Constructor Detail |
public SqlTimestamp()
SqlTimestamp object that represents the time at which
it was allocated.
public SqlTimestamp(long date)
SqlTimestamp object that represents the given time
in milliseconds.
date - the number of milliseconds| Method Detail |
public void setTime(long time)
time - the number of milliseconds.Timestamppublic void setNanos(int n)
Timestamp object's nanos value
to the given value.
n - the new fractional seconds component
java.lang.IllegalArgumentException - if the given argument
is greater than 999999999 or less than 0Timestamppublic 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 SCOpublic void setYear(int year)
Calendar.set(Calendar.YEAR, year + 1900).
year - the year value.Calendar,
Timestamppublic void setMonth(int month)
Calendar.set(Calendar.MONTH, int month).
month - the month value between 0-11.Calendar,
Timestamppublic void setDate(int date)
Calendar.set(Calendar.DAY_OF_MONTH, int date).
date - the day of the month value between 1-31.Calendar,
Timestamppublic void setHours(int hours)
Calendar.set(Calendar.HOUR_OF_DAY, int hours).
hours - the hour value.Calendar,
Timestamppublic void setMinutes(int minutes)
Calendar.set(Calendar.MINUTE, int minutes).
minutes - the value of the minutes.Calendar,
Timestamppublic void setSeconds(int seconds)
Calendar.set(Calendar.SECOND, int seconds).
seconds - the seconds value.Calendar,
Timestamppublic void setTimeInternal(long time)
setTimeInternal in interface SCODatetime - the number of milliseconds.Timestamppublic void setNanosInternal(int n)
nanos value without
notification of the Owner field. Used internaly to populate date from DB
n - the new fractional seconds component
java.lang.IllegalArgumentException - if the given argument
is greater than 999999999 or less than 0Timestamp
public void unsetOwner(java.lang.Object owner,
int fieldNumber)
SCO
unsetOwner in interface SCOowner - 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 SCOowner - 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 SCOSCO.getOwner()public java.lang.String getFieldName()
SCO
getFieldName in interface SCOSCO.getFieldName()private void makeDirty()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||