| 程序包 | 说明 |
|---|---|
| org.h2.command |
This package contains the parser and the base classes for prepared SQL statements.
|
| org.h2.engine |
Contains high level classes of the database and classes that don't fit in another sub-package.
|
| org.h2.expression |
Expressions include mathematical operations, simple values, and others.
|
| org.h2.expression.function.table |
Table value functions.
|
| org.h2.index |
Various table index implementations, as well as cursors to navigate in an index.
|
| org.h2.message |
Trace (logging facility) and error message tool.
|
| org.h2.mvstore.db |
Helper classes to use the MVStore in the H2 database.
|
| org.h2.store |
Storage abstractions, such as a file with a cache, or a class to convert values to a byte array and vice versa.
|
| org.h2.table |
Classes related to a table and table meta data.
|
| org.h2.value |
Data type and value implementations.
|
| 限定符和类型 | 方法和说明 |
|---|---|
protected DbException |
Prepared.setRow(DbException e,
long rowId,
String values)
Set the SQL statement of the exception to the given row.
|
protected DbException |
Prepared.setRow(DbException e,
long rowId,
String values)
Set the SQL statement of the exception to the given row.
|
| 限定符和类型 | 方法和说明 |
|---|---|
protected DbException |
Prepared.setRow(DbException e,
long rowId,
String values)
Set the SQL statement of the exception to the given row.
|
protected DbException |
Prepared.setRow(DbException e,
long rowId,
String values)
Set the SQL statement of the exception to the given row.
|
| 限定符和类型 | 方法和说明 |
|---|---|
static DbException |
SessionRemote.readException(Transfer transfer)
Reads an exception.
|
static DbException |
SessionRemote.readException(Transfer transfer)
Reads an exception.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
Database.setBackgroundException(DbException e) |
void |
Database.setBackgroundException(DbException e) |
| 限定符和类型 | 方法和说明 |
|---|---|
DbException |
ExpressionColumn.getColumnException(int code)
Get exception to throw, with column and table info added
|
DbException |
ExpressionColumn.getColumnException(int code)
Get exception to throw, with column and table info added
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
ParameterInterface.checkSet()
Check if the value is set.
|
void |
ParameterInterface.checkSet()
Check if the value is set.
|
void |
ExpressionWithVariableParameters.doneWithParameters()
This method must be called after all the parameters have been set.
|
void |
OperationN.doneWithParameters() |
void |
OperationN.doneWithParameters() |
void |
ExpressionWithVariableParameters.doneWithParameters()
This method must be called after all the parameters have been set.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
TableFunction.doneWithParameters() |
void |
TableFunction.doneWithParameters() |
| 限定符和类型 | 方法和说明 |
|---|---|
DbException |
Index.getDuplicateKeyException(String key)
Create a duplicate key exception with a message that contains the index
name.
|
DbException |
Index.getDuplicateKeyException(String key)
Create a duplicate key exception with a message that contains the index
name.
|
| 限定符和类型 | 方法和说明 |
|---|---|
DbException |
DbException.addSQL(String sql)
Set the SQL statement of the given exception.
|
DbException |
DbException.addSQL(String sql)
Set the SQL statement of the given exception.
|
static DbException |
DbException.convert(Throwable e)
Convert a throwable to an SQL exception using the default mapping.
|
static DbException |
DbException.convert(Throwable e)
Convert a throwable to an SQL exception using the default mapping.
|
static DbException |
DbException.convertInvocation(InvocationTargetException te,
String message)
Convert an InvocationTarget exception to a database exception.
|
static DbException |
DbException.convertInvocation(InvocationTargetException te,
String message)
Convert an InvocationTarget exception to a database exception.
|
static DbException |
DbException.convertIOException(IOException e,
String message)
Convert an IO exception to a database exception.
|
static DbException |
DbException.convertIOException(IOException e,
String message)
Convert an IO exception to a database exception.
|
static DbException |
DbException.fromUser(String sqlstate,
String message)
Create a database exception for an arbitrary SQLState.
|
static DbException |
DbException.fromUser(String sqlstate,
String message)
Create a database exception for an arbitrary SQLState.
|
static DbException |
DbException.get(int errorCode)
Create a database exception for a specific error code.
|
static DbException |
DbException.get(int errorCode)
Create a database exception for a specific error code.
|
static DbException |
DbException.get(int errorCode,
String... params)
Create a database exception for a specific error code.
|
static DbException |
DbException.get(int errorCode,
String... params)
Create a database exception for a specific error code.
|
static DbException |
DbException.get(int errorCode,
String p1)
Create a database exception for a specific error code.
|
static DbException |
DbException.get(int errorCode,
String p1)
Create a database exception for a specific error code.
|
static DbException |
DbException.get(int errorCode,
Throwable cause,
String... params)
Create a database exception for a specific error code.
|
static DbException |
DbException.get(int errorCode,
Throwable cause,
String... params)
Create a database exception for a specific error code.
|
static DbException |
DbException.getFileVersionError(String dataFileName)
Gets a file version exception.
|
static DbException |
DbException.getFileVersionError(String dataFileName)
Gets a file version exception.
|
static DbException |
DbException.getInvalidValueException(String param,
Object value)
Gets a SQL exception meaning this value is invalid.
|
static DbException |
DbException.getInvalidValueException(String param,
Object value)
Gets a SQL exception meaning this value is invalid.
|
static DbException |
DbException.getSyntaxError(int errorCode,
String sql,
int index,
String... params)
Create a syntax error exception for a specific error code.
|
static DbException |
DbException.getSyntaxError(int errorCode,
String sql,
int index,
String... params)
Create a syntax error exception for a specific error code.
|
static DbException |
DbException.getSyntaxError(String sql,
int index)
Create a syntax error exception.
|
static DbException |
DbException.getSyntaxError(String sql,
int index)
Create a syntax error exception.
|
static DbException |
DbException.getSyntaxError(String sql,
int index,
String message)
Create a syntax error exception.
|
static DbException |
DbException.getSyntaxError(String sql,
int index,
String message)
Create a syntax error exception.
|
static DbException |
DbException.getUnsupportedException(String message)
Gets a SQL exception meaning this feature is not supported.
|
static DbException |
DbException.getUnsupportedException(String message)
Gets a SQL exception meaning this feature is not supported.
|
static DbException |
DbException.getValueTooLongException(String columnOrType,
String value,
long valueLength)
Gets a SQL exception meaning this value is too long.
|
static DbException |
DbException.getValueTooLongException(String columnOrType,
String value,
long valueLength)
Gets a SQL exception meaning this value is too long.
|
| 限定符和类型 | 方法和说明 |
|---|---|
static DbException |
Store.getInvalidExpressionTypeException(String param,
Typed e)
Gets a SQL exception meaning the type of expression is invalid or unknown.
|
static DbException |
Store.getInvalidExpressionTypeException(String param,
Typed e)
Gets a SQL exception meaning the type of expression is invalid or unknown.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
DataHandler.checkPowerOff()
Check if the simulated power failure occurred.
|
void |
DataHandler.checkPowerOff()
Check if the simulated power failure occurred.
|
void |
DataHandler.checkWritingAllowed()
Check if writing is allowed.
|
void |
DataHandler.checkWritingAllowed()
Check if writing is allowed.
|
| 限定符和类型 | 方法和说明 |
|---|---|
DbException |
TableView.recompile(SessionLocal session,
boolean force,
boolean clearIndexCache)
Re-compile the view query and all views that depend on this object.
|
DbException |
TableView.recompile(SessionLocal session,
boolean force,
boolean clearIndexCache)
Re-compile the view query and all views that depend on this object.
|
static DbException |
TableLink.wrapException(String sql,
Exception ex)
Wrap a SQL exception that occurred while accessing a linked table.
|
static DbException |
TableLink.wrapException(String sql,
Exception ex)
Wrap a SQL exception that occurred while accessing a linked table.
|
| 限定符和类型 | 方法和说明 |
|---|---|
protected DbException |
Value.getUnsupportedExceptionForOperation(String op)
Create an exception meaning the specified operation is not supported for
this data type.
|
protected DbException |
Value.getUnsupportedExceptionForOperation(String op)
Create an exception meaning the specified operation is not supported for
this data type.
|
Copyright © 2022. All rights reserved.