Class TreeDAO
- java.lang.Object
-
- org.silverpeas.core.pdc.tree.service.TreeDAO
-
public class TreeDAO extends Object
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedTreeDAO()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidchangeFatherAndPath(Connection con, int oldFather, int newFather, String path, String treeId)static TreeNodePKcreateNode(Connection con, TreeNode node)static StringcreateRoot(Connection con, TreeNode root)static voiddeleteNode(Connection con, TreeNodePK treeNodePK, String treeId)static voidlevelDown(Connection con, String path, String treeId)static voidlevelUp(Connection con, String path, String treeId)static voidupdateNode(Connection con, TreeNode node)static voidupdatePath(Connection con, String oldFather, String treeId)Update path of decendante nodes of the deleted node.
-
-
-
Method Detail
-
createRoot
public static String createRoot(Connection con, TreeNode root) throws SQLException
- Throws:
SQLException
-
createNode
public static TreeNodePK createNode(Connection con, TreeNode node) throws SQLException
- Throws:
SQLException
-
updateNode
public static void updateNode(Connection con, TreeNode node) throws SQLException
- Throws:
SQLException
-
deleteNode
public static void deleteNode(Connection con, TreeNodePK treeNodePK, String treeId) throws SQLException
- Throws:
SQLException
-
levelUp
public static void levelUp(Connection con, String path, String treeId) throws SQLException
- Throws:
SQLException
-
levelDown
public static void levelDown(Connection con, String path, String treeId) throws SQLException
- Throws:
SQLException
-
changeFatherAndPath
public static void changeFatherAndPath(Connection con, int oldFather, int newFather, String path, String treeId) throws SQLException
- Throws:
SQLException
-
updatePath
public static void updatePath(Connection con, String oldFather, String treeId) throws SQLException
Update path of decendante nodes of the deleted node.- Parameters:
con- - the connection to the databaseoldFather- - the deleted node- Throws:
SQLException
-
-