com.stratelia.webactiv.util.publication.info
Class SeeAlsoDAO

java.lang.Object
  extended by com.stratelia.webactiv.util.publication.info.SeeAlsoDAO

public class SeeAlsoDAO
extends Object

Class declaration

Author:

Constructor Summary
SeeAlsoDAO()
          Constructor declaration
 
Method Summary
static void addLink(Connection con, WAPrimaryKey objectPK, WAPrimaryKey targetPK)
          Method declaration
static void deleteLink(Connection con, WAPrimaryKey objectPK, WAPrimaryKey targetPK)
           
static void deleteLinksByObjectId(Connection con, WAPrimaryKey objectPK)
           
static void deleteLinksByTargetId(Connection con, WAPrimaryKey targetPK)
           
static List<ForeignPK> getLinks(Connection con, WAPrimaryKey objectPK)
          Method declaration
static List<ForeignPK> getReverseLinks(Connection con, WAPrimaryKey objectPK)
          gets the publication identifiers which reference given publication
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SeeAlsoDAO

public SeeAlsoDAO()
Constructor declaration

See Also:
Method Detail

addLink

public static void addLink(Connection con,
                           WAPrimaryKey objectPK,
                           WAPrimaryKey targetPK)
                    throws SQLException
Method declaration

Parameters:
con -
infoPK -
infoLink -
Throws:
SQLException
See Also:

deleteLink

public static void deleteLink(Connection con,
                              WAPrimaryKey objectPK,
                              WAPrimaryKey targetPK)
                       throws SQLException
Throws:
SQLException

deleteLinksByObjectId

public static void deleteLinksByObjectId(Connection con,
                                         WAPrimaryKey objectPK)
                                  throws SQLException
Throws:
SQLException

deleteLinksByTargetId

public static void deleteLinksByTargetId(Connection con,
                                         WAPrimaryKey targetPK)
                                  throws SQLException
Throws:
SQLException

getLinks

public static List<ForeignPK> getLinks(Connection con,
                                       WAPrimaryKey objectPK)
                                throws SQLException
Method declaration

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

getReverseLinks

public static List<ForeignPK> getReverseLinks(Connection con,
                                              WAPrimaryKey objectPK)
                                       throws SQLException
gets the publication identifiers which reference given publication

Parameters:
con - SQL connection
objectPK - publication identifier which are searching referencer
Returns:
a list of publication identifier
Throws:
SQLException


Copyright © 2016 Silverpeas. All Rights Reserved.