|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ail.core.Type
com.ail.core.VersionEffectiveDate
public class VersionEffectiveDate
VersionEffectiveDates are used to select the configuration a CoreUser should be using. Configurations are stored with date stamps, when a client (CoreUser) requests some information from configuration their VersionEffectiveDate is used to select the appropriate version from those stored.
VersionEffectiveDates are always based on the UTC timezone.
| Field Summary |
|---|
| Fields inherited from class com.ail.core.Type |
|---|
jXPathContext, NOT_PERSISTED |
| Constructor Summary | |
|---|---|
VersionEffectiveDate()
Construct a VersionEffectiveDate representing the time now. |
|
VersionEffectiveDate(java.util.Date ved)
Create a VersionEffectiveDate based on another Date object. |
|
VersionEffectiveDate(long time)
Create a VersionEffectiveDate based on a time. |
|
| Method Summary | |
|---|---|
boolean |
after(VersionEffectiveDate when)
Tests if this date is after the specified date. |
boolean |
before(VersionEffectiveDate when)
Tests if this date is before the specified date |
int |
compareTo(VersionEffectiveDate that)
Compare this VEDs with another. |
boolean |
equals(java.lang.Object o)
Compares two dates for equality. |
java.util.Date |
getDate()
Get the Date object represented by this VersionEffectiveDate. |
long |
getTime()
Returns the number of milliseconds since January 1, 1970, 00:00:00 GMT represented by this VersionEffectiveDate object. |
void |
setTime(long time)
Set the time property. |
java.lang.String |
toString()
|
| Methods inherited from class com.ail.core.Type |
|---|
addAttribute, clone, deleteLock, deleteSerialVersion, fetchJXPathContext, getAttribute, getAttribute, getAttributeCount, getForeignSystemId, getLock, getSerialVersion, getSystemId, hasLock, hasSerialVersion, hasSystemId, isPersisted, markAsNotPersisted, mergeWithDataFrom, removeAttribute, removeAttribute, setAttribute, setForeignSystemId, setLock, setSerialVersion, setSystemId, xpathGet, xpathGet, xpathIterate, xpathSet |
| Methods inherited from class java.lang.Object |
|---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public VersionEffectiveDate()
public VersionEffectiveDate(java.util.Date ved)
ved - Date to base this VersionEffectiveDate on.public VersionEffectiveDate(long time)
time. Where time
is milliseconds since epoc.
time - | Method Detail |
|---|
public boolean before(VersionEffectiveDate when)
when - A date
true if and only if the instant of time represented by this
VersionEffectiveDate object is strictly earlier than the instant represented
by when; false otherwise.public boolean after(VersionEffectiveDate when)
when - A date
true if and only if the instant represented by this
VersionEffectiveDate object is strictly later than the instant
represented by when; false otherwise.public long getTime()
public void setTime(long time)
time - milliseconds since epocpublic java.util.Date getDate()
public boolean equals(java.lang.Object o)
Thus, two VersionEffectiveDate objects are equal if and only if the getTime method returns the same long value for both.
equals in class java.lang.Objecto - The object to compare with.
true if the objects are the same; false otherwise.public java.lang.String toString()
toString in class java.lang.ObjectDate.toString()public int compareTo(VersionEffectiveDate that)
that - VED to compare with.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||