anon.infoservice
Class AbstractMarkedMessageIDDBEntry

java.lang.Object
  extended by anon.infoservice.AbstractDatabaseEntry
      extended by anon.infoservice.AbstractMarkedMessageIDDBEntry
All Implemented Interfaces:
IXMLEncodable
Direct Known Subclasses:
ClickedMessageIDDBEntry, DeletedMessageIDDBEntry

public abstract class AbstractMarkedMessageIDDBEntry
extends AbstractDatabaseEntry
implements IXMLEncodable

Stored all message db entries deleted by the user.

Author:
Rolf Wendolsky

Field Summary
private  long m_creationTimeStamp
           
private  java.lang.String m_id
           
private  long m_serial
           
 
Fields inherited from class anon.infoservice.AbstractDatabaseEntry
XML_ATTR_LAST_UPDATE, XML_LAST_UPDATE
 
Fields inherited from interface anon.util.IXMLEncodable
FIELD_XML_ELEMENT_CONTAINER_NAME, FIELD_XML_ELEMENT_NAME, XML_ATTR_ID, XML_ATTR_LANGUAGE, XML_ATTR_VERSION
 
Constructor Summary
AbstractMarkedMessageIDDBEntry(org.w3c.dom.Element a_messageEntryElement)
           
AbstractMarkedMessageIDDBEntry(MessageDBEntry a_messageEntry)
           
 
Method Summary
 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).
abstract  java.lang.String getXmlElementName()
           
 org.w3c.dom.Element toXmlElement(org.w3c.dom.Document a_doc)
          Return an element that can be appended to the document.
 
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_serial

private long m_serial

m_id

private java.lang.String m_id

m_creationTimeStamp

private long m_creationTimeStamp
Constructor Detail

AbstractMarkedMessageIDDBEntry

public AbstractMarkedMessageIDDBEntry(MessageDBEntry a_messageEntry)

AbstractMarkedMessageIDDBEntry

public AbstractMarkedMessageIDDBEntry(org.w3c.dom.Element a_messageEntryElement)
                               throws XMLParseException
Throws:
XMLParseException
Method Detail

getXmlElementName

public abstract java.lang.String getXmlElementName()

getVersionNumber

public final 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.

getId

public final 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.

getLastUpdate

public final 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

toXmlElement

public final org.w3c.dom.Element toXmlElement(org.w3c.dom.Document a_doc)
Description copied from interface: IXMLEncodable
Return an element that can be appended to the document. This Method must not change the document in any way!

Specified by:
toXmlElement in interface IXMLEncodable
Parameters:
a_doc - a document
Returns:
the interface as xml element