|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object anon.infoservice.AbstractDatabaseEntry
public abstract class AbstractDatabaseEntry
This is a generic definition for a database entry. Every database entry must implement this methods.
Field Summary | |
---|---|
private long |
m_creationTime
|
private long |
m_expireTime
Stores the time when this entry will be deleted from the database. |
static java.lang.String |
XML_LAST_UPDATE
|
Constructor Summary | |
---|---|
AbstractDatabaseEntry(long a_expireTime)
Creates a new AbstractDatabaseEntry with the specified expire time. |
Method Summary | |
---|---|
long |
getCreationTime()
Returns the time in milliseconds when this db entry was create, that means read from the network or created from internal values. |
long |
getExpireTime()
Returns the time (see System.currentTimeMillis()) when this DatabaseEntry will be removed from the Database, if it is not updated meanwhile. |
abstract java.lang.String |
getId()
Returns a unique ID for a database entry. |
abstract long |
getLastUpdate()
Returns the time in milliseconds when this db entry was created from the origin instance. |
abstract long |
getVersionNumber()
Returns version number which is used to determine the more recent infoservice entry, if two entries are compared (higher version number -> more recent entry). |
boolean |
isNewerThan(AbstractDatabaseEntry a_oldEntry)
Returns if this entry is newer than the given entry. |
boolean |
isUserDefined()
Returns whether this entry was generated by a user within the JAP client (true) or was generated by an InfoService itself (false). |
void |
resetCreationTime()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String XML_LAST_UPDATE
private long m_expireTime
private long m_creationTime
Constructor Detail |
---|
public AbstractDatabaseEntry(long a_expireTime)
a_expireTime
- The time when this entry will be deleted from the database.Method Detail |
---|
public final boolean isNewerThan(AbstractDatabaseEntry a_oldEntry)
a_oldEntry
- AbstractDatabaseEntry
public boolean isUserDefined()
public abstract java.lang.String getId()
public final long getExpireTime()
public abstract long getLastUpdate()
public final long getCreationTime()
public final void resetCreationTime()
public abstract long getVersionNumber()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |