anon.infoservice
Class AbstractDistributableDatabaseEntry.SerialDBEntry

java.lang.Object
  extended by anon.infoservice.AbstractDatabaseEntry
      extended by anon.infoservice.AbstractDistributableDatabaseEntry.SerialDBEntry
All Implemented Interfaces:
IServiceContextContainer
Enclosing class:
AbstractDistributableDatabaseEntry

public static class AbstractDistributableDatabaseEntry.SerialDBEntry
extends AbstractDatabaseEntry
implements IServiceContextContainer


Field Summary
private  boolean m_bValid
           
private  boolean m_bVerified
           
private  java.lang.String m_context
           
private  java.lang.String m_id
           
private  long m_lastUpdate
           
private  long m_version
           
 
Fields inherited from class anon.infoservice.AbstractDatabaseEntry
XML_ATTR_LAST_UPDATE, XML_LAST_UPDATE
 
Fields inherited from interface anon.infoservice.IServiceContextContainer
CONTEXT_JONDONYM, CONTEXT_JONDONYM_COMPATIBILITY, CONTEXT_JONDONYM_PREMIUM, XML_ATTR_CONTEXT
 
Constructor Summary
AbstractDistributableDatabaseEntry.SerialDBEntry(java.lang.String a_id, long a_version, long a_lastUpdate, boolean a_bVerified, boolean a_bValid, java.lang.String context)
           
 
Method Summary
 java.lang.String getContext()
           
 java.lang.String getId()
          Returns a unique ID for a database entry.
 long getLastUpdate()
          Returns the time in milliseconds when this db entry was created from the origin instance.
 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 isValid()
           
 boolean isVerified()
           
 void setContext(java.lang.String context)
           
 
Methods inherited from class anon.infoservice.AbstractDatabaseEntry
deletePersistence, getCreationTime, getExpireTime, isNewerThan, isPersistanceDeletionAllowed, isUserDefined, resetCreationTime
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_id

private java.lang.String m_id

m_version

private long m_version

m_lastUpdate

private long m_lastUpdate

m_bVerified

private boolean m_bVerified

m_bValid

private boolean m_bValid

m_context

private java.lang.String m_context
Constructor Detail

AbstractDistributableDatabaseEntry.SerialDBEntry

public AbstractDistributableDatabaseEntry.SerialDBEntry(java.lang.String a_id,
                                                        long a_version,
                                                        long a_lastUpdate,
                                                        boolean a_bVerified,
                                                        boolean a_bValid,
                                                        java.lang.String context)
Method Detail

isVerified

public boolean isVerified()

isValid

public boolean isValid()

getLastUpdate

public long getLastUpdate()
Description copied from class: AbstractDatabaseEntry
Returns the time in milliseconds when this db entry was created from the origin instance. Never (!) insert the local creation time here, as this will DoS the InfoServices in an endless loop.

Specified by:
getLastUpdate in class AbstractDatabaseEntry
Returns:
the time in milliseconds when this db entry was created from the origin instance

getId

public java.lang.String getId()
Description copied from class: AbstractDatabaseEntry
Returns a unique ID for a database entry.

Specified by:
getId in class AbstractDatabaseEntry
Returns:
The ID of this database entry.

getVersionNumber

public long getVersionNumber()
Description copied from class: AbstractDatabaseEntry
Returns version number which is used to determine the more recent infoservice entry, if two entries are compared (higher version number -> more recent entry). Never (!) insert the local creation time here, as this will DoS the InfoServices in an endless loop.

Specified by:
getVersionNumber in class AbstractDatabaseEntry
Returns:
The version number for this entry.

getContext

public java.lang.String getContext()
Specified by:
getContext in interface IServiceContextContainer

setContext

public void setContext(java.lang.String context)