Package net.anotheria.asg.data
Interface DataObject
-
- All Superinterfaces:
java.lang.Cloneable
- All Known Implementing Classes:
AbstractASGDocument,AbstractFederatedVO,AbstractVO
public interface DataObject extends java.lang.CloneableBasic interface which all objects managed by the generated code will implement and which provides basic access methods.- Version:
- $Id: $Id
- Author:
- lrosenberg
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Objectclone()DataObjects are cloneable.java.lang.StringgetDefinedName()Returns the name under which the object was defined in xml originally.java.lang.StringgetDefinedParentName()Returns the parent module name under which the object was defined in xml originally.java.lang.StringgetFootprint()Returns the footprint of the document.java.lang.StringgetId()Returns a document id.longgetLastUpdateTimestamp()Returns the timestamp (time in ms since 1970) of the last change.ObjectInfogetObjectInfo()Returns the object info about this data object.java.lang.ObjectgetPropertyValue(java.lang.String propertyName)Returns the value of a property in an underlying type.net.anotheria.util.xml.XMLNodetoXMLNode()Creates an XMLNode for this document for XML export.
-
-
-
Method Detail
-
getId
java.lang.String getId()
Returns a document id. Each document regardless if it comes from db or filesystem has a unique id.- Returns:
- document id
-
clone
java.lang.Object clone() throws java.lang.CloneNotSupportedExceptionDataObjects are cloneable.- Returns:
- cloned object
- Throws:
java.lang.CloneNotSupportedException- if any.
-
getPropertyValue
java.lang.Object getPropertyValue(java.lang.String propertyName)
Returns the value of a property in an underlying type.- Parameters:
propertyName- aStringobject.- Returns:
- value of property
-
getDefinedName
java.lang.String getDefinedName()
Returns the name under which the object was defined in xml originally.- Returns:
- name of definition
-
getDefinedParentName
java.lang.String getDefinedParentName()
Returns the parent module name under which the object was defined in xml originally.- Returns:
- parent module
-
getLastUpdateTimestamp
long getLastUpdateTimestamp()
Returns the timestamp (time in ms since 1970) of the last change.- Returns:
- timestamp
-
toXMLNode
net.anotheria.util.xml.XMLNode toXMLNode()
Creates an XMLNode for this document for XML export.- Returns:
- created XMLSNode
-
getFootprint
java.lang.String getFootprint()
Returns the footprint of the document. The footprint is the unique code which identifies a document state. The footprint is calculates from the values of all attributes.- Returns:
- footprint
-
getObjectInfo
ObjectInfo getObjectInfo()
Returns the object info about this data object.- Returns:
- object info
-
-