| Modifier and Type | Field and Description |
|---|---|
| protected static final int | ARRAY
The trace type id for array objects. |
| protected static final int | BLOB
The trace type id for blobs. |
| protected static final int | CALLABLE_STATEMENT
The trace type id for callable statements. |
| protected static final int | CLOB
The trace type id for clobs. |
| protected static final int | CONNECTION
The trace type id for connections. |
| protected static final int | DATA_SOURCE
The trace type id for data sources. |
| protected static final int | DATABASE_META_DATA
The trace type id for database meta data objects. |
| private static final AtomicIntegerArray | |
| private int | |
| private static final int | |
| protected static final int | PARAMETER_META_DATA
The trace type id for parameter meta data objects. |
| private static final String[] | |
| protected static final int | PREPARED_STATEMENT
The trace type id for prepared statements. |
| protected static final int | RESULT_SET
The trace type id for result sets. |
| protected static final int | RESULT_SET_META_DATA
The trace type id for result set meta data objects. |
| protected static final int | SAVEPOINT
The trace type id for savepoint objects. |
| private static final SQLException | |
| protected static final int | SQLXML
The trace type id for SQLXML objects. |
| protected static final int | STATEMENT
The trace type id for statements. |
| protected Trace | trace
The trace module used by this object. |
| private int | |
| protected static final int | XA_DATA_SOURCE
The trace type id for XA data sources. |
| protected static final int | XID
The trace type id for transaction ids. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected final void | |
| protected final void | debugCodeAssign(String
the class name of the result className, int the prefix type newType, int the trace object id of the created object newId, String the value to assign this new object to value)Write trace information as an assignment in the form className prefixId = objectName.value. |
| protected final void | debugCodeCall(String
the method name methodName)Write trace information as a method call in the form objectName.methodName(). |
| protected final void | debugCodeCall(String
the method name methodName, long one single long parameter param)Write trace information as a method call in the form objectName.methodName(param) where the parameter is formatted as a long value. |
| protected final void | debugCodeCall(String
the method name methodName, String one single string parameter param)Write trace information as a method call in the form objectName.methodName(param) where the parameter is formatted as a Java string. |
| protected static int | Returns: the new trace object idthe object type type)Get the next trace object id for this object type. |
| public int | |
| public String | |
| protected final boolean | |
| protected final boolean | |
| protected SQLException | Returns: the SQL exception objectthe exception ex)Log an exception and convert it to a SQL exception if required. |
| protected static String | |
| protected static String | Returns: the Java source codethe string array to convert s)Format a string array to the Java source code that represents this object. |
| protected static String | Returns: the Java source codethe big decimal to convert x)Format a big decimal to the Java source code that represents this object. |
| protected static String | Returns: the Java source codethe byte array to convert x)Format a byte array to the Java source code that represents this object. |
| protected static String | |
| protected static String | Returns: the Java source codethe int array to convert s)Format an int array to the Java source code that represents this object. |
| protected static String | |
| protected static String | |
| protected static String | Returns: the Java source codethe timestamp to convert x)Format a timestamp to the Java source code that represents this object. |
| protected void | |
| protected SQLException | Returns: the SQL exceptionthe message message)Get a SQL exception meaning this feature is not supported. |
| ARRAY | back to summary |
|---|---|
| protected static final int ARRAY The trace type id for array objects. | |
| BLOB | back to summary |
|---|---|
| protected static final int BLOB The trace type id for blobs. | |
| CALLABLE_STATEMENT | back to summary |
|---|---|
| protected static final int CALLABLE_STATEMENT The trace type id for callable statements. | |
| CLOB | back to summary |
|---|---|
| protected static final int CLOB The trace type id for clobs. | |
| CONNECTION | back to summary |
|---|---|
| protected static final int CONNECTION The trace type id for connections. | |
| DATA_SOURCE | back to summary |
|---|---|
| protected static final int DATA_SOURCE The trace type id for data sources. | |
| DATABASE_META_DATA | back to summary |
|---|---|
| protected static final int DATABASE_META_DATA The trace type id for database meta data objects. | |
| ID | back to summary |
|---|---|
| private static final AtomicIntegerArray ID | |
| id | back to summary |
|---|---|
| private int id | |
| LAST | back to summary |
|---|---|
| private static final int LAST | |
| PARAMETER_META_DATA | back to summary |
|---|---|
| protected static final int PARAMETER_META_DATA The trace type id for parameter meta data objects. | |
| PREFIX | back to summary |
|---|---|
| private static final String[] PREFIX | |
| PREPARED_STATEMENT | back to summary |
|---|---|
| protected static final int PREPARED_STATEMENT The trace type id for prepared statements. | |
| RESULT_SET | back to summary |
|---|---|
| protected static final int RESULT_SET The trace type id for result sets. | |
| RESULT_SET_META_DATA | back to summary |
|---|---|
| protected static final int RESULT_SET_META_DATA The trace type id for result set meta data objects. | |
| SAVEPOINT | back to summary |
|---|---|
| protected static final int SAVEPOINT The trace type id for savepoint objects. | |
| SQL_OOME | back to summary |
|---|---|
| private static final SQLException SQL_OOME | |
| SQLXML | back to summary |
|---|---|
| protected static final int SQLXML The trace type id for SQLXML objects. | |
| STATEMENT | back to summary |
|---|---|
| protected static final int STATEMENT The trace type id for statements. | |
| trace | back to summary |
|---|---|
| protected Trace trace The trace module used by this object. | |
| traceType | back to summary |
|---|---|
| private int traceType | |
| XA_DATA_SOURCE | back to summary |
|---|---|
| protected static final int XA_DATA_SOURCE The trace type id for XA data sources. | |
| XID | back to summary |
|---|---|
| protected static final int XID The trace type id for transaction ids. | |
| TraceObject | back to summary |
|---|---|
| public TraceObject() | |
| debugCode | back to summary |
|---|---|
| protected final void debugCode(String text) Write trace information in the form objectName.text.
| |
| debugCodeAssign | back to summary |
|---|---|
| protected final void debugCodeAssign(String className, int newType, int newId, String value) Write trace information as an assignment in the form className prefixId = objectName.value. | |
| debugCodeCall | back to summary |
|---|---|
| protected final void debugCodeCall(String methodName) Write trace information as a method call in the form objectName.methodName().
| |
| debugCodeCall | back to summary |
|---|---|
| protected final void debugCodeCall(String methodName, long param) Write trace information as a method call in the form objectName.methodName(param) where the parameter is formatted as a long value.
| |
| debugCodeCall | back to summary |
|---|---|
| protected final void debugCodeCall(String methodName, String param) Write trace information as a method call in the form objectName.methodName(param) where the parameter is formatted as a Java string. | |
| getNextId | back to summary |
|---|---|
| protected static int getNextId(int type) Get the next trace object id for this object type.
| |
| getTraceId | back to summary |
|---|---|
| public int getTraceId() INTERNAL
| |
| getTraceObjectName | back to summary |
|---|---|
| public String getTraceObjectName() INTERNAL
| |
| isDebugEnabled | back to summary |
|---|---|
| protected final boolean isDebugEnabled() Check if the debug trace level is enabled.
| |
| isInfoEnabled | back to summary |
|---|---|
| protected final boolean isInfoEnabled() Check if info trace level is enabled.
| |
| logAndConvert | back to summary |
|---|---|
| protected SQLException logAndConvert(Throwable ex) Log an exception and convert it to a SQL exception if required.
| |
| quote | back to summary |
|---|---|
| protected static String quote(String s) Format a string as a Java string literal. | |
| quoteArray | back to summary |
|---|---|
| protected static String quoteArray(String[] s) Format a string array to the Java source code that represents this object. | |
| quoteBigDecimal | back to summary |
|---|---|
| protected static String quoteBigDecimal(BigDecimal x) Format a big decimal to the Java source code that represents this object.
| |
| quoteBytes | back to summary |
|---|---|
| protected static String quoteBytes(byte[] x) Format a byte array to the Java source code that represents this object.
| |
| quoteDate | back to summary |
|---|---|
| protected static String quoteDate(Date x) Format a date to the Java source code that represents this object. | |
| quoteIntArray | back to summary |
|---|---|
| protected static String quoteIntArray(int[] s) Format an int array to the Java source code that represents this object.
| |
| quoteMap | back to summary |
|---|---|
| protected static String quoteMap(Map<String, Class<?>> map) Format a map to the Java source code that represents this object. | |
| quoteTime | back to summary |
|---|---|
| protected static String quoteTime(Time x) Format a time to the Java source code that represents this object. | |
| quoteTimestamp | back to summary |
|---|---|
| protected static String quoteTimestamp(Timestamp x) Format a timestamp to the Java source code that represents this object. | |
| setTrace | back to summary |
|---|---|
| protected void setTrace(Trace trace, int type, int id) Set the options to use when writing trace message.
| |
| unsupported | back to summary |
|---|---|
| protected SQLException unsupported(String message) Get a SQL exception meaning this feature is not supported.
| |