|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.di.connector.tam.CommonBase
public class CommonBase
Utility class to enable classes to log to the LogProxyImpl
LogProxyImpl contains a copy of the log passed in from the Connector
Field Summary | |
---|---|
static java.lang.String |
DATE_FORMAT
|
static int |
MAX_SIGNED_DWORD
|
static long |
MAX_UNSIGNED_DWORD
|
protected Log |
mLogProxy
|
protected com.tivoli.pd.jutil.PDContext |
mPDContext
|
protected com.tivoli.pd.jutil.PDMessages |
mPDMessages
|
static java.lang.String |
QSS_BOOLEAN
|
static java.lang.String |
QSS_BYTE_ARRAY
|
static java.lang.String |
QSS_DATE
|
static java.lang.String |
QSS_INTEGER
|
static java.lang.String |
QSS_LONG
|
static java.lang.String |
QSS_STRING
|
static java.lang.String |
QSS_VECTOR
|
Constructor Summary | |
---|---|
protected |
CommonBase()
|
protected |
CommonBase(com.tivoli.pd.jutil.PDContext context)
|
protected |
CommonBase(com.tivoli.pd.jutil.PDContext context,
Log logger)
|
Method Summary | |
---|---|
protected static void |
addSchemaEntry(java.util.Vector vector,
java.lang.String name,
java.lang.String syntax,
java.lang.Object size)
Create and add the a schema entry to a schema vector. |
protected void |
createAndAddEntryAttribute(Entry entry,
java.lang.String attributeName,
java.lang.Object value)
Create and add attribute to an entry object. |
protected void |
debug(java.lang.String msg)
|
protected void |
debug(java.lang.String msg,
Log log)
|
protected void |
error(java.lang.String error)
|
protected java.lang.Boolean |
getBooleanEntryAttributeValue(Entry entry,
java.lang.String s)
Retrieve an attribute from the entry object as a Boolean. |
protected byte[] |
getByteArrayEntryAttributeValue(Entry entry,
java.lang.String s)
Retrieve an attribute from the entry object as a byte array. |
protected java.util.Date |
getDateEntryAttributeValue(Entry entry,
java.lang.String s)
Retrieve an attribute from the entry object as a Date. |
protected java.lang.Integer |
getIntegerEntryAttributeValue(Entry entry,
java.lang.String s)
Retrieve an attribute from the entry object as an integer. |
protected java.lang.Long |
getLongEntryAttributeValue(Entry entry,
java.lang.String s)
Retrieve an attribute from the entry object as a Long. |
protected java.lang.String |
getPDMessage(com.tivoli.pd.jutil.PDException pde)
|
protected java.lang.String |
getStringEntryAttributeValue(Entry entry,
java.lang.String s)
Retrieve an attribute from the entry object as a string. |
protected void |
logmsg(java.lang.String msg)
|
protected void |
printEntry(Entry entry)
|
protected void |
processMsgs(com.tivoli.pd.jutil.PDMessages msgs)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int MAX_SIGNED_DWORD
public static final long MAX_UNSIGNED_DWORD
public static final java.lang.String QSS_BOOLEAN
public static final java.lang.String QSS_BYTE_ARRAY
public static final java.lang.String QSS_DATE
public static final java.lang.String QSS_INTEGER
public static final java.lang.String QSS_LONG
public static final java.lang.String QSS_STRING
public static final java.lang.String QSS_VECTOR
public static final java.lang.String DATE_FORMAT
protected Log mLogProxy
protected com.tivoli.pd.jutil.PDMessages mPDMessages
protected com.tivoli.pd.jutil.PDContext mPDContext
Constructor Detail |
---|
protected CommonBase()
protected CommonBase(com.tivoli.pd.jutil.PDContext context)
protected CommonBase(com.tivoli.pd.jutil.PDContext context, Log logger)
Method Detail |
---|
protected void logmsg(java.lang.String msg)
protected void debug(java.lang.String msg)
protected void debug(java.lang.String msg, Log log)
protected void error(java.lang.String error)
protected void processMsgs(com.tivoli.pd.jutil.PDMessages msgs)
protected static void addSchemaEntry(java.util.Vector vector, java.lang.String name, java.lang.String syntax, java.lang.Object size)
vector
- -
Vector to add the schema entry toname
- -
Name of the schema element to addsyntax
- -
Syntax of the schema element (QSS_*)size
- -
Size of the schema elementprotected void createAndAddEntryAttribute(Entry entry, java.lang.String attributeName, java.lang.Object value)
entry
- -
Entry to add the attribute toattributeName
- -
Name of the attribute to addvalue
- -
Value of the attribute to addprotected java.lang.String getStringEntryAttributeValue(Entry entry, java.lang.String s)
entry
- -
Entry to read the attribute froms
- -
Name of the attribute value to return
protected java.lang.Integer getIntegerEntryAttributeValue(Entry entry, java.lang.String s)
entry
- -
Entry to read the attribute froms
- -
Name of the attribute value to return
protected java.lang.Long getLongEntryAttributeValue(Entry entry, java.lang.String s)
entry
- -
Entry to read the attribute froms
- -
Name of the attribute value to return
protected java.lang.Boolean getBooleanEntryAttributeValue(Entry entry, java.lang.String s)
entry
- -
Entry to read the attribute froms
- -
Name of the attribute value to return
protected java.util.Date getDateEntryAttributeValue(Entry entry, java.lang.String s)
entry
- -
Entry to read the attribute froms
- -
Name of the attribute value to return
protected byte[] getByteArrayEntryAttributeValue(Entry entry, java.lang.String s)
entry
- Entry to read the attribute froms
- Name of the attribute value to return
protected void printEntry(Entry entry)
protected java.lang.String getPDMessage(com.tivoli.pd.jutil.PDException pde)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |