|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.stratelia.webactiv.util.publication.control.PublicationFatherDAO
public class PublicationFatherDAO
This is the Publication Father Data Access Object.
Constructor Summary | |
---|---|
PublicationFatherDAO()
This class must not be instanciated |
Method Summary | |
---|---|
static void |
addAlias(Connection con,
PublicationPK pubPK,
Alias alias)
|
static void |
addFather(Connection con,
PublicationPK pubPK,
NodePK fatherPK)
Add a new father to this publication |
static List<Alias> |
getAlias(Connection con,
PublicationPK pubPK)
|
static Collection<NodePK> |
getAllFatherPK(Connection con,
PublicationPK pubPK)
Delete links between publication and father when publications are linked to a father which is a descendant of a node |
static Collection<NodePK> |
getAllFatherPK(Connection con,
PublicationPK pubPK,
String order)
|
static Collection<PublicationPK> |
getPubPKsInFatherPK(Connection con,
NodePK fatherPK)
Method declaration |
static Collection<PublicationPK> |
getPubPKsInFatherPKs(Connection con,
Collection<WAPrimaryKey> fatherPKs)
Method declaration |
static void |
removeAlias(Connection con,
PublicationPK pubPK,
Alias alias)
|
static void |
removeAllFather(Connection con,
PublicationPK pubPK)
Delete all fathers to this publication |
static void |
removeFather(Connection con,
PublicationPK pubPK,
NodePK fatherPK)
Remove a father to this publication |
static void |
removeFathersToPublications(Connection con,
PublicationPK pubPK,
Collection<String> fatherIds)
Method declaration |
static void |
removeFatherToPublications(Connection con,
PublicationPK pubPK,
NodePK fatherPK)
Method declaration |
static void |
updateOrder(Connection con,
PublicationPK pubPK,
NodePK fatherPK,
int order)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PublicationFatherDAO()
Method Detail |
---|
public static void addFather(Connection con, PublicationPK pubPK, NodePK fatherPK) throws SQLException
con
- Connection to databasepubPK
- the publication PublicationPKfatherPK
- the father NodePK to add
SQLException
NodePK
,
PublicationPK
public static void updateOrder(Connection con, PublicationPK pubPK, NodePK fatherPK, int order) throws SQLException
SQLException
public static void addAlias(Connection con, PublicationPK pubPK, Alias alias) throws SQLException
SQLException
public static void removeAlias(Connection con, PublicationPK pubPK, Alias alias) throws SQLException
SQLException
public static List<Alias> getAlias(Connection con, PublicationPK pubPK) throws SQLException
SQLException
public static void removeFather(Connection con, PublicationPK pubPK, NodePK fatherPK) throws SQLException
con
- Connection to databasepubPK
- the publication PublicationPKfatherPK
- the father NodePK to delete
SQLException
NodePK
,
PublicationPK
public static void removeFatherToPublications(Connection con, PublicationPK pubPK, NodePK fatherPK) throws SQLException
con
- pubPK
- fatherPK
-
SQLException
public static void removeFathersToPublications(Connection con, PublicationPK pubPK, Collection<String> fatherIds) throws SQLException
con
- pubPK
- fatherIds
-
SQLException
public static void removeAllFather(Connection con, PublicationPK pubPK) throws SQLException
con
- Connection to databasepubPK
- the publication PublicationPK
SQLException
PublicationPK
public static Collection<NodePK> getAllFatherPK(Connection con, PublicationPK pubPK) throws SQLException
con
- Connection to databasepubPK
- the publication PublicationPK
SQLException
NodePK
,
PublicationPK
public static Collection<NodePK> getAllFatherPK(Connection con, PublicationPK pubPK, String order) throws SQLException
SQLException
public static Collection<PublicationPK> getPubPKsInFatherPKs(Connection con, Collection<WAPrimaryKey> fatherPKs) throws SQLException
con
- fatherPKs
-
SQLException
public static Collection<PublicationPK> getPubPKsInFatherPK(Connection con, NodePK fatherPK) throws SQLException
con
- fatherPK
-
SQLException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |