org.hsqldb
Class Trace

java.lang.Object
  |
  +--java.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


Field Summary
static int ACCESS_IS_DENIED
           
static int ASSERT_FAILED
           
static int BAD_ADD_COLUMN_DEFINITION
           
static int BAD_INDEX_CONSTRAINT_NAME
           
static int COLUMN_ALREADY_EXISTS
           
static int COLUMN_COUNT_DOES_NOT_MATCH
           
static int COLUMN_NOT_FOUND
           
static int COLUMN_TYPE_MISMATCH
           
static int CONNECTION_IS_BROKEN
           
static int CONNECTION_IS_CLOSED
           
static int CONSTRAINT_ALREADY_EXISTS
           
static int CONSTRAINT_NOT_FOUND
           
static int DATA_IS_READONLY
           
static int DATABASE_ALREADY_IN_USE
           
static int DATABASE_IS_MEMORY_ONLY
           
static int DATABASE_IS_READONLY
           
static int DATABASE_IS_SHUTDOWN
           
static int DIVISION_BY_ZERO
           
static boolean DOASSERT
           
static int DROP_FK_INDEX
           
static int DROP_PRIMARY_KEY
           
static int DROP_SYSTEM_CONSTRAINT
           
static int ERROR_IN_FUNCTION
           
static int EXTERNAL_STOP
           
static int FILE_IO_ERROR
           
static int FOREIGN_KEY_NOT_ALLOWED
           
static int FUNCTION_NOT_SUPPORTED
           
static int GENERAL_ERROR
           
static int INDEX_ALREADY_EXISTS
           
static int INDEX_NOT_FOUND
           
static int INPUTSTREAM_ERROR
           
static int INTEGRITY_CONSTRAINT_VIOLATION
           
static int INVALID_ESCAPE
           
static int INVALID_JDBC_ARGUMENT
           
static int LABEL_REQUIRED
           
static int NEED_AGGREGATE
           
static int NO_DATA_IS_AVAILABLE
           
static int NOT_A_TABLE
           
static int NOT_A_VIEW
           
static int NUMERIC_VALUE_OUT_OF_RANGE
           
static int OUTER_JOIN_CONDITION
           
static int RESULTSET_FORWARD_ONLY
           
static int SAVEPOINT_NOT_FOUND
           
static int SECOND_PRIMARY_KEY
           
static int SERIALIZATION_FAILURE
           
static int SINGLE_VALUE_EXPECTED
           
static boolean STOP
           
static int SUM_OF_NON_NUMERIC
           
static int SYSTEM_INDEX
           
static int TABLE_ALREADY_EXISTS
           
static int TABLE_NOT_FOUND
           
static boolean TRACE
           
static boolean TRACESYSTEMOUT
           
static int TRANSFER_CORRUPTED
           
static int TRIGGER_NOT_FOUND
           
static int TRY_TO_INSERT_NULL
           
static int UNEXPECTED_END_OF_COMMAND
           
static int UNEXPECTED_TOKEN
           
static int UNKNOWN_DATA_SOURCE
           
static int UNKNOWN_FUNCTION
           
static int USER_ALREADY_EXISTS
           
static int USER_NOT_FOUND
           
static int VIEW_ALREADY_EXISTS
           
static int VIEW_NOT_FOUND
           
static int VIOLATION_OF_UNIQUE_INDEX
           
static int WRONG_DATA_TYPE
           
static int WRONG_DATABASE_FILE_VERSION
           
static int WRONG_DEFAULT_CLAUSE
           
static int WRONG_OUT_PARAMETER
           
 
Method Summary
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
 void println(char[] c)
          Method declaration
 void println(java.lang.String s)
           
 void write(java.lang.String s)
           
 
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, write, write, write, write
 
Methods inherited from class java.lang.Object
equals, 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

DOASSERT

public static final boolean DOASSERT

DATABASE_ALREADY_IN_USE

public static final int DATABASE_ALREADY_IN_USE

CONNECTION_IS_CLOSED

public static final int CONNECTION_IS_CLOSED

CONNECTION_IS_BROKEN

public static final int CONNECTION_IS_BROKEN

DATABASE_IS_SHUTDOWN

public static final int DATABASE_IS_SHUTDOWN

COLUMN_COUNT_DOES_NOT_MATCH

public static final int COLUMN_COUNT_DOES_NOT_MATCH

DIVISION_BY_ZERO

public static final int DIVISION_BY_ZERO

INVALID_ESCAPE

public static final int INVALID_ESCAPE

INTEGRITY_CONSTRAINT_VIOLATION

public static final int INTEGRITY_CONSTRAINT_VIOLATION

VIOLATION_OF_UNIQUE_INDEX

public static final int VIOLATION_OF_UNIQUE_INDEX

TRY_TO_INSERT_NULL

public static final int TRY_TO_INSERT_NULL

UNEXPECTED_TOKEN

public static final int UNEXPECTED_TOKEN

UNEXPECTED_END_OF_COMMAND

public static final int UNEXPECTED_END_OF_COMMAND

UNKNOWN_FUNCTION

public static final int UNKNOWN_FUNCTION

NEED_AGGREGATE

public static final int NEED_AGGREGATE

SUM_OF_NON_NUMERIC

public static final int SUM_OF_NON_NUMERIC

WRONG_DATA_TYPE

public static final int WRONG_DATA_TYPE

SINGLE_VALUE_EXPECTED

public static final int SINGLE_VALUE_EXPECTED

SERIALIZATION_FAILURE

public static final int SERIALIZATION_FAILURE

TRANSFER_CORRUPTED

public static final int TRANSFER_CORRUPTED

FUNCTION_NOT_SUPPORTED

public static final int FUNCTION_NOT_SUPPORTED

TABLE_ALREADY_EXISTS

public static final int TABLE_ALREADY_EXISTS

TABLE_NOT_FOUND

public static final int TABLE_NOT_FOUND

INDEX_ALREADY_EXISTS

public static final int INDEX_ALREADY_EXISTS

SECOND_PRIMARY_KEY

public static final int SECOND_PRIMARY_KEY

DROP_PRIMARY_KEY

public static final int DROP_PRIMARY_KEY

INDEX_NOT_FOUND

public static final int INDEX_NOT_FOUND

COLUMN_ALREADY_EXISTS

public static final int COLUMN_ALREADY_EXISTS

COLUMN_NOT_FOUND

public static final int COLUMN_NOT_FOUND

FILE_IO_ERROR

public static final int FILE_IO_ERROR

WRONG_DATABASE_FILE_VERSION

public static final int WRONG_DATABASE_FILE_VERSION

DATABASE_IS_READONLY

public static final int DATABASE_IS_READONLY

DATA_IS_READONLY

public static final int DATA_IS_READONLY

ACCESS_IS_DENIED

public static final int ACCESS_IS_DENIED

INPUTSTREAM_ERROR

public static final int INPUTSTREAM_ERROR

NO_DATA_IS_AVAILABLE

public static final int NO_DATA_IS_AVAILABLE

USER_ALREADY_EXISTS

public static final int USER_ALREADY_EXISTS

USER_NOT_FOUND

public static final int USER_NOT_FOUND

ASSERT_FAILED

public static final int ASSERT_FAILED

EXTERNAL_STOP

public static final int EXTERNAL_STOP

GENERAL_ERROR

public static final int GENERAL_ERROR

WRONG_OUT_PARAMETER

public static final int WRONG_OUT_PARAMETER

ERROR_IN_FUNCTION

public static final int ERROR_IN_FUNCTION

TRIGGER_NOT_FOUND

public static final int TRIGGER_NOT_FOUND

SAVEPOINT_NOT_FOUND

public static final int SAVEPOINT_NOT_FOUND

LABEL_REQUIRED

public static final int LABEL_REQUIRED

WRONG_DEFAULT_CLAUSE

public static final int WRONG_DEFAULT_CLAUSE

FOREIGN_KEY_NOT_ALLOWED

public static final int FOREIGN_KEY_NOT_ALLOWED

UNKNOWN_DATA_SOURCE

public static final int UNKNOWN_DATA_SOURCE

BAD_INDEX_CONSTRAINT_NAME

public static final int BAD_INDEX_CONSTRAINT_NAME

DROP_FK_INDEX

public static final int DROP_FK_INDEX

RESULTSET_FORWARD_ONLY

public static final int RESULTSET_FORWARD_ONLY

VIEW_ALREADY_EXISTS

public static final int VIEW_ALREADY_EXISTS

VIEW_NOT_FOUND

public static final int VIEW_NOT_FOUND

NOT_A_VIEW

public static final int NOT_A_VIEW

NOT_A_TABLE

public static final int NOT_A_TABLE

SYSTEM_INDEX

public static final int SYSTEM_INDEX

COLUMN_TYPE_MISMATCH

public static final int COLUMN_TYPE_MISMATCH

BAD_ADD_COLUMN_DEFINITION

public static final int BAD_ADD_COLUMN_DEFINITION

DROP_SYSTEM_CONSTRAINT

public static final int DROP_SYSTEM_CONSTRAINT

CONSTRAINT_ALREADY_EXISTS

public static final int CONSTRAINT_ALREADY_EXISTS

CONSTRAINT_NOT_FOUND

public static final int CONSTRAINT_NOT_FOUND

INVALID_JDBC_ARGUMENT

public static final int INVALID_JDBC_ARGUMENT

DATABASE_IS_MEMORY_ONLY

public static final int DATABASE_IS_MEMORY_ONLY

OUTER_JOIN_CONDITION

public static final int OUTER_JOIN_CONDITION

NUMERIC_VALUE_OUT_OF_RANGE

public static final int NUMERIC_VALUE_OUT_OF_RANGE
Method Detail

error

public static java.sql.SQLException error(int code)
Method declaration
Parameters:
code -  
Returns:
 

error

public static java.sql.SQLException error(int code,
                                          java.lang.String s)
Method declaration
Parameters:
code -  
s -  
Returns:
 

error

public static java.sql.SQLException error(int code,
                                          int i)
Method declaration
Parameters:
code -  
i -  
Returns:
 

println

public void println(char[] c)
Method declaration
Overrides:
println in class java.io.PrintWriter
Parameters:
c -  

println

public void println(java.lang.String s)
Overrides:
println in class java.io.PrintWriter

write

public void write(java.lang.String s)
Overrides:
write in class java.io.PrintWriter


Copyright © 2001 - 2002 HSQL Development Group. All Rights Reserved.