anon.infoservice
Class AbstractMarkedMessageIDDBEntry
java.lang.Object
anon.infoservice.AbstractDatabaseEntry
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
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
m_serial
private long m_serial
m_id
private java.lang.String m_id
m_creationTimeStamp
private long m_creationTimeStamp
AbstractMarkedMessageIDDBEntry
public AbstractMarkedMessageIDDBEntry(MessageDBEntry a_messageEntry)
AbstractMarkedMessageIDDBEntry
public AbstractMarkedMessageIDDBEntry(org.w3c.dom.Element a_messageEntryElement)
throws XMLParseException
- Throws:
XMLParseException
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