com.wm.app.tn.db
Class ProfileGroupOps

java.lang.Object
  extended by com.wm.app.tn.db.ProfileGroupOps

public class ProfileGroupOps
extends java.lang.Object


Constructor Summary
ProfileGroupOps()
           
 
Method Summary
static int addPartnersToGroup(java.sql.Connection conn, java.lang.String groupID, java.lang.String[] partnerIDs)
           
static int addProfileGroup(java.sql.Connection conn, java.lang.String partnerID, java.lang.String groupID)
           
static int addProfileGroups(java.sql.Connection conn, java.lang.String partnerID, java.lang.String[] groupIDs)
           
static void deleteProfileGroup(java.sql.Connection conn, java.lang.String partnerID, java.lang.String groupID)
          Delete partner from a profile group.
static void deleteProfileGroups(java.sql.Connection conn, java.lang.String partnerID)
          Delete this partner from all profile group(s) that it is a member of.
static void deleteProfileGroups(java.sql.Connection conn, java.lang.String[] partnerIDs, java.lang.String groupID)
           
static java.lang.String[] getProfileGroups(java.sql.Connection conn, java.lang.String partnerId)
          Retrieve a list of profile groups that the partner is a member of.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProfileGroupOps

public ProfileGroupOps()
Method Detail

addProfileGroup

public static int addProfileGroup(java.sql.Connection conn,
                                  java.lang.String partnerID,
                                  java.lang.String groupID)
                           throws java.sql.SQLException
Throws:
java.sql.SQLException

addProfileGroups

public static int addProfileGroups(java.sql.Connection conn,
                                   java.lang.String partnerID,
                                   java.lang.String[] groupIDs)
                            throws java.sql.SQLException
Throws:
java.sql.SQLException

addPartnersToGroup

public static int addPartnersToGroup(java.sql.Connection conn,
                                     java.lang.String groupID,
                                     java.lang.String[] partnerIDs)
                              throws java.sql.SQLException
Throws:
java.sql.SQLException

deleteProfileGroup

public static void deleteProfileGroup(java.sql.Connection conn,
                                      java.lang.String partnerID,
                                      java.lang.String groupID)
                               throws java.sql.SQLException
Delete partner from a profile group.

Throws:
java.sql.SQLException

deleteProfileGroups

public static void deleteProfileGroups(java.sql.Connection conn,
                                       java.lang.String partnerID)
                                throws java.sql.SQLException
Delete this partner from all profile group(s) that it is a member of.

Throws:
java.sql.SQLException

deleteProfileGroups

public static void deleteProfileGroups(java.sql.Connection conn,
                                       java.lang.String[] partnerIDs,
                                       java.lang.String groupID)
                                throws java.sql.SQLException
Throws:
java.sql.SQLException

getProfileGroups

public static java.lang.String[] getProfileGroups(java.sql.Connection conn,
                                                  java.lang.String partnerId)
                                           throws java.sql.SQLException
Retrieve a list of profile groups that the partner is a member of.

Throws:
java.sql.SQLException