|
|||||||||
| Home >> All >> org >> [ hsqldb overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.hsqldb
Class Trace

java.lang.Objectjava.io.Writer
java.io.PrintWriter
org.hsqldb.Trace
- public class Trace
- extends java.io.PrintWriter
handles creation and reporting of error messages and throwing SQLException
- Version:
- 1.7.0
| Fields inherited from class java.io.PrintWriter |
out |
| Fields inherited from class java.io.Writer |
lock |
| Constructor Summary | |
(package private) |
Trace()
Constructor declaration |
| Method Summary | |
(package private) static void |
check(boolean condition,
int code)
Method declaration |
(package private) static void |
check(boolean condition,
int code,
java.lang.Object add)
Method declaration |
(package private) static void |
doAssert(boolean condition)
Method declaration |
(package private) static void |
doAssert(boolean condition,
java.lang.String error)
Method declaration |
static java.sql.SQLException |
error(int code)
Method declaration |
static java.sql.SQLException |
error(int code,
int i)
Method declaration |
static java.sql.SQLException |
error(int code,
java.lang.String s)
Method declaration |
(package private) static java.sql.SQLException |
getError(int code,
java.lang.Object add)
Method declaration |
(package private) static java.sql.SQLException |
getError(java.lang.String msg)
Method declaration |
(package private) static java.sql.SQLException |
getError(java.lang.String msg,
int code)
Creates a SQLException useing given message and code. |
(package private) static java.lang.String |
getMessage(int code)
Method declaration |
(package private) static java.lang.String |
getMessage(java.sql.SQLException e)
Method declaration |
void |
println(char[] c)
Method declaration |
void |
println(java.lang.String s)
This method prints a String to the stream. |
private static void |
printStack()
With trace enabled, it is sometimes hard to figure out what a true exception is versus an exception generated by the tracing engine. |
(package private) static void |
printSystemOut(java.lang.String message)
Used to print messages to System.out |
(package private) static void |
stop()
Method declaration |
(package private) static void |
stop(java.lang.String s)
Method declaration |
(package private) static void |
trace()
Method declaration |
(package private) static void |
trace(int i)
Method declaration |
(package private) static void |
trace(long l)
Method declaration |
(package private) static void |
trace(java.lang.String s)
Method declaration |
private static void |
traceCaller(java.lang.String s)
|
void |
write(java.lang.String s)
This method writes the contents of the specified String
to the underlying stream. |
| Methods inherited from class java.io.PrintWriter |
checkError, close, flush, print, print, print, print, print, print, print, print, print, println, println, println, println, println, println, println, println, setError, write, write, write, write |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
TRACE
public static boolean TRACE
TRACESYSTEMOUT
public static boolean TRACESYSTEMOUT
STOP
public static final boolean STOP
- See Also:
- Constant Field Values
DOASSERT
public static final boolean DOASSERT
- See Also:
- Constant Field Values
tTracer
private static Trace tTracer
sTrace
private static java.lang.String sTrace
iStop
private static int iStop
DATABASE_ALREADY_IN_USE
public static final int DATABASE_ALREADY_IN_USE
- See Also:
- Constant Field Values
CONNECTION_IS_CLOSED
public static final int CONNECTION_IS_CLOSED
- See Also:
- Constant Field Values
CONNECTION_IS_BROKEN
public static final int CONNECTION_IS_BROKEN
- See Also:
- Constant Field Values
DATABASE_IS_SHUTDOWN
public static final int DATABASE_IS_SHUTDOWN
- See Also:
- Constant Field Values
COLUMN_COUNT_DOES_NOT_MATCH
public static final int COLUMN_COUNT_DOES_NOT_MATCH
- See Also:
- Constant Field Values
DIVISION_BY_ZERO
public static final int DIVISION_BY_ZERO
- See Also:
- Constant Field Values
INVALID_ESCAPE
public static final int INVALID_ESCAPE
- See Also:
- Constant Field Values
INTEGRITY_CONSTRAINT_VIOLATION
public static final int INTEGRITY_CONSTRAINT_VIOLATION
- See Also:
- Constant Field Values
VIOLATION_OF_UNIQUE_INDEX
public static final int VIOLATION_OF_UNIQUE_INDEX
- See Also:
- Constant Field Values
TRY_TO_INSERT_NULL
public static final int TRY_TO_INSERT_NULL
- See Also:
- Constant Field Values
UNEXPECTED_TOKEN
public static final int UNEXPECTED_TOKEN
- See Also:
- Constant Field Values
UNEXPECTED_END_OF_COMMAND
public static final int UNEXPECTED_END_OF_COMMAND
- See Also:
- Constant Field Values
UNKNOWN_FUNCTION
public static final int UNKNOWN_FUNCTION
- See Also:
- Constant Field Values
NEED_AGGREGATE
public static final int NEED_AGGREGATE
- See Also:
- Constant Field Values
SUM_OF_NON_NUMERIC
public static final int SUM_OF_NON_NUMERIC
- See Also:
- Constant Field Values
WRONG_DATA_TYPE
public static final int WRONG_DATA_TYPE
- See Also:
- Constant Field Values
SINGLE_VALUE_EXPECTED
public static final int SINGLE_VALUE_EXPECTED
- See Also:
- Constant Field Values
SERIALIZATION_FAILURE
public static final int SERIALIZATION_FAILURE
- See Also:
- Constant Field Values
TRANSFER_CORRUPTED
public static final int TRANSFER_CORRUPTED
- See Also:
- Constant Field Values
FUNCTION_NOT_SUPPORTED
public static final int FUNCTION_NOT_SUPPORTED
- See Also:
- Constant Field Values
TABLE_ALREADY_EXISTS
public static final int TABLE_ALREADY_EXISTS
- See Also:
- Constant Field Values
TABLE_NOT_FOUND
public static final int TABLE_NOT_FOUND
- See Also:
- Constant Field Values
INDEX_ALREADY_EXISTS
public static final int INDEX_ALREADY_EXISTS
- See Also:
- Constant Field Values
SECOND_PRIMARY_KEY
public static final int SECOND_PRIMARY_KEY
- See Also:
- Constant Field Values
DROP_PRIMARY_KEY
public static final int DROP_PRIMARY_KEY
- See Also:
- Constant Field Values
INDEX_NOT_FOUND
public static final int INDEX_NOT_FOUND
- See Also:
- Constant Field Values
COLUMN_ALREADY_EXISTS
public static final int COLUMN_ALREADY_EXISTS
- See Also:
- Constant Field Values
COLUMN_NOT_FOUND
public static final int COLUMN_NOT_FOUND
- See Also:
- Constant Field Values
FILE_IO_ERROR
public static final int FILE_IO_ERROR
- See Also:
- Constant Field Values
WRONG_DATABASE_FILE_VERSION
public static final int WRONG_DATABASE_FILE_VERSION
- See Also:
- Constant Field Values
DATABASE_IS_READONLY
public static final int DATABASE_IS_READONLY
- See Also:
- Constant Field Values
DATA_IS_READONLY
public static final int DATA_IS_READONLY
- See Also:
- Constant Field Values
ACCESS_IS_DENIED
public static final int ACCESS_IS_DENIED
- See Also:
- Constant Field Values
INPUTSTREAM_ERROR
public static final int INPUTSTREAM_ERROR
- See Also:
- Constant Field Values
NO_DATA_IS_AVAILABLE
public static final int NO_DATA_IS_AVAILABLE
- See Also:
- Constant Field Values
USER_ALREADY_EXISTS
public static final int USER_ALREADY_EXISTS
- See Also:
- Constant Field Values
USER_NOT_FOUND
public static final int USER_NOT_FOUND
- See Also:
- Constant Field Values
ASSERT_FAILED
public static final int ASSERT_FAILED
- See Also:
- Constant Field Values
EXTERNAL_STOP
public static final int EXTERNAL_STOP
- See Also:
- Constant Field Values
GENERAL_ERROR
public static final int GENERAL_ERROR
- See Also:
- Constant Field Values
WRONG_OUT_PARAMETER
public static final int WRONG_OUT_PARAMETER
- See Also:
- Constant Field Values
ERROR_IN_FUNCTION
public static final int ERROR_IN_FUNCTION
- See Also:
- Constant Field Values
TRIGGER_NOT_FOUND
public static final int TRIGGER_NOT_FOUND
- See Also:
- Constant Field Values
SAVEPOINT_NOT_FOUND
public static final int SAVEPOINT_NOT_FOUND
- See Also:
- Constant Field Values
LABEL_REQUIRED
public static final int LABEL_REQUIRED
- See Also:
- Constant Field Values
WRONG_DEFAULT_CLAUSE
public static final int WRONG_DEFAULT_CLAUSE
- See Also:
- Constant Field Values
FOREIGN_KEY_NOT_ALLOWED
public static final int FOREIGN_KEY_NOT_ALLOWED
- See Also:
- Constant Field Values
UNKNOWN_DATA_SOURCE
public static final int UNKNOWN_DATA_SOURCE
- See Also:
- Constant Field Values
BAD_INDEX_CONSTRAINT_NAME
public static final int BAD_INDEX_CONSTRAINT_NAME
- See Also:
- Constant Field Values
DROP_FK_INDEX
public static final int DROP_FK_INDEX
- See Also:
- Constant Field Values
RESULTSET_FORWARD_ONLY
public static final int RESULTSET_FORWARD_ONLY
- See Also:
- Constant Field Values
VIEW_ALREADY_EXISTS
public static final int VIEW_ALREADY_EXISTS
- See Also:
- Constant Field Values
VIEW_NOT_FOUND
public static final int VIEW_NOT_FOUND
- See Also:
- Constant Field Values
NOT_A_VIEW
public static final int NOT_A_VIEW
- See Also:
- Constant Field Values
NOT_A_TABLE
public static final int NOT_A_TABLE
- See Also:
- Constant Field Values
SYSTEM_INDEX
public static final int SYSTEM_INDEX
- See Also:
- Constant Field Values
COLUMN_TYPE_MISMATCH
public static final int COLUMN_TYPE_MISMATCH
- See Also:
- Constant Field Values
BAD_ADD_COLUMN_DEFINITION
public static final int BAD_ADD_COLUMN_DEFINITION
- See Also:
- Constant Field Values
DROP_SYSTEM_CONSTRAINT
public static final int DROP_SYSTEM_CONSTRAINT
- See Also:
- Constant Field Values
CONSTRAINT_ALREADY_EXISTS
public static final int CONSTRAINT_ALREADY_EXISTS
- See Also:
- Constant Field Values
CONSTRAINT_NOT_FOUND
public static final int CONSTRAINT_NOT_FOUND
- See Also:
- Constant Field Values
INVALID_JDBC_ARGUMENT
public static final int INVALID_JDBC_ARGUMENT
- See Also:
- Constant Field Values
DATABASE_IS_MEMORY_ONLY
public static final int DATABASE_IS_MEMORY_ONLY
- See Also:
- Constant Field Values
OUTER_JOIN_CONDITION
public static final int OUTER_JOIN_CONDITION
- See Also:
- Constant Field Values
NUMERIC_VALUE_OUT_OF_RANGE
public static final int NUMERIC_VALUE_OUT_OF_RANGE
- See Also:
- Constant Field Values
sDescription
private static java.lang.String[] sDescription
| Constructor Detail |
Trace
Trace()
- Constructor declaration
| Method Detail |
getError
static java.sql.SQLException getError(int code, java.lang.Object add)
- Method declaration
getError
static java.sql.SQLException getError(java.lang.String msg, int code)
- Creates a SQLException useing given message and code. The status is
filled based on the code.
Note use the given msg as error message, not as "add" argument.
getMessage
static java.lang.String getMessage(int code)
- Method declaration
getMessage
static java.lang.String getMessage(java.sql.SQLException e)
- Method declaration
getError
static java.sql.SQLException getError(java.lang.String msg)
- Method declaration
error
public static java.sql.SQLException error(int code)
- Method declaration
error
public static java.sql.SQLException error(int code, java.lang.String s)
- Method declaration
error
public static java.sql.SQLException error(int code, int i)
- Method declaration
doAssert
static void doAssert(boolean condition)
throws java.sql.SQLException
- Method declaration
doAssert
static void doAssert(boolean condition,
java.lang.String error)
throws java.sql.SQLException
- Method declaration
check
static void check(boolean condition,
int code)
throws java.sql.SQLException
- Method declaration
check
static void check(boolean condition,
int code,
java.lang.Object add)
throws java.sql.SQLException
- Method declaration
println
public void println(char[] c)
- Method declaration
println
public void println(java.lang.String s)
- Description copied from class:
java.io.PrintWriter - This method prints a
Stringto the stream. The actual value printed depends on the system default encoding. This method prints a line termination sequence after printing the value.
write
public void write(java.lang.String s)
- Description copied from class:
java.io.PrintWriter - This method writes the contents of the specified
Stringto the underlying stream.
printSystemOut
static void printSystemOut(java.lang.String message)
- Used to print messages to System.out
trace
static void trace(long l)
- Method declaration
trace
static void trace(int i)
- Method declaration
trace
static void trace()
- Method declaration
trace
static void trace(java.lang.String s)
- Method declaration
stop
static void stop()
throws java.sql.SQLException
- Method declaration
stop
static void stop(java.lang.String s) throws java.sql.SQLException
- Method declaration
printStack
private static void printStack()
- With trace enabled, it is sometimes hard to figure out
what a true exception is versus an exception generated
by the tracing engine. These two methods define
specialized versions Exceptions that are thrown during
tracing so you can more easily differentiate between a
Exception and a TraceException.
traceCaller
private static void traceCaller(java.lang.String s)
|
|||||||||
| Home >> All >> org >> [ hsqldb overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC