com.stratelia.silverpeas.treeManager.control
Class TreeDAO
java.lang.Object
com.stratelia.silverpeas.treeManager.control.TreeDAO
public class TreeDAO
- extends Object
Method Summary |
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TreeDAO
public TreeDAO()
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
Copyright © 2016 Silverpeas. All Rights Reserved.