
org.hibernate.examples.model.HibernateTreeEntity Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hibernate-examples Show documentation
Show all versions of hibernate-examples Show documentation
Hibernate 2nd level cache using Redis examples.
The newest version!
package org.hibernate.examples.model;
import java.util.Set;
/**
* 트리 구조를 가지는 엔티티를 표현하는 인터페이스입니다.
*
* @author 배성혁 [email protected]
* @since 2013. 11. 27. 오후 4:29
*/
public interface HibernateTreeEntity> extends PersistentObject {
/**
* 현재 노드의 부모 노드를 반환합니다. null이면, 현 노드가 최상위 노드 (root node) 입니다.
*/
T getParent();
/**
* 부모 노드를 설정합니다. (null 을 설정하면, 최상위 노드(root node) 가 됩니다.)
*/
void setParent(T parent);
/**
* 자식 노드 집합 (Set)
*/
Set getChildren();
/**
* 현재 노드의 트리 구조상의 위치를 나타냅니다.
*/
TreeNodePosition getNodePosition();
/**
* 자식 노드를 추가합니다.
*/
void addChild(T child);
/**
* 자식 노드를 삭제합니다.
*/
void removeChild(T child);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy