|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.wm.app.tn.db.ProfileFldOps
public class ProfileFldOps
Provides database operations for retrieving, inserting, updating and deleting partner ProfileFields. ExtendedProfileFields will contain metadata and a value. StandardProfileFields will contain metadata, but their value will always be null. Each StandardProfileField returned by methods in this class has to be merged with the associated value from the table & column identified in the field's metadata. This is done in the com.wm.app.tn.db.ProfileOps.
This class has no application knowledge in it. The data is not validated before committing it to the database. That is the responsibility of the caller.
Field Summary | |
---|---|
static java.util.Hashtable |
profGroups
|
Constructor Summary | |
---|---|
ProfileFldOps()
|
Method Summary | |
---|---|
static void |
addExtendedField(java.sql.Connection conn,
java.lang.String partnerID,
ExtendedProfileField fld)
Inserts an extended field for a partner. |
static void |
addExtendedField(java.lang.String partnerID,
ExtendedProfileField fld)
Inserts an extended field for a partner. |
static void |
deleteExtendedField(java.sql.Connection conn,
java.lang.String partnerID,
java.lang.String pfID)
Deletes an extended field for a partner. |
static void |
deleteExtendedField(java.lang.String partnerID,
java.lang.String pfID)
Deletes an extended field for a partner. |
static void |
deleteExtendedFields(java.sql.Connection conn,
java.lang.String partnerID,
int groupID)
|
static ExtendedProfileField |
getExtendedField(java.sql.Connection conn,
java.lang.String partnerID,
java.lang.String name)
Retrieves an extended ProfileField for a partner. |
static ExtendedProfileField |
getExtendedField(java.lang.String partnerID,
java.lang.String name)
Retrieves an extended ProfileField for a partner. |
static ExtendedProfileField |
getExtendedFieldByID(java.lang.String partnerID,
java.lang.String ID)
Retrieves an extended ProfileField for a partner. |
static java.util.Vector |
getExtendedFields()
|
static java.util.Vector<ExtendedProfileField> |
getExtendedFields(java.lang.String partnerID,
java.lang.String displayName)
|
static java.lang.Object |
getExtendedFieldValue(java.lang.String partnerID,
java.lang.String ID)
|
static java.util.Vector |
getExtFldsForPartner(java.lang.String partnerID)
|
static java.util.Enumeration |
getGroupFields(java.sql.Connection conn,
java.lang.String partnerID,
int groupID,
boolean extended)
Retrieves ProfileFields by group for a partner. |
static java.util.Enumeration |
getGroupFields(java.lang.String partnerID,
int groupID,
boolean extended)
Retrieves ProfileFields by group for a partner. |
static boolean |
updateExtendedField(java.sql.Connection conn,
ExtendedProfileField fld)
Updates an extended field for a partner. |
static void |
updateExtendedField(ExtendedProfileField fld)
Updates an extended field for a partner. |
static void |
updateExtendedFields(java.sql.Connection conn,
java.lang.String partnerID,
java.util.Vector flds)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.util.Hashtable profGroups
Constructor Detail |
---|
public ProfileFldOps()
Method Detail |
---|
public static java.util.Enumeration getGroupFields(java.lang.String partnerID, int groupID, boolean extended) throws java.sql.SQLException, ProfileStoreException
partnerID
- internally assigned ID for a partnergroup
- name of the group to retrive fields forextended
- indicates whether to retrieve extended or standard fields. Pass true
for extended
fields and false
for standard fields.
java.sql.SQLException
ProfileStoreException
public static java.util.Enumeration getGroupFields(java.sql.Connection conn, java.lang.String partnerID, int groupID, boolean extended) throws java.sql.SQLException, ProfileStoreException
conn
- an open Connection to the Trading Networks databasepartnerID
- internally assigned ID for a partnergroup
- name of the group to retrieve fields forextended
- indicates whether to retrieve extended or standard fields. Pass true
for extended
fields and false
for standard fields.
java.sql.SQLException
ProfileStoreException
public static ExtendedProfileField getExtendedField(java.lang.String partnerID, java.lang.String name) throws java.sql.SQLException, ProfileStoreException
partnerID
- internally assigned ID of a partnername
- the name of the extended field
java.sql.SQLException
ProfileStoreException
public static ExtendedProfileField getExtendedField(java.sql.Connection conn, java.lang.String partnerID, java.lang.String name) throws java.sql.SQLException, ProfileStoreException
conn
- an open Connection to the Trading Networks databasepartnerID
- internally assigned ID of a partnername
- the name of the extended field
java.sql.SQLException
ProfileStoreException
public static ExtendedProfileField getExtendedFieldByID(java.lang.String partnerID, java.lang.String ID) throws java.sql.SQLException, ProfileStoreException
partnerID
- internally assigned ID of a partnername
- the name of the extended field
java.sql.SQLException
ProfileStoreException
public static java.lang.Object getExtendedFieldValue(java.lang.String partnerID, java.lang.String ID) throws java.sql.SQLException, ProfileStoreException
java.sql.SQLException
ProfileStoreException
public static void addExtendedField(java.lang.String partnerID, ExtendedProfileField fld) throws java.sql.SQLException, ProfileStoreException
partnerID
- internally assigned ID of a partnerfld
- the ExtendedProfileField to be inserted to the database
java.sql.SQLException
ProfileStoreException
public static void addExtendedField(java.sql.Connection conn, java.lang.String partnerID, ExtendedProfileField fld) throws java.sql.SQLException, ProfileStoreException
conn
- an open Connection to the Trading Networks databasepartnerID
- internally assigned ID of a partnerfld
- the ExtendedProfileField to be inserted to the database
java.sql.SQLException
ProfileStoreException
public static void updateExtendedField(ExtendedProfileField fld) throws java.sql.SQLException, ProfileStoreException
partnerID
- internally assigned ID of a partnerfld
- the ExtendedProfileField to be inserted to the database
java.sql.SQLException
ProfileStoreException
public static void updateExtendedFields(java.sql.Connection conn, java.lang.String partnerID, java.util.Vector flds) throws java.sql.SQLException, ProfileStoreException
java.sql.SQLException
ProfileStoreException
public static boolean updateExtendedField(java.sql.Connection conn, ExtendedProfileField fld) throws java.sql.SQLException, ProfileStoreException
conn
- an open Connection to the Trading Networks databasepartnerID
- internally assigned ID of a partnerfld
- the ExtendedProfileField to be inserted to the database
java.sql.SQLException
ProfileStoreException
public static void deleteExtendedField(java.lang.String partnerID, java.lang.String pfID) throws java.sql.SQLException, ProfileStoreException
partnerID
- internally assigned ID of a partnerpfID
- the the ProfileFieldID of the extended field to be deleted. Given a ProfielField instance, this value
can be retrieved by calling getMetaData().getFieldID()
on it.
java.sql.SQLException
ProfileStoreException
public static void deleteExtendedField(java.sql.Connection conn, java.lang.String partnerID, java.lang.String pfID) throws java.sql.SQLException, ProfileStoreException
conn
- an open Connection to the Trading Networks databasepartnerID
- internally assigned ID of a partnerpfID
- the the ProfileFieldID of the extended field to be deleted. Given a ProfileField instance, this value
can be retrieved by calling getMetaData().getFieldID()
on it.
java.sql.SQLException
ProfileStoreException
public static void deleteExtendedFields(java.sql.Connection conn, java.lang.String partnerID, int groupID) throws java.sql.SQLException, ProfileStoreException
java.sql.SQLException
ProfileStoreException
public static java.util.Vector getExtFldsForPartner(java.lang.String partnerID) throws java.sql.SQLException, ProfileStoreException
java.sql.SQLException
ProfileStoreException
public static java.util.Vector getExtendedFields() throws java.sql.SQLException
java.sql.SQLException
public static java.util.Vector<ExtendedProfileField> getExtendedFields(java.lang.String partnerID, java.lang.String displayName)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |