|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.stratelia.webactiv.util.contact.control.ContactDAO
public class ContactDAO
This is the Contact Data Access Object.
Constructor Summary | |
---|---|
ContactDAO()
This class must not be instanciated |
Method Summary | |
---|---|
static void |
addFather(Connection con,
ContactPK pubPK,
NodePK fatherPK)
Add a new father to this contact |
static void |
deleteOrphanContactsByCreatorId(Connection con,
ContactPK pubPK,
String creatorId)
|
static void |
deleteRow(Connection con,
ContactPK pk)
|
static Collection<NodePK> |
getAllFatherPK(Connection con,
ContactPK pubPK)
Delete links between contact and father when contacts are linked to a father which is a descendant of a node |
static int |
getNbPubByFatherPath(Connection con,
NodePK fatherPK,
String fatherPath)
|
static int |
getNbPubInFatherPKs(Connection con,
Collection<NodePK> fatherPKs)
|
static Collection<ContactDetail> |
getOrphanContacts(Connection con,
ContactPK pubPK)
|
static Collection<ContactDetail> |
getUnavailableContactsByPublisherId(Connection con,
ContactPK pubPK,
String publisherId,
String nodeId)
|
static List<CompleteContact> |
getVisibleContacts(Connection con,
String instanceId)
Gets all non transitive contacts from an component represented by the given identifier that are not in basket. |
static void |
insertRow(Connection con,
Contact detail)
|
static ContactDetail |
loadRow(Connection con,
ContactPK pk)
|
static void |
removeAllFather(Connection con,
ContactPK pubPK)
Delete all fathers to this contact |
static void |
removeAllIssue(Connection con,
NodePK originPK,
ContactPK pubPK)
Delete links between contact and father when contacts are linked to a father which is a descendant of a node |
static void |
removeFather(Connection con,
ContactPK pubPK,
NodePK fatherPK)
Remove a father to this contact |
static Collection<ContactDetail> |
selectByContactPKs(Connection con,
Collection<ContactPK> contactPKs)
|
static Collection<ContactDetail> |
selectByFatherPK(Connection con,
NodePK fatherPK)
|
static Collection<ContactFatherDetail> |
selectByFatherPKs(Connection con,
Collection<NodePK> fatherPKs,
ContactPK pubPK,
NodePK nodePK)
|
static Collection<ContactDetail> |
selectByLastName(Connection con,
ContactPK pk,
String query)
|
static Collection<ContactDetail> |
selectByLastNameAndFirstName(Connection con,
ContactPK pk,
String lastName,
String firstName)
|
static Collection<ContactDetail> |
selectByLastNameOrFirstName(Connection con,
ContactPK pk,
String query)
|
static ContactPK |
selectByPrimaryKey(Connection con,
ContactPK primaryKey)
|
static void |
storeRow(Connection con,
Contact detail)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ContactDAO()
Method Detail |
---|
public static void addFather(Connection con, ContactPK pubPK, NodePK fatherPK) throws SQLException
con
- Connection to databasepubPK
- the contact ContactPKfatherPK
- the father NodePK to add
SQLException
NodePK
,
ContactPK
public static void removeFather(Connection con, ContactPK pubPK, NodePK fatherPK) throws SQLException
con
- Connection to databasepubPK
- the contact ContactPKfatherPK
- the father NodePK to delete
SQLException
NodePK
,
ContactPK
public static void removeAllFather(Connection con, ContactPK pubPK) throws SQLException
con
- Connection to databasepubPK
- the contact ContactPK
SQLException
ContactPK
public static void removeAllIssue(Connection con, NodePK originPK, ContactPK pubPK) throws SQLException
con
- Connection to databasepubPK
- the contact ContactPKoriginPK
- the node which is deleted
SQLException
NodePK
,
ContactPK
public static Collection<NodePK> getAllFatherPK(Connection con, ContactPK pubPK) throws SQLException
con
- Connection to databasepubPK
- the contact ContactPK
SQLException
NodePK
,
ContactPK
public static int getNbPubInFatherPKs(Connection con, Collection<NodePK> fatherPKs) throws SQLException
SQLException
public static int getNbPubByFatherPath(Connection con, NodePK fatherPK, String fatherPath) throws SQLException
SQLException
public static void insertRow(Connection con, Contact detail) throws SQLException
SQLException
public static void deleteRow(Connection con, ContactPK pk) throws SQLException
SQLException
public static ContactPK selectByPrimaryKey(Connection con, ContactPK primaryKey) throws SQLException, ParseException
SQLException
ParseException
public static Collection<ContactDetail> selectByLastName(Connection con, ContactPK pk, String query) throws SQLException, ParseException
SQLException
ParseException
public static Collection<ContactDetail> selectByLastNameOrFirstName(Connection con, ContactPK pk, String query) throws SQLException, ParseException
SQLException
ParseException
public static Collection<ContactDetail> selectByFatherPK(Connection con, NodePK fatherPK) throws SQLException, ParseException
SQLException
ParseException
public static Collection<ContactFatherDetail> selectByFatherPKs(Connection con, Collection<NodePK> fatherPKs, ContactPK pubPK, NodePK nodePK) throws SQLException, ParseException
SQLException
ParseException
public static Collection<ContactDetail> selectByContactPKs(Connection con, Collection<ContactPK> contactPKs) throws SQLException, ParseException
SQLException
ParseException
public static Collection<ContactDetail> getOrphanContacts(Connection con, ContactPK pubPK) throws SQLException, ParseException
SQLException
ParseException
public static void deleteOrphanContactsByCreatorId(Connection con, ContactPK pubPK, String creatorId) throws SQLException
SQLException
public static ContactDetail loadRow(Connection con, ContactPK pk) throws SQLException, ParseException
SQLException
ParseException
public static void storeRow(Connection con, Contact detail) throws SQLException
SQLException
public static Collection<ContactDetail> getUnavailableContactsByPublisherId(Connection con, ContactPK pubPK, String publisherId, String nodeId) throws SQLException, ParseException
SQLException
ParseException
public static Collection<ContactDetail> selectByLastNameAndFirstName(Connection con, ContactPK pk, String lastName, String firstName) throws SQLException, ParseException
SQLException
ParseException
public static List<CompleteContact> getVisibleContacts(Connection con, String instanceId) throws SQLException, ParseException
con
- the database connection.instanceId
- the identifier of the component instance into which contact are retrieved.
SQLException
ParseException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |