Class CommonNestedSetBean<T extends NodeInfo>

java.lang.Object
sk.iway.iwcm.database.ActiveRecordBase
sk.iway.iwcm.database.ActiveRecord
sk.iway.iwcm.database.nestedsets.CommonNestedSetBean<T>
All Implemented Interfaces:
NodeInfo
Direct Known Subclasses:
FileArchivCategoryNodeBean

@MappedSuperclass public abstract class CommonNestedSetBean<T extends NodeInfo> extends ActiveRecord implements NodeInfo
  • Field Details

    • TO_STRING_IGNORED_PROPERTIES

      public static List<String> TO_STRING_IGNORED_PROPERTIES
    • parent

      protected T extends NodeInfo parent
    • createRoot

      protected boolean createRoot
  • Constructor Details

    • CommonNestedSetBean

      public CommonNestedSetBean()
  • Method Details

    • getId

      public int getId()
      Specified by:
      getId in interface NodeInfo
      Specified by:
      getId in class ActiveRecord
    • setId

      public void setId(int id)
      Specified by:
      setId in class ActiveRecord
    • getLeftValue

      public int getLeftValue()
      Specified by:
      getLeftValue in interface NodeInfo
    • getRightValue

      public int getRightValue()
      Specified by:
      getRightValue in interface NodeInfo
    • getLevel

      public int getLevel()
      Specified by:
      getLevel in interface NodeInfo
    • getRootValue

      public int getRootValue()
      Specified by:
      getRootValue in interface NodeInfo
    • setLeftValue

      public void setLeftValue(int value)
      Specified by:
      setLeftValue in interface NodeInfo
    • setRightValue

      public void setRightValue(int value)
      Specified by:
      setRightValue in interface NodeInfo
    • setLevel

      public void setLevel(int level)
      Specified by:
      setLevel in interface NodeInfo
    • setRootValue

      public void setRootValue(int value)
      Specified by:
      setRootValue in interface NodeInfo
    • save

      public boolean save()
      Overrides:
      save in class ActiveRecordBase
    • delete

      public boolean delete()
      Overrides:
      delete in class ActiveRecordBase
    • setParent

      public void setParent(T parent)
    • createRoot

      public void createRoot()
    • getParent

      public T getParent()
    • getAncestors

      public List<T> getAncestors()
    • getChildren

      public List<T> getChildren()
    • getDescendants

      public List<T> getDescendants()
    • addChild

      public T addChild(T child)
    • isAncestorOf

      public boolean isAncestorOf(T maybeDescentan)
    • isDescentantOf

      public boolean isDescentantOf(T maybeAncestor)
    • moveToNewParent

      public void moveToNewParent(T parent)