Interface Persistable

    • Method Detail

      • getId

        java.lang.String getId()
        Get id identifying object.
        Returns:
        id
      • getType

        java.lang.String getType()
        Get type (XML element name / database table name not Java class name).
        Returns:
        type
      • getAttributes

        NameValuePairList getAttributes()
        Get all single value fields.
        Returns:
        name value pair list
      • getChildren

        java.util.List<java.util.List<Persistable>> getChildren()
        Get all multi value fields.
        Returns:
        list of list of persistable objects
      • setChildren

        void setChildren​(java.util.List<java.util.List<Persistable>> childs)
                  throws ModelException
        Set all multi value fields.
        Parameters:
        childs - list of list of persistable objects
        Throws:
        ModelException - if problems