|
||||||||||
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.ProfileIDOps
public class ProfileIDOps
Provides database operations for retrieving various IDs to be found in the profile.
Constructor Summary | |
---|---|
ProfileIDOps()
|
Method Summary | |
---|---|
static java.lang.String |
getExternalID(java.sql.Connection conn,
java.lang.String intID,
int extIDType)
Retrieves an external ID for a partner on the trading network. |
static java.lang.String |
getExternalID(java.lang.String intID,
int extIDType)
Retrieves an external ID for a partner on the trading network. |
static ID |
getExternalIDObject(java.lang.String intID,
int extIDType)
Retrieves an external ID object for a partner on the trading network. |
static java.lang.String[] |
getExternalIDs(java.lang.String intID,
int extIDType)
Retrieves a set of external IDs for a partner on the trading network. |
static java.lang.String |
getHostID()
|
static java.lang.String |
getHostID(java.sql.Connection conn)
Retrieves the internally generated ID of the partner hosting the trading network. |
static java.util.Hashtable |
getIDMap(int idType)
Retrieves all external and internal IDs for a specified type as a map of external-to-internal IDs. |
static int |
getIDTypeByPartnerIDID(java.sql.Connection conn,
java.lang.String idKey)
Retrieves external IDType from PartnerIDID, the primary key in PartnerID table. |
static int |
getIDTypeByPartnerIDID(java.lang.String idKey)
Retrieves external IDType from PartnerIDID, the primary key in PartnerID table. |
static java.lang.String |
getInternalID(java.sql.Connection conn,
java.lang.String extID,
int extIDType)
Retrieves the internal, TN-generated ID for a partner on the trading network. |
static java.lang.String |
getInternalID(java.lang.String extID,
int extIDType)
Retrieves the internal, TN-generated ID for a partner on the trading network. |
static java.lang.String |
getInternalIDByDestinationID(java.sql.Connection conn,
java.lang.String destKey)
Retrieves the internal, TN-generated ID for a parter on the trading network from supplied DestinationID, the primary key in Destination table. |
static java.lang.String |
getInternalIDByDestinationID(java.lang.String destKey)
Retrieves the internal, TN-generated ID for a parter on the trading network from supplied DestinationID, the primary key in Destination table. |
static java.lang.String |
getInternalIDByPartnerIDID(java.sql.Connection conn,
java.lang.String idKey)
Retrieves the internal, TN-generated ID for a parter on the trading network from supplied PartnerIDID, the primary key in PartnerID table. |
static java.lang.String |
getInternalIDByPartnerIDID(java.lang.String idKey)
Retrieves the internal, TN-generated ID for a parter on the trading network from supplied PartnerIDID, the primary key in PartnerID table. |
static java.lang.String[] |
getInternalIDsByDeleteStatus(int delStatus)
|
static java.lang.String[] |
getInternalIDsByGroup(java.lang.String groupID)
Retrieves the internal, TN-generated IDs for all partners in the specified group |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ProfileIDOps()
Method Detail |
---|
public static java.lang.String getHostID() throws java.sql.SQLException, ProfileStoreException
java.sql.SQLException
ProfileStoreException
public static java.lang.String getHostID(java.sql.Connection conn) throws java.sql.SQLException, ProfileStoreException
conn
- an open connection to the Trading Networks database
ProfileStoreException
- if the requested user does not exist in the database
java.sql.SQLException
public static java.lang.String getInternalID(java.lang.String extID, int extIDType) throws java.sql.SQLException, ProfileStoreException
extID
- an external ID for a partnerextIDType
- the type of external ID
java.sql.SQLException
ProfileStoreException
public static java.lang.String getInternalID(java.sql.Connection conn, java.lang.String extID, int extIDType) throws java.sql.SQLException, ProfileStoreException
conn
- an open connection to the Trading Network databaseextID
- an external ID for a partnerextIDType
- the type of external ID (e.g. DUNS number)
java.sql.SQLException
ProfileStoreException
public static java.lang.String getExternalID(java.lang.String intID, int extIDType) throws java.sql.SQLException, ProfileStoreException
intID
- the internal, TN-generated ID of the partnerextIDType
- the type of external ID to retrieve. This must be a value found in the Type column of the
PartnerID table
java.sql.SQLException
ProfileStoreException
public static java.lang.String getExternalID(java.sql.Connection conn, java.lang.String intID, int extIDType) throws java.sql.SQLException, ProfileStoreException
conn
- an open connection to the Trading Network databaseintID
- the internal, TN-generated ID of the partnerextIDType
- the type of external ID to retrieve. This must be a value found in the Type column of the
PartnerID table
java.sql.SQLException
ProfileStoreException
public static java.lang.String[] getExternalIDs(java.lang.String intID, int extIDType) throws java.sql.SQLException, ProfileStoreException
intID
- the internal, TN-generated ID of the partnerextIDType
- the type of external ID to retrieve. This must be a value found in the Type column of the
PartnerID table
java.sql.SQLException
ProfileStoreException
public static java.util.Hashtable getIDMap(int idType) throws java.sql.SQLException, ProfileStoreException
conn
- an open connection to the Trading Network databaseidType
- the type of IDs to retrieve. This must be a value found in the Type column of the PartnerID table
java.sql.SQLException
ProfileStoreException
public static java.lang.String getInternalIDByPartnerIDID(java.sql.Connection conn, java.lang.String idKey) throws java.sql.SQLException, ProfileStoreException
conn
- an open connection to the Trading Network databaseidKey
- PartnerIDID string, the primary key for the PartnerID table
java.sql.SQLException
ProfileStoreException
public static java.lang.String getInternalIDByPartnerIDID(java.lang.String idKey) throws java.sql.SQLException, ProfileStoreException
idKey
- PartnerIDID string, the primary key for the PartnerID table
java.sql.SQLException
ProfileStoreException
public static java.lang.String[] getInternalIDsByGroup(java.lang.String groupID) throws java.sql.SQLException, ProfileStoreException
groupID
- ID of the partner Group, the primary key for the ProfileGroup table
java.sql.SQLException
ProfileStoreException
public static java.lang.String getInternalIDByDestinationID(java.sql.Connection conn, java.lang.String destKey) throws java.sql.SQLException, ProfileStoreException
conn
- an open connection to the Trading Network databasedestKey
- DestinationID string, the primary key for the Destination table
java.sql.SQLException
ProfileStoreException
public static java.lang.String getInternalIDByDestinationID(java.lang.String destKey) throws java.sql.SQLException, ProfileStoreException
destKey
- DestinationID string, the primary key for the Destination table
java.sql.SQLException
ProfileStoreException
public static int getIDTypeByPartnerIDID(java.sql.Connection conn, java.lang.String idKey) throws java.sql.SQLException, ProfileStoreException
conn
- an open connection to the Trading Network databaseidKey
- PartnerIDID string, the primary key for the PartnerID table
java.sql.SQLException
ProfileStoreException
public static int getIDTypeByPartnerIDID(java.lang.String idKey) throws java.sql.SQLException, ProfileStoreException
idKey
- PartnerIDID string, the primary key for the PartnerID table
java.sql.SQLException
ProfileStoreException
public static ID getExternalIDObject(java.lang.String intID, int extIDType) throws java.sql.SQLException, ProfileStoreException
intID
- the internal, TN-generated ID of the partnerextIDType
- the type of external ID to retrieve. This must be a value found in the Type column of the
PartnerID table
java.sql.SQLException
ProfileStoreException
public static java.lang.String[] getInternalIDsByDeleteStatus(int delStatus) throws java.sql.SQLException, ProfileStoreException
java.sql.SQLException
ProfileStoreException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |