Class AbstractVO

  • All Implemented Interfaces:
    java.lang.Cloneable, DataObject

    public abstract class AbstractVO
    extends java.lang.Object
    implements DataObject
    The base class for Value Objects which are DataObjects stored in Databases.
    Version:
    $Id: $Id
    Author:
    lrosenberg
    • Constructor Detail

      • AbstractVO

        public AbstractVO()
    • Method Detail

      • getLastUpdateTimestamp

        public long getLastUpdateTimestamp()
        Returns the timestamp (time in ms since 1970) of the last change.
        Specified by:
        getLastUpdateTimestamp in interface DataObject
        Returns:
        timestamp
      • getDaoCreated

        public abstract long getDaoCreated()
        Returns the timestamp in millis of the creation time of this object by the DAO.
        Returns:
        milliseconds
      • getDaoUpdated

        public abstract long getDaoUpdated()
        Returns the timestamp in millis of the last time of this object was been updated by the DAO.
        Returns:
        milliseconds
      • toXMLNode

        public net.anotheria.util.xml.XMLNode toXMLNode()
        Creates an XMLNode for this document for XML export.
        Specified by:
        toXMLNode in interface DataObject
        Returns:
        created XMLSNode
      • getObjectInfo

        public ObjectInfo getObjectInfo()
        Returns the object info about this data object.
        Specified by:
        getObjectInfo in interface DataObject
        Returns:
        object info
      • clone

        public AbstractVO clone()
        DataObjects are cloneable.
        Specified by:
        clone in interface DataObject
        Overrides:
        clone in class java.lang.Object
        Returns:
        cloned object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object