|
||||||||||
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.ProfileOps
public class ProfileOps
Provides database operations for retrieving partner profiles and components of profiles.
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.
Constructor Summary | |
---|---|
ProfileOps()
|
Method Summary | |
---|---|
static int |
getBinaryTypeCode(java.sql.Connection conn,
java.lang.String binaryType)
|
static Contact |
getContact(java.lang.String contactID)
|
static Address |
getCorpAddress(java.lang.String addressID)
|
static java.util.Vector |
getCorporateAddresses(java.lang.String partnerID)
|
static java.util.Vector |
getDestinations(java.sql.Connection conn,
java.lang.String partnerID,
java.lang.String protocol)
Retrieves all the connections of a specific protocol for a partner. |
static java.util.Vector |
getDestinations(java.lang.String partnerID)
Retrieves all the connections for a partner. |
static java.util.Vector |
getIDs(java.lang.String partnerID)
Retrieves all the alternate IDs for a partner. |
static java.util.Vector |
getPartnerAllContacts(java.sql.Connection conn,
java.lang.String partnerID)
Retrieves all Contacts for the given partner on the trading network. |
static byte[] |
getPartnerBinary(java.sql.Connection conn,
java.lang.String partnerID,
int binaryType)
|
static Contact |
getPartnerContact(java.sql.Connection conn,
java.lang.String partnerID,
java.lang.String contactType)
Deprecated. use the getPatnerContacts instead |
static java.util.Vector |
getPartnerContacts(java.sql.Connection conn,
java.lang.String partnerID,
java.lang.String contactType)
Retrieves all Contacts of a given contact type for the given partner on the trading network. |
static java.util.Hashtable |
getPollingFrequencies()
|
static Profile |
getProfile(java.sql.Connection conn,
java.lang.String partnerID)
Retrieves the partner's profile from the TN database. |
static Profile |
getProfile(java.lang.String partnerID)
Retrieves the partner's profile from the TN database. |
static java.lang.String |
getProfileIdFromName(java.lang.String partnerName,
java.lang.String orgUnitName)
Retrieves the partner's profile ID from the TN database. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ProfileOps()
Method Detail |
---|
public static Profile getProfile(java.lang.String partnerID) throws java.sql.SQLException, ProfileStoreException
partnerID
- internally assigned ID of a partner
java.sql.SQLException
ProfileStoreException
public static java.lang.String getProfileIdFromName(java.lang.String partnerName, java.lang.String orgUnitName) throws java.sql.SQLException, ProfileStoreException
partnerName
- OrgUnitName
-
java.sql.SQLException
ProfileStoreException
public static Profile getProfile(java.sql.Connection conn, java.lang.String partnerID) throws java.sql.SQLException, ProfileStoreException
conn
- an open connection to the Trading Networks databasepartnerID
- internally assigned ID of a partner
java.sql.SQLException
ProfileStoreException
public static java.util.Vector getDestinations(java.lang.String partnerID) throws java.sql.SQLException, ProfileStoreException
java.sql.SQLException
ProfileStoreException
public static java.util.Vector getDestinations(java.sql.Connection conn, java.lang.String partnerID, java.lang.String protocol) throws java.sql.SQLException, ProfileStoreException
java.sql.SQLException
ProfileStoreException
public static Contact getPartnerContact(java.sql.Connection conn, java.lang.String partnerID, java.lang.String contactType) throws java.sql.SQLException, ProfileStoreException
conn
- an open connection to the Trading Network databasepartnerID
- the internally assigned id for a trading partnercontactType
- the type of contact to be retrieved. Value must match the Description column in a row on the
ContactType table.
java.sql.SQLException
ProfileStoreException
public static java.util.Vector getPartnerContacts(java.sql.Connection conn, java.lang.String partnerID, java.lang.String contactType) throws java.sql.SQLException, ProfileStoreException
conn
- an open connection to the Trading Network databasepartnerID
- the internally assigned id for a trading partnercontactType
- the type of contact to be retrieved. Value must match the Description column in a row on the
ContactType table.
java.sql.SQLException
ProfileStoreException
public static byte[] getPartnerBinary(java.sql.Connection conn, java.lang.String partnerID, int binaryType) throws java.sql.SQLException, ProfileStoreException
java.sql.SQLException
ProfileStoreException
public static java.util.Hashtable getPollingFrequencies() throws java.sql.SQLException, ProfileStoreException
java.sql.SQLException
ProfileStoreException
public static int getBinaryTypeCode(java.sql.Connection conn, java.lang.String binaryType) throws java.sql.SQLException, ProfileStoreException
java.sql.SQLException
ProfileStoreException
public static java.util.Vector getPartnerAllContacts(java.sql.Connection conn, java.lang.String partnerID) throws java.sql.SQLException, ProfileStoreException
conn
- an open connection to the Trading Network databasepartnerID
- the internally assigned id for a trading partner
java.sql.SQLException
ProfileStoreException
public static java.util.Vector getIDs(java.lang.String partnerID) throws java.sql.SQLException, ProfileStoreException
java.sql.SQLException
ProfileStoreException
public static java.util.Vector getCorporateAddresses(java.lang.String partnerID) throws java.sql.SQLException, ProfileStoreException
java.sql.SQLException
ProfileStoreException
public static Contact getContact(java.lang.String contactID) throws java.sql.SQLException
java.sql.SQLException
public static Address getCorpAddress(java.lang.String addressID) throws java.sql.SQLException
java.sql.SQLException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |