com.silverpeas.myLinks.dao
Class LinkDAO

java.lang.Object
  extended by com.silverpeas.myLinks.dao.LinkDAO

public class LinkDAO
extends Object


Method Summary
 int createLink(Connection con, LinkDetail linkToPersist)
           
 void deleteLink(Connection con, String linkId)
           
 void deleteLinksOfComponent(Connection con, String instanceId)
           
 void deleteLinksOfObject(Connection con, String objectId)
           
 List<LinkDetail> getAllLinksByInstance(Connection con, String instanceId)
           
 List<LinkDetail> getAllLinksByObject(Connection con, String instanceId, String objectId)
           
 List<LinkDetail> getAllLinksByUser(Connection con, String userId)
           
 LinkDetail getLink(Connection con, String linkId)
           
static LinkDAO getLinkDao()
          Gets the DAO instance associated to the link persistence management.
 void updateLink(Connection con, LinkDetail linkToUpdate)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getLinkDao

public static LinkDAO getLinkDao()
Gets the DAO instance associated to the link persistence management.

Returns:
the link DAO instance.

getAllLinksByUser

public List<LinkDetail> getAllLinksByUser(Connection con,
                                          String userId)
                                   throws SQLException
Throws:
SQLException

getAllLinksByInstance

public List<LinkDetail> getAllLinksByInstance(Connection con,
                                              String instanceId)
                                       throws SQLException
Throws:
SQLException

getAllLinksByObject

public List<LinkDetail> getAllLinksByObject(Connection con,
                                            String instanceId,
                                            String objectId)
                                     throws SQLException
Throws:
SQLException

getLink

public LinkDetail getLink(Connection con,
                          String linkId)
                   throws SQLException
Throws:
SQLException

createLink

public int createLink(Connection con,
                      LinkDetail linkToPersist)
               throws SQLException,
                      UtilException
Throws:
SQLException
UtilException

updateLink

public void updateLink(Connection con,
                       LinkDetail linkToUpdate)
                throws SQLException
Throws:
SQLException

deleteLink

public void deleteLink(Connection con,
                       String linkId)
                throws SQLException
Throws:
SQLException

deleteLinksOfComponent

public void deleteLinksOfComponent(Connection con,
                                   String instanceId)
                            throws SQLException
Throws:
SQLException

deleteLinksOfObject

public void deleteLinksOfObject(Connection con,
                                String objectId)
                         throws SQLException
Throws:
SQLException


Copyright © 2016 Silverpeas. All Rights Reserved.