|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.wm.app.tn.profile.LookupStore
public class LookupStore
Provides access to lookup (cross-reference) data in the Trading Networks database. The lookup data includes: Contact Types; External ID Types; Binary Types; Field Groups; and Profile Groups.
Constructor Summary | |
---|---|
LookupStore()
|
Method Summary | |
---|---|
static short |
addContactType(java.lang.String desc)
Adds a new Contact Type to the TN database. |
static short |
addFieldGroup(java.lang.String desc)
Adds a new field group to the TN database. |
static int |
addIDType(java.lang.String desc)
Adds a new ID Type to the TN database. |
static java.lang.String |
addProfileGroup(java.lang.String profileGroupName)
Adds a new profile group to the database. |
static java.lang.String |
addProfileGroup(java.lang.String profileGroupName,
java.lang.String description)
|
static void |
changeContactType(short id,
java.lang.String desc)
Changes the description of an existing Conttact Type in the TN database. |
static void |
changeFieldGroup(short id,
java.lang.String desc)
Changes the description of an existing field group in the TN database. |
static void |
changeIDType(int id,
java.lang.String desc)
Changes the description of an existing ID Type in the TN database. |
static int |
changeProfileGroup(java.lang.String profileGroupId,
java.lang.String profileGroupName)
Changes the name of an existing profile group in the database. |
static int |
changeProfileGroupDescription(java.lang.String profileGroupId,
java.lang.String description)
|
static void |
clusterSyncForAttrChange(com.wm.data.IData input)
This method is for cluster sync for any update on the ditable attribute list |
static void |
deleteBinaryType(int type)
Deletes an existing Binary Type from the TN database. |
static void |
deleteContactType(short type)
Deletes an existing Contact Type from the TN database. |
static void |
deleteFieldGroup(short id)
Deletes an existing field group from the TN database. |
static void |
deleteIDType(int id)
Deletes an existing ID Type from the TN database. |
static int |
deleteProfileGroup(java.lang.String profileGroupId)
Deletes an existing Profile Group from the database; |
static void |
deRegisterEDIIDTypeDescriptions()
Forces the ediIDTypes to null in TN. |
static void |
deregisterEditableAttribute(com.wm.data.IData input)
Makes an attribute non-editable |
static void |
forceBinaryTypeRefresh()
Forces a refresh of the BinaryType cache. |
static void |
forceContactTypeRefresh()
Forces a refresh of the ContactType cache. |
static void |
forceFieldGrpRefresh()
Forces a refresh of the Field Group cache. |
static void |
forceIDTypeRefresh()
Forces a refresh of the IDType cache. |
static void |
forceProfileGroupRefresh()
Forces a refresh of the ProfileGroup cache. |
static void |
forceRefresh()
Forces a refresh of caches on subsequent access by setting all the caches to null. |
static java.lang.Integer |
getBinaryType(java.sql.Connection conn,
java.lang.String desc)
|
static java.lang.Integer |
getBinaryType(java.lang.String desc)
|
static java.util.Hashtable |
getBinaryTypes()
|
static java.util.Hashtable |
getContactTypes()
|
static java.util.List<java.lang.String> |
getEDIIDTypeDescriptions()
Gets the EDI IDTypes associated with TN. |
static java.util.Hashtable<java.lang.String,EditableDocAttribute> |
getEditableAttributes()
Gets the Editable Doc attributes associated with TN. |
static java.lang.Integer |
getExternalIDType(java.lang.String desc)
|
static java.util.Hashtable |
getExternalIDTypes()
|
static java.util.Hashtable |
getFieldGroups()
|
static java.lang.String |
getFieldGrpName(java.lang.String fieldGrpId)
This returns the field group name with the given fieldGroupId |
static java.util.Hashtable |
getIDTypeDescriptions()
|
static java.util.HashMap |
getProfileGroup(java.lang.String groupID)
|
static java.lang.String |
getProfileGroupId(java.lang.String profileGroupName)
|
static java.lang.String |
getProfileGroupName(java.lang.String profileGroupId)
|
static java.util.Hashtable |
getProfileGroups()
|
static java.lang.String[] |
getProfileGroupsIDs(java.lang.String regexName)
|
static java.util.Hashtable |
queryProfileGroupByName(java.lang.String profileGroupName)
|
static void |
registerEDIIDTypeDescriptions(com.wm.data.IData pipeline)
This method is used by ClusterSync updates for nodes. |
static void |
registerEDIIDTypeDescriptions(java.util.List<java.lang.String> ediIDTypes)
Forces the ediIDTypes to get registered in TN. |
static void |
registerEditableAttribute(com.wm.data.IData input)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LookupStore()
Method Detail |
---|
public static void forceRefresh()
public static void forceProfileGroupRefresh()
public static void forceContactTypeRefresh()
public static void forceIDTypeRefresh()
public static void forceBinaryTypeRefresh()
public static void forceFieldGrpRefresh()
public static java.util.Hashtable getExternalIDTypes() throws LookupStoreException
LookupStoreException
- if there was a database errorpublic static java.lang.Integer getExternalIDType(java.lang.String desc) throws LookupStoreException
desc
- the description of the requested ID Type
LookupStoreException
- if there was a database errorpublic static java.util.Hashtable getIDTypeDescriptions() throws LookupStoreException
LookupStoreException
- if there was a database errorpublic static java.util.List<java.lang.String> getEDIIDTypeDescriptions()
public static void registerEDIIDTypeDescriptions(java.util.List<java.lang.String> ediIDTypes)
ediIDTypes
- is a HashTable of EDI IDTypes and the IDs associate with it that need to be registered with TN.public static void deRegisterEDIIDTypeDescriptions()
public static void registerEDIIDTypeDescriptions(com.wm.data.IData pipeline)
ediIDTypes
- is a HashTable of EDI IDTypes and the IDs associate with it that need to be registered with TN.public static int addIDType(java.lang.String desc) throws LookupStoreException
desc
- description of the new ID Type
LookupStoreException
- if there was a database errorpublic static void changeIDType(int id, java.lang.String desc) throws LookupStoreException
id
- identifier of an existing id typedesc
- new description for an existing id type
LookupStoreException
- if there was a database errorpublic static void deleteIDType(int id) throws LookupStoreException
id
- identifier of an existing ID Type
LookupStoreException
- if there was a database errorpublic static java.util.Hashtable getContactTypes() throws LookupStoreException
LookupStoreException
- if there was a database errorpublic static short addContactType(java.lang.String desc) throws LookupStoreException
desc
- description of the new Contact Type
LookupStoreException
- if there was a database errorpublic static void changeContactType(short id, java.lang.String desc) throws LookupStoreException
id
- identifier of an existing contact typedesc
- new description for an existing contact type
LookupStoreException
- if there was a database errorpublic static void deleteContactType(short type) throws LookupStoreException
id
- identifier of an existing Contact Type
LookupStoreException
- if there was a database errorpublic static java.util.Hashtable getBinaryTypes() throws LookupStoreException
LookupStoreException
- if there was a database errorpublic static java.lang.Integer getBinaryType(java.lang.String desc) throws LookupStoreException
LookupStoreException
- if there was a database errorpublic static java.lang.Integer getBinaryType(java.sql.Connection conn, java.lang.String desc) throws LookupStoreException
LookupStoreException
- if there was a database errorpublic static void deleteBinaryType(int type) throws LookupStoreException
id
- identifier of an existing Binary Type
LookupStoreException
- if there was a database errorpublic static java.util.Hashtable getFieldGroups() throws LookupStoreException
LookupStoreException
- if there was a database errorpublic static short addFieldGroup(java.lang.String desc) throws LookupStoreException
desc
- description of the new field group
LookupStoreException
- if there was a database errorpublic static void changeFieldGroup(short id, java.lang.String desc) throws LookupStoreException
id
- identifier of an existing field groupdesc
- new description for an existing field group
LookupStoreException
- if there was a database errorpublic static void deleteFieldGroup(short id) throws LookupStoreException
id
- identifier of an existing field group
LookupStoreException
- if there was a database errorpublic static java.util.Hashtable getProfileGroups() throws LookupStoreException
LookupStoreException
- if there was a database errorpublic static java.util.HashMap getProfileGroup(java.lang.String groupID) throws LookupStoreException
LookupStoreException
public static java.lang.String getProfileGroupName(java.lang.String profileGroupId) throws LookupStoreException
profileGroupId
- the internal profile group id
LookupStoreException
- if there was a database errorpublic static java.lang.String getProfileGroupId(java.lang.String profileGroupName) throws LookupStoreException
profileGroupName
- the profile group name
LookupStoreException
- if there was a database errorpublic static java.util.Hashtable queryProfileGroupByName(java.lang.String profileGroupName) throws java.sql.SQLException
java.sql.SQLException
public static java.lang.String addProfileGroup(java.lang.String profileGroupName) throws LookupStoreException
profileGroupName
- the new profile group name
LookupStoreException
- if there was a database errorpublic static java.lang.String addProfileGroup(java.lang.String profileGroupName, java.lang.String description) throws LookupStoreException
LookupStoreException
public static int changeProfileGroup(java.lang.String profileGroupId, java.lang.String profileGroupName) throws LookupStoreException
profileGroupId
- the internal id of an existing profile groupprofileGroupName
- the new name to change to
LookupStoreException
- if there was a database error.public static int changeProfileGroupDescription(java.lang.String profileGroupId, java.lang.String description) throws LookupStoreException
LookupStoreException
public static int deleteProfileGroup(java.lang.String profileGroupId) throws LookupStoreException
profileGroupId
- the internal identifier of an existing profile group
LookupStoreException
- thrown if there was a database errorpublic static java.util.Hashtable<java.lang.String,EditableDocAttribute> getEditableAttributes()
public static void registerEditableAttribute(com.wm.data.IData input)
input
- public static void clusterSyncForAttrChange(com.wm.data.IData input)
input
- public static void deregisterEditableAttribute(com.wm.data.IData input)
attributeName
- public static java.lang.String[] getProfileGroupsIDs(java.lang.String regexName) throws com.wm.app.b2b.server.ServiceException, java.sql.SQLException, java.io.IOException
com.wm.app.b2b.server.ServiceException
java.sql.SQLException
java.io.IOException
public static java.lang.String getFieldGrpName(java.lang.String fieldGrpId) throws LookupStoreException
fieldGrpId
-
LookupStoreException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |