| Package | Description |
|---|---|
| org.xipki.datasource | |
| org.xipki.datasource.springframework.dao | |
| org.xipki.datasource.springframework.jdbc |
| Modifier and Type | Method and Description |
|---|---|
DataAccessException |
DataSourceWrapper.translate(String sql,
SQLException ex) |
| Modifier and Type | Method and Description |
|---|---|
void |
DataSourceWrapper.addForeignKeyConstraint(Connection conn,
String constraintName,
String baseTable,
String baseColumn,
String referencedTable,
String referencedColumn,
String onDeleteAction,
String onUpdateAction) |
void |
DataSourceWrapper.addPrimaryKey(Connection conn,
String primaryKeyName,
String table,
String... columns) |
void |
DataSourceWrapper.addUniqueConstrain(Connection conn,
String constraintName,
String table,
String... columns) |
boolean |
DataSourceWrapper.columnExists(Connection conn,
String table,
String column,
Object value) |
DataSourceWrapper |
DataSourceFactory.createDataSource(String name,
InputStream conf,
org.xipki.password.PasswordResolver passwordResolver) |
DataSourceWrapper |
DataSourceFactory.createDataSource(String name,
Properties conf,
org.xipki.password.PasswordResolver passwordResolver) |
DataSourceWrapper |
DataSourceFactory.createDataSourceForFile(String name,
String confFile,
org.xipki.password.PasswordResolver passwordResolver) |
void |
DataSourceWrapper.createIndex(Connection conn,
String indexName,
String table,
String... columns) |
void |
DataSourceWrapper.createSequence(String sequenceName,
long startValue) |
Statement |
DataSourceWrapper.createStatement(Connection conn) |
void |
DataSourceWrapper.dropAndCreateSequence(String sequenceName,
long startValue) |
void |
DataSourceWrapper.dropForeignKeyConstraint(Connection conn,
String constraintName,
String baseTable) |
void |
DataSourceWrapper.dropIndex(Connection conn,
String table,
String indexName) |
void |
DataSourceWrapper.dropPrimaryKey(Connection conn,
String primaryKeyName,
String table) |
void |
DataSourceWrapper.dropSequence(String sequenceName) |
void |
DataSourceWrapper.dropUniqueConstrain(Connection conn,
String constraintName,
String table) |
Connection |
DataSourceWrapper.getConnection() |
int |
DataSourceWrapper.getCount(Connection conn,
String table) |
long |
DataSourceWrapper.getMax(Connection conn,
String table,
String column) |
long |
DataSourceWrapper.getMax(Connection conn,
String table,
String column,
String condition) |
long |
DataSourceWrapper.getMin(Connection conn,
String table,
String column) |
long |
DataSourceWrapper.getMin(Connection conn,
String table,
String column,
String condition) |
protected String |
DataSourceWrapper.getSqlToDropForeignKeyConstraint(String constraintName,
String baseTable) |
long |
DataSourceWrapper.nextSeqValue(Connection conn,
String sequenceName) |
PreparedStatement |
DataSourceWrapper.prepareStatement(Connection conn,
String sqlQuery) |
boolean |
DataSourceWrapper.tableExists(Connection conn,
String table) |
boolean |
DataSourceWrapper.tableHasColumn(Connection conn,
String table,
String column) |
| Modifier and Type | Class and Description |
|---|---|
class |
CannotAcquireLockException
Exception thrown on failure to aquire a lock during an update,
for example during a "select for update" statement.
|
class |
CannotSerializeTransactionException
Exception thrown on failure to complete a transaction in serialized mode
due to update conflicts.
|
class |
ConcurrencyFailureException
Exception thrown on concurrency failure.
|
class |
DataAccessResourceFailureException
Data access exception thrown when a resource fails completely:
for example, if we can't connect to a database using JDBC.
|
class |
DataIntegrityViolationException
Exception thrown when an attempt to insert or update data
results in violation of an integrity constraint.
|
class |
DeadlockLoserDataAccessException
Generic exception thrown when the current process was
a deadlock loser, and its transaction rolled back.
|
class |
InvalidDataAccessResourceUsageException
Root for exceptions thrown when we use a data access resource incorrectly.
|
class |
NonTransientDataAccessException
Root of the hierarchy of data access exceptions that are considered non-transient -
where a retry of the same operation would fail unless the cause of the Exception
is corrected.
|
class |
NonTransientDataAccessResourceException
Data access exception thrown when a resource fails completely and the failure is permanent.
|
class |
PermissionDeniedDataAccessException
Exception thrown when the underlying resource denied a permission
to access a specific element, such as a specific database table.
|
class |
PessimisticLockingFailureException
Exception thrown on a pessimistic locking violation.
|
class |
QueryTimeoutException
Exception to be thrown on a query timeout.
|
class |
TransientDataAccessException
Root of the hierarchy of data access exceptions that are considered transient -
where a previously failed operation might be able to succeed when the operation
is retried without any intervention by application-level functionality.
|
class |
TransientDataAccessResourceException
Data access exception thrown when a resource fails temporarily
and the operation can be retried.
|
class |
UncategorizedDataAccessException
Normal superclass when we can't distinguish anything more specific
than "something went wrong with the underlying resource": for example,
a SQLException from JDBC we can't pinpoint more precisely.
|
| Modifier and Type | Class and Description |
|---|---|
class |
BadSqlGrammarException
Exception thrown when SQL specified is invalid.
|
class |
DuplicateKeyException
Exception thrown when an attempt to insert or update data
results in violation of an primary key or unique constraint.
|
class |
InvalidResultSetAccessException
Exception thrown when a ResultSet has been accessed in an invalid fashion.
|
class |
UncategorizedSqlException
Exception thrown when we can't classify a SQLException into
one of our generic data access exceptions.
|
Copyright © 2017. All rights reserved.