Class TreeDAO
- java.lang.Object
-
- org.silverpeas.core.pdc.tree.service.TreeDAO
-
public class TreeDAO extends Object
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
TreeDAO()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
changeFatherAndPath(Connection con, int oldFather, int newFather, String path, String treeId)
static TreeNodePK
createNode(Connection con, TreeNode node)
static String
createRoot(Connection con, TreeNode root)
static void
deleteNode(Connection con, TreeNodePK treeNodePK, String treeId)
static void
levelDown(Connection con, String path, String treeId)
static void
levelUp(Connection con, String path, String treeId)
static void
updateNode(Connection con, TreeNode node)
static void
updatePath(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
-
-