|
|||||||||||
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 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 String |
QSS_BOOLEAN
|
static String |
QSS_BYTE_ARRAY
|
static String |
QSS_DATE
|
static String |
QSS_INTEGER
|
static String |
QSS_LONG
|
static String |
QSS_STRING
|
static 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(Vector vector,
String name,
String syntax,
Object size)
Create and add the a schema entry to a schema vector. |
protected void |
createAndAddEntryAttribute(Entry entry,
String attributeName,
Object value)
Create and add attribute to an entry object. |
protected void |
debug(String msg)
|
protected void |
debug(String msg,
Log log)
|
protected void |
error(String error)
|
protected Boolean |
getBooleanEntryAttributeValue(Entry entry,
String s)
Retrieve an attribute from the entry object as a Boolean. |
protected byte[] |
getByteArrayEntryAttributeValue(Entry entry,
String s)
Retrieve an attribute from the entry object as a byte array. |
protected Date |
getDateEntryAttributeValue(Entry entry,
String s)
Retrieve an attribute from the entry object as a Date. |
protected Integer |
getIntegerEntryAttributeValue(Entry entry,
String s)
Retrieve an attribute from the entry object as an integer. |
protected Long |
getLongEntryAttributeValue(Entry entry,
String s)
Retrieve an attribute from the entry object as a Long. |
protected String |
getPDMessage(com.tivoli.pd.jutil.PDException pde)
|
protected String |
getStringEntryAttributeValue(Entry entry,
String s)
Retrieve an attribute from the entry object as a string. |
protected void |
logmsg(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 String QSS_BOOLEAN
public static final String QSS_BYTE_ARRAY
public static final String QSS_DATE
public static final String QSS_INTEGER
public static final String QSS_LONG
public static final String QSS_STRING
public static final String QSS_VECTOR
public static final 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(String msg)
protected void debug(String msg)
protected void debug(String msg, Log log)
protected void error(String error)
protected void processMsgs(com.tivoli.pd.jutil.PDMessages msgs)
protected static void addSchemaEntry(Vector vector, String name, String syntax, 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, String attributeName, Object value)
entry
- -
Entry to add the attribute toattributeName
- -
Name of the attribute to addvalue
- -
Value of the attribute to addprotected String getStringEntryAttributeValue(Entry entry, String s)
entry
- -
Entry to read the attribute froms
- -
Name of the attribute value to return
protected Integer getIntegerEntryAttributeValue(Entry entry, String s)
entry
- -
Entry to read the attribute froms
- -
Name of the attribute value to return
protected Long getLongEntryAttributeValue(Entry entry, String s)
entry
- -
Entry to read the attribute froms
- -
Name of the attribute value to return
protected Boolean getBooleanEntryAttributeValue(Entry entry, String s)
entry
- -
Entry to read the attribute froms
- -
Name of the attribute value to return
protected Date getDateEntryAttributeValue(Entry entry, String s)
entry
- -
Entry to read the attribute froms
- -
Name of the attribute value to return
protected byte[] getByteArrayEntryAttributeValue(Entry entry, String s)
entry
- Entry to read the attribute froms
- Name of the attribute value to return
protected void printEntry(Entry entry)
protected String getPDMessage(com.tivoli.pd.jutil.PDException pde)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |