java.lang.Object
org.dbtutools.DbtuTools.core.db2.DiagLog
- public class DiagLog
- extends java.lang.Object
Wrapper class, implementing db2diag.log file related stuff.
It cannot be instantiated.
Field Summary |
static java.lang.String |
FFFF_TOKEN
Constant holding a special token for the hexadecimal code,
found within the db2diag.log file. |
Constructor Summary |
private |
DiagLog()
Private declared Constructor, preventing the instantiation
of the DiagLog class. |
Method Summary |
static java.lang.String |
toInternalReturnCode(java.lang.String oParamTokenA,
java.lang.String oParamTokenB)
Converts a given hexadecimal code found in the db2diag.log
file into an DB2 Internal Return Code.
Remark: Please notice; the hexadecimal code could
represent a SQL Message Code as well. |
static int |
toSqlCode(java.lang.String oParamTokenA,
java.lang.String oParamTokenB)
Converts a given hexadecimal code found in the db2diag.log
file into an SQL Message Code.
Remark: Please notice; the hexadecimal code could
represent a DB2 Internal Return Code as well. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FFFF_TOKEN
public static final java.lang.String FFFF_TOKEN
- Constant holding a special token for the hexadecimal code,
found within the
db2diag.log
file.
************************************************************************
- See Also:
- Constant Field Values
DiagLog
private DiagLog()
- Private declared Constructor, preventing the instantiation
of the
DiagLog
class.
************************************************************************
toInternalReturnCode
public static java.lang.String toInternalReturnCode(java.lang.String oParamTokenA,
java.lang.String oParamTokenB)
throws java.lang.NumberFormatException,
java.lang.NullPointerException
- Converts a given hexadecimal code found in the
db2diag.log
file into an DB2 Internal Return Code.
Remark: Please notice; the hexadecimal code could
represent a SQL Message Code as well. For more information
about how to interpret the db2diag.log
, please have
a look into the DB2 Documentation - Troubleshooting Guide.
toSqlCode
public static int toSqlCode(java.lang.String oParamTokenA,
java.lang.String oParamTokenB)
throws java.lang.NumberFormatException,
java.lang.NullPointerException
- Converts a given hexadecimal code found in the
db2diag.log
file into an SQL Message Code.
Remark: Please notice; the hexadecimal code could
represent a DB2 Internal Return Code as well. For more information
about how to interpret the db2diag.log
, please have
a look into the DB2 Documentation - Troubleshooting Guide.