Package org.silverpeas.core.node.dao
Class NodeI18NDAO
- java.lang.Object
-
- org.silverpeas.core.node.dao.NodeI18NDAO
-
public class NodeI18NDAO extends Object
This is the Node Data Access Object.- Author:
- Nicolas Eysseric
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
deleteComponentInstanceData(String componentInstanceId)
Deletes all translations of publications linked to the component instance represented by the given identifier.static List<NodeI18NDetail>
getTranslations(Connection con, String nodeId)
Returns the rows described by the given query with one id parameter.static void
removeTranslation(Connection con, String id)
Delete into the database a translationstatic void
removeTranslations(Connection con, int nodeId)
Delete all translations of a nodestatic NodeI18NPK
saveTranslation(Connection con, NodeI18NDetail nd)
Insert into the database the data of a nodestatic NodeI18NPK
updateTranslation(Connection con, NodeI18NDetail nd)
Update into the database the translation
-
-
-
Method Detail
-
deleteComponentInstanceData
public static void deleteComponentInstanceData(String componentInstanceId) throws SQLException
Deletes all translations of publications linked to the component instance represented by the given identifier.- Parameters:
componentInstanceId
- the identifier of the component instance for which the resources must be deleted.- Throws:
SQLException
-
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, String id) throws SQLException
Delete into the database a translation- Parameters:
id
- node identifier about which the translation is- 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 deletecon
- the JDBC Connection- Throws:
SQLException
- Since:
- 1.0
-
getTranslations
public static List<NodeI18NDetail> getTranslations(Connection con, String nodeId) throws SQLException
Returns the rows described by the given query with one id parameter.- Parameters:
con
-nodeId
-- Returns:
- Throws:
SQLException
-
-