Class DataObject
java.lang.Object
org.tentackle.maven.plugin.wizard.pdodata.DataObject
- All Implemented Interfaces:
DataNode
A PDO object.
Such as
Such as
Message blah = [1256668/1]
-
Constructor Summary
ConstructorsConstructorDescriptionDataObject(org.tentackle.pdo.PersistentDomainObject<?> pdo, String name, String comment, List<DataNode> nodes, Relation relation, NonCompositeRelation nmRelation) Creates a DataObject. -
Method Summary
Modifier and TypeMethodDescriptionThe optional comment.Gets the optional configuration path.longgetId()Gets the object ID.getName()Gets the object name, null if root entity or list member.Gets the optional N:M relation.getNodes()Gets the items of the object, null if reference is null.org.tentackle.pdo.PersistentDomainObject<?>getPdo()Gets the PDO.Gets the 1:1 composite object relation.longGets the object serial.getType()Gets the object type basename.getValue()Returns the value of the node.
This is usually thetoStringvalue.voidsetConfigurationPath(String configurationPath) Sets the optional configuration path.toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.tentackle.maven.plugin.wizard.pdodata.DataNode
getNodeType
-
Constructor Details
-
DataObject
public DataObject(org.tentackle.pdo.PersistentDomainObject<?> pdo, String name, String comment, List<DataNode> nodes, Relation relation, NonCompositeRelation nmRelation) Creates a DataObject.- Parameters:
pdo- the PDOname- the object name, null if root entity or list membercomment- the optional commentnodes- the items of the object, null if reference is nullrelation- the composite object 1:1 relationnmRelation- optional N:M relation
-
-
Method Details
-
getPdo
public org.tentackle.pdo.PersistentDomainObject<?> getPdo()Gets the PDO.- Returns:
- the PDO
-
getType
Gets the object type basename. -
getName
Gets the object name, null if root entity or list member. -
getComment
Description copied from interface:DataNodeThe optional comment.- Specified by:
getCommentin interfaceDataNode- Returns:
- the comment, null if none
-
getId
public long getId()Gets the object ID.- Returns:
- the object ID
-
getSerial
public long getSerial()Gets the object serial.- Returns:
- the object serial
-
getNodes
Gets the items of the object, null if reference is null. -
getRelation
Gets the 1:1 composite object relation.- Returns:
- the relation
-
getNmRelation
Gets the optional N:M relation.- Returns:
- the relation, null if none
-
getValue
Description copied from interface:DataNodeReturns the value of the node.
This is usually thetoStringvalue. For collections, it's the size. -
setConfigurationPath
Description copied from interface:DataNodeSets the optional configuration path.- Specified by:
setConfigurationPathin interfaceDataNode- Parameters:
configurationPath- the path
-
getConfigurationPath
Description copied from interface:DataNodeGets the optional configuration path.- Specified by:
getConfigurationPathin interfaceDataNode- Returns:
- the path, null if none
-
toString
-