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, Entity entity, Relation relation, NonCompositeRelation nmRelation, boolean hidden, SqlCondition sqlCondition) Creates a DataObject. -
Method Summary
Modifier and TypeMethodDescriptionThe optional comment.Gets the optional configuration path.Gets the entity of this object.longgetId()Gets the object ID.getName()Gets the object name, null if root entity.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.Returns the SQL select configuration for the where clause.getType()Gets the object type basename.getValue()Returns the value of the node.
This is usually thetoStringvalue.booleanisHidden()Gets the hidden flag.voidsetConfigurationPath(String configurationPath) Sets the optional configuration path.voidsetDataList(DataList dataList, int listIndex) Sets the parent datalist and the index if this is a list element.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, Entity entity, Relation relation, NonCompositeRelation nmRelation, boolean hidden, SqlCondition sqlCondition) 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 nullentity- the entity of this objectrelation- the composite object 1:1 relationnmRelation- optional N:M relationhidden- true if object is hidden (no public method available)sqlCondition- the SQL where condition
-
-
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. -
getComment
Description copied from interface:DataNodeThe optional comment.- Specified by:
getCommentin interfaceDataNode- Returns:
- the comment, null if none
-
isHidden
public boolean isHidden()Description copied from interface:DataNodeGets the hidden flag. -
getSqlCondition
Description copied from interface:DataNodeReturns the SQL select configuration for the where clause.- Specified by:
getSqlConditionin interfaceDataNode- Returns:
- the sql config
-
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. -
getEntity
Gets the entity of this object. -
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
-
setDataList
Sets the parent datalist and the index if this is a list element.- Parameters:
dataList- the data listlistIndex- the list index
-
toString
-