|
||||||||||
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.Lookup
public class Lookup
Provides access to lookup tables in the trading networks database.
Field Summary | |
---|---|
static int |
BINARYTYPE
|
static int |
CONTACTTYPE
|
static int |
GROUPID
|
static int |
IDTYPE
|
Constructor Summary | |
---|---|
Lookup()
|
Method Summary | |
---|---|
static short |
addGroup(short id,
java.lang.String desc)
Adds a new field group with specified ID. |
static short |
addGroup(java.lang.String desc)
Adds a new field group. |
static int |
addLookupType(int lookupTbl,
java.lang.Integer type,
java.lang.String desc)
|
static java.lang.String |
addProfileGroup(java.lang.String profileGroupId,
java.lang.String profileGroupName)
Add a new row into ProfileGroup table. |
static java.lang.String |
addProfileGroup(java.lang.String profileGroupId,
java.lang.String profileGroupName,
java.lang.String description)
Add a new row into ProfileGroup table. |
static boolean |
changeGroup(short id,
java.lang.String desc)
Changes an existing field group. |
static void |
changeLookupType(int lookupTbl,
java.lang.Integer type,
java.lang.String desc)
|
static int |
changeProfileGroup(java.lang.String profileGroupId,
java.lang.String profileGroupName)
Update a row in ProfileGroup table. |
static int |
changeProfileGroupDescription(java.lang.String profileGroupId,
java.lang.String description)
|
static boolean |
deleteGroup(short id)
Deletes a field group. |
static int |
deleteProfileGroup(java.lang.String profileGroupId)
Delete a row in ProfileGroup table. |
static java.util.Hashtable |
getAllProfileGroups()
|
static java.util.Hashtable |
getBinaryTypes()
|
static java.util.Hashtable |
getBinaryTypes(java.sql.Connection conn)
|
static java.util.Hashtable |
getContactTypes()
|
static java.util.Hashtable |
getGroups()
|
static java.util.Hashtable |
getGroupsByName(java.lang.String name)
|
static java.lang.String |
getIDTypeDescription(int idType)
|
static java.util.Hashtable |
getIDTypeDescriptionHash()
|
static java.util.Hashtable |
getIDTypes()
|
static java.util.Hashtable |
getLookupHashByName(int lookupTbl,
java.lang.String name)
|
static java.util.HashMap |
getProfileGroup(java.lang.String groupID)
|
static java.util.Hashtable |
getProfileGroups()
|
static byte[] |
getStoredQueries(int type,
java.lang.String profileID)
|
static boolean |
isProfileGroupIdInUse(java.lang.String profileGroupId)
Check if this profile group has any members. |
static java.util.Hashtable |
queryProfileGroupbyName(java.lang.String profileGroupName)
|
static void |
removeLookupType(int lookupTbl,
java.lang.Integer type)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int CONTACTTYPE
public static final int IDTYPE
public static final int BINARYTYPE
public static final int GROUPID
Constructor Detail |
---|
public Lookup()
Method Detail |
---|
public static java.util.Hashtable getContactTypes() throws java.sql.SQLException
java.sql.SQLException
public static java.util.Hashtable getIDTypes() throws java.sql.SQLException
java.sql.SQLException
public static java.lang.String getIDTypeDescription(int idType) throws java.sql.SQLException
java.sql.SQLException
public static byte[] getStoredQueries(int type, java.lang.String profileID) throws java.sql.SQLException
java.sql.SQLException
public static java.util.Hashtable getIDTypeDescriptionHash() throws java.sql.SQLException
java.sql.SQLException
public static java.util.Hashtable getBinaryTypes() throws java.sql.SQLException
java.sql.SQLException
public static java.util.Hashtable getBinaryTypes(java.sql.Connection conn) throws java.sql.SQLException
java.sql.SQLException
public static int addLookupType(int lookupTbl, java.lang.Integer type, java.lang.String desc) throws java.sql.SQLException
java.sql.SQLException
public static void changeLookupType(int lookupTbl, java.lang.Integer type, java.lang.String desc) throws java.sql.SQLException
java.sql.SQLException
public static void removeLookupType(int lookupTbl, java.lang.Integer type) throws java.sql.SQLException
java.sql.SQLException
public static java.util.Hashtable getGroups() throws java.sql.SQLException
java.sql.SQLException
public static java.util.Hashtable getGroupsByName(java.lang.String name) throws java.sql.SQLException
java.sql.SQLException
public static short addGroup(java.lang.String desc) throws java.sql.SQLException
java.sql.SQLException
public static short addGroup(short id, java.lang.String desc) throws java.sql.SQLException
java.sql.SQLException
public static boolean changeGroup(short id, java.lang.String desc) throws java.sql.SQLException
java.sql.SQLException
public static boolean deleteGroup(short id) throws java.sql.SQLException
java.sql.SQLException
public static java.util.Hashtable getLookupHashByName(int lookupTbl, java.lang.String name) throws java.sql.SQLException
java.sql.SQLException
public static java.util.Hashtable getProfileGroups() throws java.sql.SQLException
java.sql.SQLException
public static java.util.Hashtable getAllProfileGroups() throws java.sql.SQLException
java.sql.SQLException
public static java.util.HashMap getProfileGroup(java.lang.String groupID) throws java.sql.SQLException
java.sql.SQLException
public 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 profileGroupId, java.lang.String profileGroupName) throws java.sql.SQLException
java.sql.SQLException
public static java.lang.String addProfileGroup(java.lang.String profileGroupId, java.lang.String profileGroupName, java.lang.String description) throws java.sql.SQLException
java.sql.SQLException
public static int changeProfileGroup(java.lang.String profileGroupId, java.lang.String profileGroupName) throws java.sql.SQLException
java.sql.SQLException
public static int changeProfileGroupDescription(java.lang.String profileGroupId, java.lang.String description) throws java.sql.SQLException
java.sql.SQLException
public static int deleteProfileGroup(java.lang.String profileGroupId) throws java.sql.SQLException
java.sql.SQLException
public static boolean isProfileGroupIdInUse(java.lang.String profileGroupId) 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 |