java.lang.Object
org.tentackle.maven.plugin.wizard.pdodata.PdoWrapper

public class PdoWrapper extends Object
Wrapper for a PDO.
Adds the UDK property.
  • Constructor Details

    • PdoWrapper

      public PdoWrapper(org.tentackle.pdo.PersistentDomainObject<?> pdo)
      Creates a wrapper.
      Parameters:
      pdo - the PDO
  • Method Details

    • getPdo

      public org.tentackle.pdo.PersistentDomainObject<?> getPdo()
      Gets the wrapped PDO.
      Returns:
      the PDO
    • getDataObject

      public DataObject getDataObject()
      Gets the data object tree.
      Returns:
      the tree
    • getCodeConfiguration

      public Map<String,Boolean> getCodeConfiguration()
      Gets the code configuration.
      Returns:
      the config map, empty if no configuration available
    • getId

      @Bindable public long getId()
      Gets the object ID.
      Returns:
      the ID
    • getUDK

      @Bindable public String getUDK()
      Gets the unique domain key string.
      If the PDO implements ShortLongText, the long description is added in parentheses.
      Returns:
      the UDK, empty string if none
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object