|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.mdm.index.codelookup.UserCodeRegistry
UserCodeRegistry
Method Summary | |
java.util.Map |
getCodeMap()
Get map of module->code->CodeDescription |
java.util.Map |
getCodeMapByModule(java.lang.String module)
Get map code->CodeDescription |
java.util.ArrayList |
getCodesByModule(java.lang.String module)
Get all codes for given module. |
static UserCodeRegistry |
getInstance()
Get instance of UserCodeRegistry. |
static UserCodeRegistry |
getInstance(java.sql.Connection con)
Get instance of UserCodeRegistry |
UserCode |
getUserCode(java.lang.String module,
java.lang.String code)
Retrieve the UserCode from a module. |
boolean |
hasCode(java.lang.String module,
java.lang.String code)
Check if code exists. |
boolean |
hasModule(java.lang.String module)
Check if module exists. |
void |
traceAllCodes()
Pretty print code |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public java.util.Map getCodeMap()
public java.util.Map getCodeMapByModule(java.lang.String module)
module
- Module name.
public java.util.ArrayList getCodesByModule(java.lang.String module)
module
- Module name.
public static UserCodeRegistry getInstance() throws CodeLookupException
CodeLookupException
- if an error is encountered.public static UserCodeRegistry getInstance(java.sql.Connection con) throws CodeLookupException
con
- Database connection handle.
CodeLookupException
- if an error is encountered.public UserCode getUserCode(java.lang.String module, java.lang.String code)
module
- Module name.code
- Code.
public boolean hasCode(java.lang.String module, java.lang.String code)
module
- Module name.code
- Code.
public boolean hasModule(java.lang.String module)
module
- Module name
public void traceAllCodes()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Sun Microsystems, Inc.