com.stratelia.webactiv.util.node.control.dao
Class NodeI18NDAO

java.lang.Object
  extended by com.stratelia.webactiv.util.node.control.dao.NodeI18NDAO

public class NodeI18NDAO
extends Object

This is the Node Data Access Object.

Author:
Nicolas Eysseric

Constructor Summary
NodeI18NDAO()
          This class must not be instanciated
 
Method Summary
static List<NodeI18NDetail> getTranslations(Connection con, int nodeId)
          Returns the rows described by the given query with one id parameter.
static void removeTranslation(Connection con, int id)
          Delete into the database a translation
static void removeTranslations(Connection con, int nodeId)
          Delete all translations of a node
static NodeI18NPK saveTranslation(Connection con, NodeI18NDetail nd)
          Insert into the database the data of a node
static NodeI18NPK updateTranslation(Connection con, NodeI18NDetail nd)
          Update into the database the translation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodeI18NDAO

public NodeI18NDAO()
This class must not be instanciated

Since:
1.0
Method Detail

saveTranslation

public static NodeI18NPK saveTranslation(Connection con,
                                         NodeI18NDetail nd)
                                  throws SQLException
Insert into the database the data of a node

Parameters:
nd - the NodeI18NDetail which contains data
Returns:
a NodeI18NPK which contains the new row id
Throws:
SQLException
Since:
1.0
See Also:
NodeI18NDetail

updateTranslation

public static NodeI18NPK updateTranslation(Connection con,
                                           NodeI18NDetail nd)
                                    throws SQLException
Update into the database the translation

Parameters:
nd - the NodeI18NDetail which contains data
Returns:
a NodeI18NPK which contains the new row id
Throws:
SQLException
Since:
1.0
See Also:
NodeI18NDetail

removeTranslation

public static void removeTranslation(Connection con,
                                     int id)
                              throws SQLException
Delete into the database a translation

Parameters:
id - translationId
Throws:
SQLException
Since:
1.0
See Also:
NodeI18NDetail

removeTranslations

public static void removeTranslations(Connection con,
                                      int nodeId)
                               throws SQLException
Delete all translations of a node

Parameters:
nodeId - id of the node to delete
con - the JDBC Connection
Throws:
SQLException
Since:
1.0

getTranslations

public static List<NodeI18NDetail> getTranslations(Connection con,
                                                   int nodeId)
                                            throws SQLException
Returns the rows described by the given query with one id parameter.

Parameters:
con -
nodeId -
Returns:
Throws:
SQLException


Copyright © 2016 Silverpeas. All Rights Reserved.