org.hsqldb
Class Trace

java.lang.Object
  extended byorg.hsqldb.Trace

public class Trace
extends Object

handles creation and reporting of error messages and throwing HsqlException

Version:
1.7.0

Field Summary
static int ACCESS_IS_DENIED
           
static int AMBIGUOUS_COLUMN_REFERENCE
           
static int ASSERT_DIRECT_EXEC_WITH_PARAM
           
static int ASSERT_FAILED
           
static int BAD_ADD_COLUMN_DEFINITION
           
static int BAD_IDENTITY_VALUE
           
static int BAD_INDEX_CONSTRAINT_NAME
           
static int BinaryDatabaseScriptReader_readExistingData
           
static int BinaryDatabaseScriptReader_readTableInit
           
static int Cache_cleanUp
           
static int Cache_saveAll
           
static int CHECK_CONSTRAINT_VIOLATION
           
static int COLUMN_ALREADY_EXISTS
           
static int COLUMN_COUNT_DOES_NOT_MATCH
           
static int COLUMN_IS_REFERENCED
           
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 Constraint_violation
           
static int DATA_IS_READONLY
           
static int DATABASE_ALREADY_IN_USE
           
static int Database_dropTable
           
static int DATABASE_IS_MEMORY_ONLY
           
static int DATABASE_IS_READONLY
           
static int DATABASE_IS_SHUTDOWN
           
static int DATABASE_NOT_EXISTS
           
static int DatabaseCommandInterpreter_checkFKColumnDefaults
           
static int DatabaseCommandInterpreter_processAlterTableAddForeignKeyConstraint
           
static int DatabaseCommandInterpreter_processColumnList
           
static int DatabaseCommandInterpreter_processCreateConstraints
           
static int DatabaseCommandInterpreter_processCreateFK
           
static int DatabaseCommandInterpreter_processCreateTrigger1
           
static int DatabaseCommandInterpreter_processCreateTrigger2
           
static int DatabaseCommandInterpreter_processSavepoint
           
static int DatabaseManager_getDatabase
           
static int DatabaseManager_getDatabaseObject
           
static int DatabaseManager_releaseDatabase
           
static int DatabaseManager_releaseSession
           
static int DatabaseRowInput_getNextPos
           
static int DatabaseRowInput_getPos
           
static int DatabaseRowInput_newDatabaseRowInput
           
static int DatabaseRowInput_readLine
           
static int DatabaseRowInput_skipBytes
           
static int DatabaseRowOutput_newDatabaseRowOutput
           
static int DatabaseScriptReader_readDDL
           
static int DatabaseScriptReader_readExistingData
           
static int DataFileCache_backup
           
static int DataFileCache_close
           
static int DataFileCache_closeFile
           
static int DataFileCache_defrag
           
static int DataFileCache_makeRow
           
static int DataFileCache_open
           
static int DataFileDefrag_writeTableToDataFile
           
static int DiskNode_writeTranslatePointer
           
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 ERROR_IN_SCRIPT_FILE
           
static int Expression_compareValues
           
static int Expression_resolveTypeForIn1
           
static int Expression_resolveTypeForIn2
           
static int Expression_resolveTypeForLike
           
static int Expression_resolveTypes1
           
static int Expression_resolveTypes2
           
static int Expression_resolveTypes3
           
static int Expression_resolveTypes4
           
static int Expression_resolveTypes5
           
static int Expression_resolveTypes6
           
static int Expression_resolveTypes7
           
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 Generic_reading_file_error
           
static int HsqlDatabaseProperties_load
           
static int HsqlDatabaseProperties_save
           
static int HsqlDateTime_invalid_date
           
static int HsqlDateTime_invalid_timestamp
           
static int HsqlDateTime_null_date
           
static int HsqlDateTime_null_string
           
static int HsqlProperties_load
           
static int HsqlSocketFactorySecure_verify
           
static int HsqlSocketFactorySecure_verify2
           
static int HsqlSocketFactorySecure_verify3
           
static int INCOMPLETE_CERTIFICATE
           
static int INDEX_ALREADY_EXISTS
           
static int INDEX_NOT_FOUND
           
static int INPUTSTREAM_ERROR
           
static int INTEGRITY_CONSTRAINT_VIOLATION
           
static int INTEGRITY_CONSTRAINT_VIOLATION_NOPARENT
           
static int INTERNAL_session_operation_not_supported
           
static int INTERNAL_unknown_internal_statement_type
           
static int INVALID_CHARACTER_ENCODING
           
static int INVALID_CONVERSION
           
static int INVALID_ESCAPE
           
static int INVALID_GROUP_BY
           
static int INVALID_HAVING
           
static int INVALID_IDENTIFIER
           
static int INVALID_JDBC_ARGUMENT
           
static int INVALID_ORDER_BY
           
static int INVALID_ORDER_BY_IN_DISTINCT_SELECT
           
static int INVALID_PREPARED_STATEMENT
           
static int JDBC_NULL_STREAM
           
static int JDBC_RESULTSET_IS_CLOSED
           
static int JDBC_STATEMENT_NOT_RESULTSET
           
static int JDBC_STATEMENT_NOT_ROW_COUNT
           
static int jdbcConnection_nativeSQL
           
static int jdbcDatabaseMetaData_getBestRowIdentifier
           
static int jdbcPreparedStatement_setCharacterStream
           
static int jdbcPreparedStatement_setClob
           
static int jdbcResultSetMetaData_jdbcResultSetMetaData
           
static int jdbcResultSetMetaData_jdbcResultSetMetaData_2
           
static int jdbcResultSetMetaData_jdbcResultSetMetaData_3
           
static int jdbcStatement_executeUpdate
           
static int KEYSTORE_PROBLEM
           
static int LABEL_REQUIRED
           
static int LockFile_checkHeartbeat
           
static int LockFile_checkHeartbeat2
           
static int Logger_checkFilesInJar
           
static int Logger_checkFilesInJar1
           
static int Logger_checkFilesInJar2
           
static int Message_Pair
           
static int MISSING_SOFTWARE_MODULE
           
static int MISSING_TLS_METHOD
           
static int NEED_AGGREGATE
           
static int NO_CLASSLOADER_FOR_TLS
           
static int NO_DATA_IS_AVAILABLE
           
static int NO_JSSE
           
static int NO_PRINCIPAL
           
static int NO_SSLSOCKETFACTORY_METHOD
           
static int NO_TLS_DATA
           
static int NOT_A_TABLE
           
static int NOT_A_VIEW
           
static int NOT_IN_AGGREGATE_OR_GROUP_BY
           
static int NULL_IN_VALUE_LIST
           
static int NUMBER_OF_ERROR_MESSAGES
          Used during tests.
static int NUMERIC_VALUE_OUT_OF_RANGE
           
static int OPERATION_NOT_SUPPORTED
           
static int ORDER_BY_POSITION
           
static int OUT_OF_MEMORY
           
static int OUTER_JOIN_CONDITION
           
static int PARAMETRIC_TABLE_NAME
           
static int Parser_ambiguous_between1
           
static int Parser_ambiguous_between2
           
static int Parser_parseLimit1
           
static int Parser_parseLimit2
           
static int QUOTED_IDENTIFIER_REQUIRED
           
static int QuotedTextDatabaseRowInput_getField
           
static int QuotedTextDatabaseRowInput_getField2
           
static int QuotedTextDatabaseRowOutput_checkConvertString
           
static int Result_Result
           
static int RESULTSET_FORWARD_ONLY
           
static int SAVEPOINT_NOT_FOUND
           
static int SECOND_PRIMARY_KEY
           
static int SEQUENCE_ALREADY_EXISTS
           
static int SEQUENCE_NOT_FOUND
           
static int SERIALIZATION_FAILURE
           
static int SERVER_NO_DATABASE
           
static int Server_openServerSocket
           
static int Server_openServerSocket2
           
static int Session_execute
           
static int Session_sqlExecuteCompiled
           
static int Session_sqlExecuteDirect
           
static int SINGLE_COLUMN_EXPECTED
           
static int SINGLE_VALUE_EXPECTED
           
static int SOCKET_ERROR
           
static int SQL_CONSTRAINT_REQUIRED
           
static int STATEMENT_IS_CLOSED
           
static boolean STOP
           
static int STRING_DATA_TRUNCATION
           
static int SUM_OF_NON_NUMERIC
           
static int SYSTEM_INDEX
           
static int TABLE_ALREADY_EXISTS
           
static int Table_moveDefinition
           
static int TABLE_NOT_FOUND
           
static int TABLE_REFERENCED_CONSTRAINT
           
static int TABLE_REFERENCED_VIEW
           
static int TableFilter_findFirst
           
static int TableWorks_dropConstraint
           
static int TEXT_FILE
           
static int TEXT_SOURCE_EXISTS
           
static int TEXT_TABLE_SOURCE
           
static int TEXT_TABLE_SOURCE_FILENAME
           
static int TEXT_TABLE_SOURCE_SEPARATOR
           
static int TEXT_TABLE_SOURCE_VALUE_MISSING
           
static int TextCache_closing_file_error
           
static int TextCache_openning_file_error
           
static int TextCache_purging_file_error
           
static int TextDatabaseRowInput_getField
           
static int TextDatabaseRowInput_getField2
           
static int TextDatabaseRowInput_getField3
           
static int TextDatabaseRowOutput_checkConvertString
           
static int TextDatabaseRowOutput_checkConvertString2
           
static int TextDatabaseRowOutput_writeIntData
           
static int TLS_ERROR
           
static int TLS_HOSTNAME_MISMATCH
           
static int TLS_SECURITY_ERROR
           
static int TOKEN_REQUIRED
           
static boolean TRACE
           
static boolean TRACESYSTEMOUT
           
static int TRANSFER_CORRUPTED
           
static int TRIGGER_ALREADY_EXISTS
           
static int TRIGGER_NOT_FOUND
           
static int TRY_TO_INSERT_NULL
           
static int UNEXPECTED_END_OF_COMMAND
           
static int UNEXPECTED_EXCEPTION
           
static int UNEXPECTED_TOKEN
           
static int UNKNOWN_DATA_SOURCE
           
static int UNKNOWN_FUNCTION
           
static int UNSUPPORTED_PARAM_CLASS
           
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
           
 
Constructor Summary
Trace()
           
 
Method Summary
static void check(boolean condition, int code, Object add)
          Throws exception if condition is false
static HsqlException error(int code)
          Method declaration
static HsqlException error(int code, int code2)
           
static HsqlException error(int code, int subCode, Object[] add)
          Compose error message by inserting the strings in the add parameters in placeholders within the error message.
static HsqlException error(int code, int code2, String add)
           
static HsqlException error(int code, Object add)
          Method declaration
static HsqlException error(int code, Object[] add)
          Compose error message by inserting the strings in the add parameters in placeholders within the error message.
static String getMessage(int errorCode)
          Returns the error message given the error code.
static String getMessage(int errorCode, boolean substitute, Object[] values)
          Returns the error message given the error code.
static void printSystemOut(String message)
          Used to print messages to System.out
static void printSystemOut(String message1, long message2)
          Used to print messages to System.out
 
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

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

MISSING_SOFTWARE_MODULE

public static final int MISSING_SOFTWARE_MODULE
See Also:
Constant Field Values

NOT_IN_AGGREGATE_OR_GROUP_BY

public static final int NOT_IN_AGGREGATE_OR_GROUP_BY
See Also:
Constant Field Values

INVALID_GROUP_BY

public static final int INVALID_GROUP_BY
See Also:
Constant Field Values

INVALID_HAVING

public static final int INVALID_HAVING
See Also:
Constant Field Values

INVALID_ORDER_BY

public static final int INVALID_ORDER_BY
See Also:
Constant Field Values

INVALID_ORDER_BY_IN_DISTINCT_SELECT

public static final int INVALID_ORDER_BY_IN_DISTINCT_SELECT
See Also:
Constant Field Values

OUT_OF_MEMORY

public static final int OUT_OF_MEMORY
See Also:
Constant Field Values

OPERATION_NOT_SUPPORTED

public static final int OPERATION_NOT_SUPPORTED
See Also:
Constant Field Values

INVALID_IDENTIFIER

public static final int INVALID_IDENTIFIER
See Also:
Constant Field Values

TEXT_TABLE_SOURCE

public static final int TEXT_TABLE_SOURCE
See Also:
Constant Field Values

TEXT_FILE

public static final int TEXT_FILE
See Also:
Constant Field Values

BAD_IDENTITY_VALUE

public static final int BAD_IDENTITY_VALUE
See Also:
Constant Field Values

ERROR_IN_SCRIPT_FILE

public static final int ERROR_IN_SCRIPT_FILE
See Also:
Constant Field Values

NULL_IN_VALUE_LIST

public static final int NULL_IN_VALUE_LIST
See Also:
Constant Field Values

SOCKET_ERROR

public static final int SOCKET_ERROR
See Also:
Constant Field Values

INVALID_CHARACTER_ENCODING

public static final int INVALID_CHARACTER_ENCODING
See Also:
Constant Field Values

NO_CLASSLOADER_FOR_TLS

public static final int NO_CLASSLOADER_FOR_TLS
See Also:
Constant Field Values

NO_JSSE

public static final int NO_JSSE
See Also:
Constant Field Values

NO_SSLSOCKETFACTORY_METHOD

public static final int NO_SSLSOCKETFACTORY_METHOD
See Also:
Constant Field Values

UNEXPECTED_EXCEPTION

public static final int UNEXPECTED_EXCEPTION
See Also:
Constant Field Values

TLS_ERROR

public static final int TLS_ERROR
See Also:
Constant Field Values

MISSING_TLS_METHOD

public static final int MISSING_TLS_METHOD
See Also:
Constant Field Values

TLS_SECURITY_ERROR

public static final int TLS_SECURITY_ERROR
See Also:
Constant Field Values

NO_TLS_DATA

public static final int NO_TLS_DATA
See Also:
Constant Field Values

NO_PRINCIPAL

public static final int NO_PRINCIPAL
See Also:
Constant Field Values

INCOMPLETE_CERTIFICATE

public static final int INCOMPLETE_CERTIFICATE
See Also:
Constant Field Values

TLS_HOSTNAME_MISMATCH

public static final int TLS_HOSTNAME_MISMATCH
See Also:
Constant Field Values

KEYSTORE_PROBLEM

public static final int KEYSTORE_PROBLEM
See Also:
Constant Field Values

DATABASE_NOT_EXISTS

public static final int DATABASE_NOT_EXISTS
See Also:
Constant Field Values

INVALID_CONVERSION

public static final int INVALID_CONVERSION
See Also:
Constant Field Values

BinaryDatabaseScriptReader_readExistingData

public static final int BinaryDatabaseScriptReader_readExistingData
See Also:
Constant Field Values

BinaryDatabaseScriptReader_readTableInit

public static final int BinaryDatabaseScriptReader_readTableInit
See Also:
Constant Field Values

Cache_cleanUp

public static final int Cache_cleanUp
See Also:
Constant Field Values

Cache_saveAll

public static final int Cache_saveAll
See Also:
Constant Field Values

Constraint_violation

public static final int Constraint_violation
See Also:
Constant Field Values

Database_dropTable

public static final int Database_dropTable
See Also:
Constant Field Values

DatabaseCommandInterpreter_processColumnList

public static final int DatabaseCommandInterpreter_processColumnList
See Also:
Constant Field Values

DatabaseCommandInterpreter_processCreateConstraints

public static final int DatabaseCommandInterpreter_processCreateConstraints
See Also:
Constant Field Values

DatabaseCommandInterpreter_processCreateFK

public static final int DatabaseCommandInterpreter_processCreateFK
See Also:
Constant Field Values

DatabaseCommandInterpreter_checkFKColumnDefaults

public static final int DatabaseCommandInterpreter_checkFKColumnDefaults
See Also:
Constant Field Values

DatabaseCommandInterpreter_processAlterTableAddForeignKeyConstraint

public static final int DatabaseCommandInterpreter_processAlterTableAddForeignKeyConstraint
See Also:
Constant Field Values

DatabaseManager_getDatabase

public static final int DatabaseManager_getDatabase
See Also:
Constant Field Values

DatabaseManager_getDatabaseObject

public static final int DatabaseManager_getDatabaseObject
See Also:
Constant Field Values

DatabaseManager_releaseSession

public static final int DatabaseManager_releaseSession
See Also:
Constant Field Values

DatabaseManager_releaseDatabase

public static final int DatabaseManager_releaseDatabase
See Also:
Constant Field Values

DatabaseRowInput_newDatabaseRowInput

public static final int DatabaseRowInput_newDatabaseRowInput
See Also:
Constant Field Values

DatabaseRowOutput_newDatabaseRowOutput

public static final int DatabaseRowOutput_newDatabaseRowOutput
See Also:
Constant Field Values

DatabaseScriptReader_readDDL

public static final int DatabaseScriptReader_readDDL
See Also:
Constant Field Values

DatabaseScriptReader_readExistingData

public static final int DatabaseScriptReader_readExistingData
See Also:
Constant Field Values

Message_Pair

public static final int Message_Pair
See Also:
Constant Field Values

HsqlDatabaseProperties_load

public static final int HsqlDatabaseProperties_load
See Also:
Constant Field Values

HsqlDatabaseProperties_save

public static final int HsqlDatabaseProperties_save
See Also:
Constant Field Values

jdbcDatabaseMetaData_getBestRowIdentifier

public static final int jdbcDatabaseMetaData_getBestRowIdentifier
See Also:
Constant Field Values

jdbcResultSetMetaData_jdbcResultSetMetaData

public static final int jdbcResultSetMetaData_jdbcResultSetMetaData
See Also:
Constant Field Values

jdbcResultSetMetaData_jdbcResultSetMetaData_2

public static final int jdbcResultSetMetaData_jdbcResultSetMetaData_2
See Also:
Constant Field Values

jdbcResultSetMetaData_jdbcResultSetMetaData_3

public static final int jdbcResultSetMetaData_jdbcResultSetMetaData_3
See Also:
Constant Field Values

TableFilter_findFirst

public static final int TableFilter_findFirst
See Also:
Constant Field Values

Table_moveDefinition

public static final int Table_moveDefinition
See Also:
Constant Field Values

STRING_DATA_TRUNCATION

public static final int STRING_DATA_TRUNCATION
See Also:
Constant Field Values

QUOTED_IDENTIFIER_REQUIRED

public static final int QUOTED_IDENTIFIER_REQUIRED
See Also:
Constant Field Values

STATEMENT_IS_CLOSED

public static final int STATEMENT_IS_CLOSED
See Also:
Constant Field Values

DatabaseRowInput_skipBytes

public static final int DatabaseRowInput_skipBytes
See Also:
Constant Field Values

DatabaseRowInput_readLine

public static final int DatabaseRowInput_readLine
See Also:
Constant Field Values

DataFileDefrag_writeTableToDataFile

public static final int DataFileDefrag_writeTableToDataFile
See Also:
Constant Field Values

DiskNode_writeTranslatePointer

public static final int DiskNode_writeTranslatePointer
See Also:
Constant Field Values

HsqlDateTime_null_string

public static final int HsqlDateTime_null_string
See Also:
Constant Field Values

HsqlDateTime_invalid_timestamp

public static final int HsqlDateTime_invalid_timestamp
See Also:
Constant Field Values

HsqlDateTime_null_date

public static final int HsqlDateTime_null_date
See Also:
Constant Field Values

HsqlDateTime_invalid_date

public static final int HsqlDateTime_invalid_date
See Also:
Constant Field Values

HsqlProperties_load

public static final int HsqlProperties_load
See Also:
Constant Field Values

HsqlSocketFactorySecure_verify

public static final int HsqlSocketFactorySecure_verify
See Also:
Constant Field Values

HsqlSocketFactorySecure_verify2

public static final int HsqlSocketFactorySecure_verify2
See Also:
Constant Field Values

jdbcConnection_nativeSQL

public static final int jdbcConnection_nativeSQL
See Also:
Constant Field Values

HsqlSocketFactorySecure_verify3

public static final int HsqlSocketFactorySecure_verify3
See Also:
Constant Field Values

jdbcPreparedStatement_setCharacterStream

public static final int jdbcPreparedStatement_setCharacterStream
See Also:
Constant Field Values

jdbcPreparedStatement_setClob

public static final int jdbcPreparedStatement_setClob
See Also:
Constant Field Values

jdbcStatement_executeUpdate

public static final int jdbcStatement_executeUpdate
See Also:
Constant Field Values

LockFile_checkHeartbeat

public static final int LockFile_checkHeartbeat
See Also:
Constant Field Values

LockFile_checkHeartbeat2

public static final int LockFile_checkHeartbeat2
See Also:
Constant Field Values

QuotedTextDatabaseRowOutput_checkConvertString

public static final int QuotedTextDatabaseRowOutput_checkConvertString
See Also:
Constant Field Values

Result_Result

public static final int Result_Result
See Also:
Constant Field Values

SERVER_NO_DATABASE

public static final int SERVER_NO_DATABASE
See Also:
Constant Field Values

Server_openServerSocket

public static final int Server_openServerSocket
See Also:
Constant Field Values

Server_openServerSocket2

public static final int Server_openServerSocket2
See Also:
Constant Field Values

TextDatabaseRowOutput_checkConvertString

public static final int TextDatabaseRowOutput_checkConvertString
See Also:
Constant Field Values

TextDatabaseRowOutput_checkConvertString2

public static final int TextDatabaseRowOutput_checkConvertString2
See Also:
Constant Field Values

TextDatabaseRowOutput_writeIntData

public static final int TextDatabaseRowOutput_writeIntData
See Also:
Constant Field Values

ORDER_BY_POSITION

public static final int ORDER_BY_POSITION
See Also:
Constant Field Values

JDBC_STATEMENT_NOT_ROW_COUNT

public static final int JDBC_STATEMENT_NOT_ROW_COUNT
See Also:
Constant Field Values

JDBC_STATEMENT_NOT_RESULTSET

public static final int JDBC_STATEMENT_NOT_RESULTSET
See Also:
Constant Field Values

AMBIGUOUS_COLUMN_REFERENCE

public static final int AMBIGUOUS_COLUMN_REFERENCE
See Also:
Constant Field Values

CHECK_CONSTRAINT_VIOLATION

public static final int CHECK_CONSTRAINT_VIOLATION
See Also:
Constant Field Values

JDBC_RESULTSET_IS_CLOSED

public static final int JDBC_RESULTSET_IS_CLOSED
See Also:
Constant Field Values

SINGLE_COLUMN_EXPECTED

public static final int SINGLE_COLUMN_EXPECTED
See Also:
Constant Field Values

TOKEN_REQUIRED

public static final int TOKEN_REQUIRED
See Also:
Constant Field Values

Logger_checkFilesInJar

public static final int Logger_checkFilesInJar
See Also:
Constant Field Values

Logger_checkFilesInJar1

public static final int Logger_checkFilesInJar1
See Also:
Constant Field Values

Logger_checkFilesInJar2

public static final int Logger_checkFilesInJar2
See Also:
Constant Field Values

TRIGGER_ALREADY_EXISTS

public static final int TRIGGER_ALREADY_EXISTS
See Also:
Constant Field Values

ASSERT_DIRECT_EXEC_WITH_PARAM

public static final int ASSERT_DIRECT_EXEC_WITH_PARAM
See Also:
Constant Field Values

DataFileCache_backup

public static final int DataFileCache_backup
See Also:
Constant Field Values

Expression_compareValues

public static final int Expression_compareValues
See Also:
Constant Field Values

Parser_parseLimit1

public static final int Parser_parseLimit1
See Also:
Constant Field Values

Parser_parseLimit2

public static final int Parser_parseLimit2
See Also:
Constant Field Values

SQL_CONSTRAINT_REQUIRED

public static final int SQL_CONSTRAINT_REQUIRED
See Also:
Constant Field Values

TableWorks_dropConstraint

public static final int TableWorks_dropConstraint
See Also:
Constant Field Values

TEXT_TABLE_SOURCE_FILENAME

public static final int TEXT_TABLE_SOURCE_FILENAME
See Also:
Constant Field Values

TEXT_TABLE_SOURCE_VALUE_MISSING

public static final int TEXT_TABLE_SOURCE_VALUE_MISSING
See Also:
Constant Field Values

TEXT_TABLE_SOURCE_SEPARATOR

public static final int TEXT_TABLE_SOURCE_SEPARATOR
See Also:
Constant Field Values

UNSUPPORTED_PARAM_CLASS

public static final int UNSUPPORTED_PARAM_CLASS
See Also:
Constant Field Values

JDBC_NULL_STREAM

public static final int JDBC_NULL_STREAM
See Also:
Constant Field Values

INTEGRITY_CONSTRAINT_VIOLATION_NOPARENT

public static final int INTEGRITY_CONSTRAINT_VIOLATION_NOPARENT
See Also:
Constant Field Values

DatabaseRowInput_getPos

public static final int DatabaseRowInput_getPos
See Also:
Constant Field Values

DatabaseRowInput_getNextPos

public static final int DatabaseRowInput_getNextPos
See Also:
Constant Field Values

QuotedTextDatabaseRowInput_getField

public static final int QuotedTextDatabaseRowInput_getField
See Also:
Constant Field Values

QuotedTextDatabaseRowInput_getField2

public static final int QuotedTextDatabaseRowInput_getField2
See Also:
Constant Field Values

TextDatabaseRowInput_getField

public static final int TextDatabaseRowInput_getField
See Also:
Constant Field Values

TextDatabaseRowInput_getField2

public static final int TextDatabaseRowInput_getField2
See Also:
Constant Field Values

TextDatabaseRowInput_getField3

public static final int TextDatabaseRowInput_getField3
See Also:
Constant Field Values

Parser_ambiguous_between1

public static final int Parser_ambiguous_between1
See Also:
Constant Field Values

Parser_ambiguous_between2

public static final int Parser_ambiguous_between2
See Also:
Constant Field Values

Generic_reading_file_error

public static final int Generic_reading_file_error
See Also:
Constant Field Values

TextCache_openning_file_error

public static final int TextCache_openning_file_error
See Also:
Constant Field Values

TextCache_closing_file_error

public static final int TextCache_closing_file_error
See Also:
Constant Field Values

TextCache_purging_file_error

public static final int TextCache_purging_file_error
See Also:
Constant Field Values

SEQUENCE_NOT_FOUND

public static final int SEQUENCE_NOT_FOUND
See Also:
Constant Field Values

SEQUENCE_ALREADY_EXISTS

public static final int SEQUENCE_ALREADY_EXISTS
See Also:
Constant Field Values

TABLE_REFERENCED_CONSTRAINT

public static final int TABLE_REFERENCED_CONSTRAINT
See Also:
Constant Field Values

TABLE_REFERENCED_VIEW

public static final int TABLE_REFERENCED_VIEW
See Also:
Constant Field Values

PARAMETRIC_TABLE_NAME

public static final int PARAMETRIC_TABLE_NAME
See Also:
Constant Field Values

TEXT_SOURCE_EXISTS

public static final int TEXT_SOURCE_EXISTS
See Also:
Constant Field Values

COLUMN_IS_REFERENCED

public static final int COLUMN_IS_REFERENCED
See Also:
Constant Field Values

INTERNAL_unknown_internal_statement_type

public static final int INTERNAL_unknown_internal_statement_type
See Also:
Constant Field Values

INTERNAL_session_operation_not_supported

public static final int INTERNAL_session_operation_not_supported
See Also:
Constant Field Values

INVALID_PREPARED_STATEMENT

public static final int INVALID_PREPARED_STATEMENT
See Also:
Constant Field Values

DatabaseCommandInterpreter_processCreateTrigger1

public static final int DatabaseCommandInterpreter_processCreateTrigger1
See Also:
Constant Field Values

DatabaseCommandInterpreter_processCreateTrigger2

public static final int DatabaseCommandInterpreter_processCreateTrigger2
See Also:
Constant Field Values

DatabaseCommandInterpreter_processSavepoint

public static final int DatabaseCommandInterpreter_processSavepoint
See Also:
Constant Field Values

DataFileCache_defrag

public static final int DataFileCache_defrag
See Also:
Constant Field Values

DataFileCache_closeFile

public static final int DataFileCache_closeFile
See Also:
Constant Field Values

DataFileCache_makeRow

public static final int DataFileCache_makeRow
See Also:
Constant Field Values

DataFileCache_open

public static final int DataFileCache_open
See Also:
Constant Field Values

DataFileCache_close

public static final int DataFileCache_close
See Also:
Constant Field Values

Expression_resolveTypes1

public static final int Expression_resolveTypes1
See Also:
Constant Field Values

Expression_resolveTypes2

public static final int Expression_resolveTypes2
See Also:
Constant Field Values

Expression_resolveTypes3

public static final int Expression_resolveTypes3
See Also:
Constant Field Values

Expression_resolveTypes4

public static final int Expression_resolveTypes4
See Also:
Constant Field Values

Expression_resolveTypes5

public static final int Expression_resolveTypes5
See Also:
Constant Field Values

Expression_resolveTypes6

public static final int Expression_resolveTypes6
See Also:
Constant Field Values

Expression_resolveTypes7

public static final int Expression_resolveTypes7
See Also:
Constant Field Values

Expression_resolveTypeForLike

public static final int Expression_resolveTypeForLike
See Also:
Constant Field Values

Expression_resolveTypeForIn1

public static final int Expression_resolveTypeForIn1
See Also:
Constant Field Values

Expression_resolveTypeForIn2

public static final int Expression_resolveTypeForIn2
See Also:
Constant Field Values

Session_execute

public static final int Session_execute
See Also:
Constant Field Values

Session_sqlExecuteDirect

public static final int Session_sqlExecuteDirect
See Also:
Constant Field Values

Session_sqlExecuteCompiled

public static final int Session_sqlExecuteCompiled
See Also:
Constant Field Values

NUMBER_OF_ERROR_MESSAGES

public static final int NUMBER_OF_ERROR_MESSAGES
Used during tests.

Constructor Detail

Trace

public Trace()
Method Detail

error

public static HsqlException error(int code,
                                  int subCode,
                                  Object[] add)
Compose error message by inserting the strings in the add parameters in placeholders within the error message. The message string contains $$ markers for each context variable. Context variables are supplied in the add parameters.

Parameters:
code - main error code
subCode - sub error code (if 0 => no subMessage!)
add - optional parameters
Returns:
an HsqlException

error

public static HsqlException error(int code,
                                  Object[] add)
Compose error message by inserting the strings in the add parameters in placeholders within the error message. The message string contains $$ markers for each context variable. Context variables are supplied in the add parameters.

Parameters:
code - main error code
add - optional parameters
Returns:
an HsqlException

error

public static HsqlException error(int code,
                                  int code2,
                                  String add)

error

public static HsqlException error(int code,
                                  int code2)

error

public static HsqlException error(int code,
                                  Object add)
Method declaration

Parameters:
code -
add -
Returns:

getMessage

public static String getMessage(int errorCode)
Returns the error message given the error code.
Note: this method must be used when throwing exception other than HsqlException.

Parameters:
errorCode - the error code associated to the error message
Returns:
the error message associated with the error code
See Also:
#sDescription

getMessage

public static String getMessage(int errorCode,
                                boolean substitute,
                                Object[] values)
Returns the error message given the error code.
Note: this method must be used when throwing exception other than HsqlException.

Parameters:
errorCode - the error code associated to the error message
substitute - substitute the $$ tokens using data in the values
values - value(s) to use to replace the token(s)
Returns:
the error message associated with the error code
See Also:
#sDescription

error

public static HsqlException error(int code)
Method declaration

Parameters:
code -
Returns:

check

public static void check(boolean condition,
                         int code,
                         Object add)
                  throws HsqlException
Throws exception if condition is false

Throws:
HsqlException

printSystemOut

public static void printSystemOut(String message)
Used to print messages to System.out

Parameters:
message - message to print

printSystemOut

public static void printSystemOut(String message1,
                                  long message2)
Used to print messages to System.out



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