|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.hsqldb.Trace
handles creation and reporting of error messages and throwing HsqlException
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 |
public static boolean TRACE
public static boolean TRACESYSTEMOUT
public static final boolean STOP
public static final boolean DOASSERT
public static final int DATABASE_ALREADY_IN_USE
public static final int CONNECTION_IS_CLOSED
public static final int CONNECTION_IS_BROKEN
public static final int DATABASE_IS_SHUTDOWN
public static final int COLUMN_COUNT_DOES_NOT_MATCH
public static final int DIVISION_BY_ZERO
public static final int INVALID_ESCAPE
public static final int INTEGRITY_CONSTRAINT_VIOLATION
public static final int VIOLATION_OF_UNIQUE_INDEX
public static final int TRY_TO_INSERT_NULL
public static final int UNEXPECTED_TOKEN
public static final int UNEXPECTED_END_OF_COMMAND
public static final int UNKNOWN_FUNCTION
public static final int NEED_AGGREGATE
public static final int SUM_OF_NON_NUMERIC
public static final int WRONG_DATA_TYPE
public static final int SINGLE_VALUE_EXPECTED
public static final int SERIALIZATION_FAILURE
public static final int TRANSFER_CORRUPTED
public static final int FUNCTION_NOT_SUPPORTED
public static final int TABLE_ALREADY_EXISTS
public static final int TABLE_NOT_FOUND
public static final int INDEX_ALREADY_EXISTS
public static final int SECOND_PRIMARY_KEY
public static final int DROP_PRIMARY_KEY
public static final int INDEX_NOT_FOUND
public static final int COLUMN_ALREADY_EXISTS
public static final int COLUMN_NOT_FOUND
public static final int FILE_IO_ERROR
public static final int WRONG_DATABASE_FILE_VERSION
public static final int DATABASE_IS_READONLY
public static final int DATA_IS_READONLY
public static final int ACCESS_IS_DENIED
public static final int INPUTSTREAM_ERROR
public static final int NO_DATA_IS_AVAILABLE
public static final int USER_ALREADY_EXISTS
public static final int USER_NOT_FOUND
public static final int ASSERT_FAILED
public static final int EXTERNAL_STOP
public static final int GENERAL_ERROR
public static final int WRONG_OUT_PARAMETER
public static final int ERROR_IN_FUNCTION
public static final int TRIGGER_NOT_FOUND
public static final int SAVEPOINT_NOT_FOUND
public static final int LABEL_REQUIRED
public static final int WRONG_DEFAULT_CLAUSE
public static final int FOREIGN_KEY_NOT_ALLOWED
public static final int UNKNOWN_DATA_SOURCE
public static final int BAD_INDEX_CONSTRAINT_NAME
public static final int DROP_FK_INDEX
public static final int RESULTSET_FORWARD_ONLY
public static final int VIEW_ALREADY_EXISTS
public static final int VIEW_NOT_FOUND
public static final int NOT_A_VIEW
public static final int NOT_A_TABLE
public static final int SYSTEM_INDEX
public static final int COLUMN_TYPE_MISMATCH
public static final int BAD_ADD_COLUMN_DEFINITION
public static final int DROP_SYSTEM_CONSTRAINT
public static final int CONSTRAINT_ALREADY_EXISTS
public static final int CONSTRAINT_NOT_FOUND
public static final int INVALID_JDBC_ARGUMENT
public static final int DATABASE_IS_MEMORY_ONLY
public static final int OUTER_JOIN_CONDITION
public static final int NUMERIC_VALUE_OUT_OF_RANGE
public static final int MISSING_SOFTWARE_MODULE
public static final int NOT_IN_AGGREGATE_OR_GROUP_BY
public static final int INVALID_GROUP_BY
public static final int INVALID_HAVING
public static final int INVALID_ORDER_BY
public static final int INVALID_ORDER_BY_IN_DISTINCT_SELECT
public static final int OUT_OF_MEMORY
public static final int OPERATION_NOT_SUPPORTED
public static final int INVALID_IDENTIFIER
public static final int TEXT_TABLE_SOURCE
public static final int TEXT_FILE
public static final int BAD_IDENTITY_VALUE
public static final int ERROR_IN_SCRIPT_FILE
public static final int NULL_IN_VALUE_LIST
public static final int SOCKET_ERROR
public static final int INVALID_CHARACTER_ENCODING
public static final int NO_CLASSLOADER_FOR_TLS
public static final int NO_JSSE
public static final int NO_SSLSOCKETFACTORY_METHOD
public static final int UNEXPECTED_EXCEPTION
public static final int TLS_ERROR
public static final int MISSING_TLS_METHOD
public static final int TLS_SECURITY_ERROR
public static final int NO_TLS_DATA
public static final int NO_PRINCIPAL
public static final int INCOMPLETE_CERTIFICATE
public static final int TLS_HOSTNAME_MISMATCH
public static final int KEYSTORE_PROBLEM
public static final int DATABASE_NOT_EXISTS
public static final int INVALID_CONVERSION
public static final int BinaryDatabaseScriptReader_readExistingData
public static final int BinaryDatabaseScriptReader_readTableInit
public static final int Cache_cleanUp
public static final int Cache_saveAll
public static final int Constraint_violation
public static final int Database_dropTable
public static final int DatabaseCommandInterpreter_processColumnList
public static final int DatabaseCommandInterpreter_processCreateConstraints
public static final int DatabaseCommandInterpreter_processCreateFK
public static final int DatabaseCommandInterpreter_checkFKColumnDefaults
public static final int DatabaseCommandInterpreter_processAlterTableAddForeignKeyConstraint
public static final int DatabaseManager_getDatabase
public static final int DatabaseManager_getDatabaseObject
public static final int DatabaseManager_releaseSession
public static final int DatabaseManager_releaseDatabase
public static final int DatabaseRowInput_newDatabaseRowInput
public static final int DatabaseRowOutput_newDatabaseRowOutput
public static final int DatabaseScriptReader_readDDL
public static final int DatabaseScriptReader_readExistingData
public static final int Message_Pair
public static final int HsqlDatabaseProperties_load
public static final int HsqlDatabaseProperties_save
public static final int jdbcDatabaseMetaData_getBestRowIdentifier
public static final int jdbcResultSetMetaData_jdbcResultSetMetaData
public static final int jdbcResultSetMetaData_jdbcResultSetMetaData_2
public static final int jdbcResultSetMetaData_jdbcResultSetMetaData_3
public static final int TableFilter_findFirst
public static final int Table_moveDefinition
public static final int STRING_DATA_TRUNCATION
public static final int QUOTED_IDENTIFIER_REQUIRED
public static final int STATEMENT_IS_CLOSED
public static final int DatabaseRowInput_skipBytes
public static final int DatabaseRowInput_readLine
public static final int DataFileDefrag_writeTableToDataFile
public static final int DiskNode_writeTranslatePointer
public static final int HsqlDateTime_null_string
public static final int HsqlDateTime_invalid_timestamp
public static final int HsqlDateTime_null_date
public static final int HsqlDateTime_invalid_date
public static final int HsqlProperties_load
public static final int HsqlSocketFactorySecure_verify
public static final int HsqlSocketFactorySecure_verify2
public static final int jdbcConnection_nativeSQL
public static final int HsqlSocketFactorySecure_verify3
public static final int jdbcPreparedStatement_setCharacterStream
public static final int jdbcPreparedStatement_setClob
public static final int jdbcStatement_executeUpdate
public static final int LockFile_checkHeartbeat
public static final int LockFile_checkHeartbeat2
public static final int QuotedTextDatabaseRowOutput_checkConvertString
public static final int Result_Result
public static final int SERVER_NO_DATABASE
public static final int Server_openServerSocket
public static final int Server_openServerSocket2
public static final int TextDatabaseRowOutput_checkConvertString
public static final int TextDatabaseRowOutput_checkConvertString2
public static final int TextDatabaseRowOutput_writeIntData
public static final int ORDER_BY_POSITION
public static final int JDBC_STATEMENT_NOT_ROW_COUNT
public static final int JDBC_STATEMENT_NOT_RESULTSET
public static final int AMBIGUOUS_COLUMN_REFERENCE
public static final int CHECK_CONSTRAINT_VIOLATION
public static final int JDBC_RESULTSET_IS_CLOSED
public static final int SINGLE_COLUMN_EXPECTED
public static final int TOKEN_REQUIRED
public static final int Logger_checkFilesInJar
public static final int Logger_checkFilesInJar1
public static final int Logger_checkFilesInJar2
public static final int TRIGGER_ALREADY_EXISTS
public static final int ASSERT_DIRECT_EXEC_WITH_PARAM
public static final int DataFileCache_backup
public static final int Expression_compareValues
public static final int Parser_parseLimit1
public static final int Parser_parseLimit2
public static final int SQL_CONSTRAINT_REQUIRED
public static final int TableWorks_dropConstraint
public static final int TEXT_TABLE_SOURCE_FILENAME
public static final int TEXT_TABLE_SOURCE_VALUE_MISSING
public static final int TEXT_TABLE_SOURCE_SEPARATOR
public static final int UNSUPPORTED_PARAM_CLASS
public static final int JDBC_NULL_STREAM
public static final int INTEGRITY_CONSTRAINT_VIOLATION_NOPARENT
public static final int DatabaseRowInput_getPos
public static final int DatabaseRowInput_getNextPos
public static final int QuotedTextDatabaseRowInput_getField
public static final int QuotedTextDatabaseRowInput_getField2
public static final int TextDatabaseRowInput_getField
public static final int TextDatabaseRowInput_getField2
public static final int TextDatabaseRowInput_getField3
public static final int Parser_ambiguous_between1
public static final int Parser_ambiguous_between2
public static final int Generic_reading_file_error
public static final int TextCache_openning_file_error
public static final int TextCache_closing_file_error
public static final int TextCache_purging_file_error
public static final int SEQUENCE_NOT_FOUND
public static final int SEQUENCE_ALREADY_EXISTS
public static final int TABLE_REFERENCED_CONSTRAINT
public static final int TABLE_REFERENCED_VIEW
public static final int PARAMETRIC_TABLE_NAME
public static final int TEXT_SOURCE_EXISTS
public static final int COLUMN_IS_REFERENCED
public static final int INTERNAL_unknown_internal_statement_type
public static final int INTERNAL_session_operation_not_supported
public static final int INVALID_PREPARED_STATEMENT
public static final int DatabaseCommandInterpreter_processCreateTrigger1
public static final int DatabaseCommandInterpreter_processCreateTrigger2
public static final int DatabaseCommandInterpreter_processSavepoint
public static final int DataFileCache_defrag
public static final int DataFileCache_closeFile
public static final int DataFileCache_makeRow
public static final int DataFileCache_open
public static final int DataFileCache_close
public static final int Expression_resolveTypes1
public static final int Expression_resolveTypes2
public static final int Expression_resolveTypes3
public static final int Expression_resolveTypes4
public static final int Expression_resolveTypes5
public static final int Expression_resolveTypes6
public static final int Expression_resolveTypes7
public static final int Expression_resolveTypeForLike
public static final int Expression_resolveTypeForIn1
public static final int Expression_resolveTypeForIn2
public static final int Session_execute
public static final int Session_sqlExecuteDirect
public static final int Session_sqlExecuteCompiled
public static final int NUMBER_OF_ERROR_MESSAGES
Constructor Detail |
public Trace()
Method Detail |
public static HsqlException error(int code, int subCode, Object[] add)
code
- main error codesubCode
- sub error code (if 0 => no subMessage!)add
- optional parameters
HsqlException
public static HsqlException error(int code, Object[] add)
code
- main error codeadd
- optional parameters
HsqlException
public static HsqlException error(int code, int code2, String add)
public static HsqlException error(int code, int code2)
public static HsqlException error(int code, Object add)
code
- add
-
public static String getMessage(int errorCode)
HsqlException
.
errorCode
- the error code associated to the error message
#sDescription
public static String getMessage(int errorCode, boolean substitute, Object[] values)
HsqlException
.
errorCode
- the error code associated to the error messagesubstitute
- substitute the $$ tokens using data in the valuesvalues
- value(s) to use to replace the token(s)
#sDescription
public static HsqlException error(int code)
code
-
public static void check(boolean condition, int code, Object add) throws HsqlException
HsqlException
public static void printSystemOut(String message)
message
- message to printpublic static void printSystemOut(String message1, long message2)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |