|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.novell.service.nds.NdsTimestamp
Provides access to attribute values of the Timestamp syntax. It is used for attributes whose values mark the time when a particular event occurred or will occur. A time stamp value has three components:
The initial NULL value of a time stamp has seconds = 1 and event = 0. Values can be skipped, but must not be reused. An unknown event is coded as 0xFFFF.
Time stamps can be compared for equality and for ordering. Two Timestamp values are matched for equality by comparing the whole seconds fields and then the event fields. If the whole seconds fields are unequal, order is determined by that field alone. If the seconds fields are equal and the event fields are unequal, order is determined by the event fields. If both fields are equal, the time stamps are equal. For ordering comparisons, the Timestamp value is treated as a 64-bit unsigned integer, with seconds as most significant.
Matching Rules: Equality and Ordering
NdsSyntaxId
Constructor Summary | |
NdsTimestamp(long wholeSeconds,
int eventId,
int replicaNumber)
Constructs an NdsTimestamp object based on the specified wholeSeconds, eventId, and replicaNumber parameters. |
Method Summary | |
boolean |
approximate(java.lang.Object anObject)
Compares two Objects using the approximate matching rule. |
java.lang.Object |
clone()
Creates a new object of the same class as this object. |
int |
compareTo(java.lang.Object anObject)
Compares two objects for ordering, or compares two strings lexicographically. |
int |
count()
Returns the number of elements in this sequence. |
boolean |
equals(java.lang.Object anObject)
Compares two Objects for equality. |
java.util.Date |
getDate()
Returns the Date stored as a Date value in the object data member. |
int |
getEventId()
Returns event ID stored as an int value in the object data member. |
java.util.GregorianCalendar |
getGregorianCalendar()
Returns the GregorianCalendar value stored in the object data member. |
int |
getNdsSyntaxId()
Returns the int that represents the NDS syntax ID. |
int |
getReplicaNumber()
Returns the replica number stored as an int value in the object data member. |
|
getValue(java.lang.String compositeId)
Returns a SchemaValue object based on the given passed-in string containing the element value. |
java.util.Enumeration |
getValueIds()
Returns an Enumeration of composite IDs. |
java.util.Enumeration |
getValues()
Returns an enumeration of the elements in this composite. |
long |
getWholeSeconds()
Returns the whole seconds stored as a long value in the object data member. |
boolean |
supportsMatchingRules(int matchingRules)
Checks to see if this object supports the specified matching rules. |
java.lang.String |
toString()
Generates a string representation of the object. |
Methods inherited from class java.lang.Object |
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public NdsTimestamp(long wholeSeconds, int eventId, int replicaNumber)
wholeSeconds
- The whole number of seconds stored as a
long value.eventId
- An integer that orders events occurring
within the same whole-second interval
stored as an int value.replicaNumber
- The replica number identifying the server
that crated the timestamp stored as an int
value.Method Detail |
public int compareTo(java.lang.Object anObject) throws java.lang.Exception
anObject
- The reference NDS Object with which
to compare.public boolean equals(java.lang.Object anObject)
The equals method implements the most discriminating possible equivalence relation on objects; that is, for any reference values X and Y, this method returns TRUE if and only if X and Y refer to the same object (X==Y has the value TRUE).
anObject
- The reference object with which to compare.public int count()
public getValue(java.lang.String compositeId)
compositeId
- The passed-in string containing the element
value.public java.util.Enumeration getValueIds()
public java.util.Enumeration getValues()
public boolean approximate(java.lang.Object anObject) throws java.lang.Exception
public int getNdsSyntaxId()
public boolean supportsMatchingRules(int matchingRules)
matchingRules
- The set of matching rules to check.public java.lang.Object clone()
public java.lang.String toString()
public long getWholeSeconds()
public int getReplicaNumber()
public int getEventId()
public java.util.Date getDate()
public java.util.GregorianCalendar getGregorianCalendar()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |