com.stratelia.webactiv.util.publication.control
Class PublicationFatherDAO

java.lang.Object
  extended by com.stratelia.webactiv.util.publication.control.PublicationFatherDAO

public class PublicationFatherDAO
extends Object

This is the Publication Father Data Access Object.

Author:
Nicolas Eysseric

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

PublicationFatherDAO

public PublicationFatherDAO()
This class must not be instanciated

Since:
1.0
Method Detail

addFather

public static void addFather(Connection con,
                             PublicationPK pubPK,
                             NodePK fatherPK)
                      throws SQLException
Add a new father to this publication

Parameters:
con - Connection to database
pubPK - the publication PublicationPK
fatherPK - the father NodePK to add
Throws:
SQLException
Since:
1.0
See Also:
NodePK, PublicationPK

updateOrder

public static void updateOrder(Connection con,
                               PublicationPK pubPK,
                               NodePK fatherPK,
                               int order)
                        throws SQLException
Throws:
SQLException

addAlias

public static void addAlias(Connection con,
                            PublicationPK pubPK,
                            Alias alias)
                     throws SQLException
Throws:
SQLException

removeAlias

public static void removeAlias(Connection con,
                               PublicationPK pubPK,
                               Alias alias)
                        throws SQLException
Throws:
SQLException

getAlias

public static List<Alias> getAlias(Connection con,
                                   PublicationPK pubPK)
                            throws SQLException
Throws:
SQLException

removeFather

public static void removeFather(Connection con,
                                PublicationPK pubPK,
                                NodePK fatherPK)
                         throws SQLException
Remove a father to this publication

Parameters:
con - Connection to database
pubPK - the publication PublicationPK
fatherPK - the father NodePK to delete
Throws:
SQLException
Since:
1.0
See Also:
NodePK, PublicationPK

removeFatherToPublications

public static void removeFatherToPublications(Connection con,
                                              PublicationPK pubPK,
                                              NodePK fatherPK)
                                       throws SQLException
Method declaration

Parameters:
con -
pubPK -
fatherPK -
Throws:
SQLException
See Also:

removeFathersToPublications

public static void removeFathersToPublications(Connection con,
                                               PublicationPK pubPK,
                                               Collection<String> fatherIds)
                                        throws SQLException
Method declaration

Parameters:
con -
pubPK -
fatherIds -
Throws:
SQLException
See Also:

removeAllFather

public static void removeAllFather(Connection con,
                                   PublicationPK pubPK)
                            throws SQLException
Delete all fathers to this publication

Parameters:
con - Connection to database
pubPK - the publication PublicationPK
Throws:
SQLException
Since:
1.0
See Also:
PublicationPK

getAllFatherPK

public static Collection<NodePK> getAllFatherPK(Connection con,
                                                PublicationPK pubPK)
                                         throws SQLException
Delete links between publication and father when publications are linked to a father which is a descendant of a node

Parameters:
con - Connection to database
pubPK - the publication PublicationPK
Throws:
SQLException
Since:
1.0
See Also:
NodePK, PublicationPK

getAllFatherPK

public static Collection<NodePK> getAllFatherPK(Connection con,
                                                PublicationPK pubPK,
                                                String order)
                                         throws SQLException
Throws:
SQLException

getPubPKsInFatherPKs

public static Collection<PublicationPK> getPubPKsInFatherPKs(Connection con,
                                                             Collection<WAPrimaryKey> fatherPKs)
                                                      throws SQLException
Method declaration

Parameters:
con -
fatherPKs -
Returns:
Throws:
SQLException
See Also:

getPubPKsInFatherPK

public static Collection<PublicationPK> getPubPKsInFatherPK(Connection con,
                                                            NodePK fatherPK)
                                                     throws SQLException
Method declaration

Parameters:
con -
fatherPK -
Returns:
Throws:
SQLException
See Also:


Copyright © 2016 Silverpeas. All Rights Reserved.