- Database - Interface in com.github.susom.database
-
Primary class for accessing a relational (SQL) database.
- DatabaseException - Exception in com.github.susom.database
-
Indicates something went wrong accessing the database.
- DatabaseException(String) - Constructor for exception com.github.susom.database.DatabaseException
-
- DatabaseException(Throwable) - Constructor for exception com.github.susom.database.DatabaseException
-
- DatabaseException(String, Throwable) - Constructor for exception com.github.susom.database.DatabaseException
-
- DatabaseImpl - Class in com.github.susom.database
-
Primary class for accessing a relational (SQL) database.
- DatabaseImpl(Connection, Options) - Constructor for class com.github.susom.database.DatabaseImpl
-
- DatabaseImpl(DatabaseMock, Flavor) - Constructor for class com.github.susom.database.DatabaseImpl
-
- DatabaseImpl(DatabaseMock, Options) - Constructor for class com.github.susom.database.DatabaseImpl
-
- DatabaseMock - Interface in com.github.susom.database
-
Convenience class to intercept calls to Connection and return stubbed results
for testing purposes.
- DatabaseProvider - Class in com.github.susom.database
-
This is a lazy provider for Database instances.
- DatabaseProvider(Provider<Connection>, Options) - Constructor for class com.github.susom.database.DatabaseProvider
-
- DatabaseProvider.Builder - Interface in com.github.susom.database
-
This builder is immutable, so setting various options does not affect
the previous instance.
- DatabaseProvider.Pool - Class in com.github.susom.database
-
- DatabaseProviderVertx - Class in com.github.susom.database
-
This is a lazy provider for Database instances.
- DatabaseProviderVertx(Vertx, Provider<Connection>, Options) - Constructor for class com.github.susom.database.DatabaseProviderVertx
-
- DatabaseProviderVertx.Builder - Interface in com.github.susom.database
-
This builder is immutable, so setting various options does not affect
the previous instance.
- dataSource - Variable in class com.github.susom.database.DatabaseProvider.Pool
-
- dateAsSqlFunction(Date, Calendar) - Method in enum com.github.susom.database.Flavor
-
Return a SQL function representing the specified date.
- DbCode - Interface in com.github.susom.database
-
A block of runnable code using a transacted Database.
- DbCodeTx - Interface in com.github.susom.database
-
A block of runnable code using a transacted Database.
- DbCodeTyped<T> - Interface in com.github.susom.database
-
A block of runnable code using a transacted Database.
- DbCodeTypedTx<T> - Interface in com.github.susom.database
-
A block of runnable code using a transacted Database.
- DbRun - Class in com.github.susom.database
-
Abstract base class for a block of runnable code using a transacted Database.
- DbRun() - Constructor for class com.github.susom.database.DbRun
-
- dbTimeMillis() - Method in enum com.github.susom.database.Flavor
-
- ddl(String) - Method in interface com.github.susom.database.Database
-
Create a DDL (schema modifying) statement for further manipulation and execution.
- ddl(String) - Method in class com.github.susom.database.DatabaseImpl
-
- Ddl - Interface in com.github.susom.database
-
Interface for executing a chunk of DDL within the database.
- DdlImpl - Class in com.github.susom.database
-
This is the key class for configuring (query parameters) and executing a database query.
- DdlImpl(Connection, String, Options) - Constructor for class com.github.susom.database.DdlImpl
-
- DebugSql - Class in com.github.susom.database
-
Convenience class to substitute real values into a database query for debugging, logging, etc.
- DebugSql() - Constructor for class com.github.susom.database.DebugSql
-
- deleteCharAt(int) - Method in class com.github.susom.database.Sql
-
- derby(String) - Method in class com.github.susom.database.When
-
- done(String, Object...) - Method in class com.github.susom.database.Metric
-
Set a final mark for timing and stop the timer.
- done() - Method in class com.github.susom.database.Metric
-
Indicate we are done (stop the timer).
- driverForJdbcUrl(String) - Static method in enum com.github.susom.database.Flavor
-
- dropSequenceQuietly(String) - Method in interface com.github.susom.database.Database
-
Convenience method to deal with mutually incompatible syntax for this.
- dropSequenceQuietly(String) - Method in class com.github.susom.database.DatabaseImpl
-
- dropTableQuietly(String) - Method in interface com.github.susom.database.Database
-
Convenience method to deal with dropping tables that may or may not exist.
- dropTableQuietly(String) - Method in class com.github.susom.database.DatabaseImpl
-
- fakeBuilder() - Method in class com.github.susom.database.DatabaseProvider
-
- fakeBuilder() - Method in class com.github.susom.database.DatabaseProviderVertx
-
- flavor() - Method in interface com.github.susom.database.Database
-
Access information about what kind of database we are dealing with.
- flavor() - Method in class com.github.susom.database.DatabaseImpl
-
- flavor - Variable in class com.github.susom.database.DatabaseProvider.Pool
-
- Flavor - Enum in com.github.susom.database
-
Enumeration of supported databases with various compatibility settings.
- flavor() - Method in interface com.github.susom.database.Options
-
Access compatibility information for the underlying database.
- flavor() - Method in class com.github.susom.database.OptionsDefault
-
- flavor() - Method in class com.github.susom.database.OptionsOverride
-
- foreignKey(String) - Method in class com.github.susom.database.Schema.Table.Column
-
- ForeignKey(String, String[]) - Constructor for class com.github.susom.database.Schema.Table.ForeignKey
-
- foreignTable - Variable in class com.github.susom.database.Schema.Table.ForeignKey
-
- from() - Static method in interface com.github.susom.database.Config
-
Convenience method for fluent syntax.
- fromAny() - Method in enum com.github.susom.database.Flavor
-
Indicate what should follow a constant select statement.
- fromDriverManager(String) - Static method in class com.github.susom.database.DatabaseProvider
-
Builder method to create and initialize an instance of this class using
the JDBC standard DriverManager method.
- fromDriverManager(String, Flavor) - Static method in class com.github.susom.database.DatabaseProvider
-
Builder method to create and initialize an instance of this class using
the JDBC standard DriverManager method.
- fromDriverManager(Config) - Static method in class com.github.susom.database.DatabaseProvider
-
- fromDriverManager(String, Properties) - Static method in class com.github.susom.database.DatabaseProvider
-
Builder method to create and initialize an instance of this class using
the JDBC standard DriverManager method.
- fromDriverManager(String, Flavor, Properties) - Static method in class com.github.susom.database.DatabaseProvider
-
Builder method to create and initialize an instance of this class using
the JDBC standard DriverManager method.
- fromDriverManager(String, String, String) - Static method in class com.github.susom.database.DatabaseProvider
-
Builder method to create and initialize an instance of this class using
the JDBC standard DriverManager method.
- fromDriverManager(String, Flavor, String, String) - Static method in class com.github.susom.database.DatabaseProvider
-
Builder method to create and initialize an instance of this class using
the JDBC standard DriverManager method.
- fromJdbcUrl(String) - Static method in enum com.github.susom.database.Flavor
-
- fromJndi(Context, String, Flavor) - Static method in class com.github.susom.database.DatabaseProvider
-
Builder method to create and initialize an instance of this class using
a JNDI resource.
- fromMetadata(Row) - Static method in class com.github.susom.database.SqlArgs
-
- fromPool(DatabaseProvider.Pool) - Static method in class com.github.susom.database.DatabaseProvider
-
Use an externally configured DataSource, Flavor, and optionally a shutdown hook.
- fromPool(Vertx, DatabaseProvider.Pool) - Static method in class com.github.susom.database.DatabaseProviderVertx
-
Use an externally configured DataSource, Flavor, and optionally a shutdown hook.
- fromProperties(Properties) - Static method in class com.github.susom.database.DatabaseProvider
-
Configure the database from up to five properties read from the provided properties:
- fromProperties(Properties, String) - Static method in class com.github.susom.database.DatabaseProvider
-
Configure the database from up to five properties read from the provided properties:
- fromPropertyFile(String) - Static method in class com.github.susom.database.DatabaseProvider
-
Configure the database from up to five properties read from a file:
- fromPropertyFile(String, CharsetDecoder) - Static method in class com.github.susom.database.DatabaseProvider
-
Configure the database from up to five properties read from a file:
- fromPropertyFile(String, String) - Static method in class com.github.susom.database.DatabaseProvider
-
Configure the database from up to five properties read from a file:
- fromPropertyFile(String, String, CharsetDecoder) - Static method in class com.github.susom.database.DatabaseProvider
-
Configure the database from up to five properties read from a file:
- fromPropertyFileOrSystemProperties(String) - Static method in class com.github.susom.database.DatabaseProvider
-
Configure the database from up to five properties read from the specified
properties file, or from the system properties (system properties will take
precedence over the file):
- fromPropertyFileOrSystemProperties(String, CharsetDecoder) - Static method in class com.github.susom.database.DatabaseProvider
-
Configure the database from up to five properties read from the specified
properties file, or from the system properties (system properties will take
precedence over the file):
- fromPropertyFileOrSystemProperties(String, String) - Static method in class com.github.susom.database.DatabaseProvider
-
Configure the database from up to five properties read from the specified
properties file, or from the system properties (system properties will take
precedence over the file):
- fromPropertyFileOrSystemProperties(String, String, CharsetDecoder) - Static method in class com.github.susom.database.DatabaseProvider
-
Configure the database from up to five properties read from the specified
properties file, or from the system properties (system properties will take
precedence over the file):
- fromSystemProperties() - Static method in class com.github.susom.database.DatabaseProvider
-
Configure the database from up to five system properties:
- fromSystemProperties(String) - Static method in class com.github.susom.database.DatabaseProvider
-
Configure the database from up to five system properties:
- generateErrorCode() - Method in interface com.github.susom.database.Options
-
In cases where exceptions are thrown, use this method to provide a common
code that will be included in the exception message and the log message
so they can be searched and correlated later.
- generateErrorCode() - Method in class com.github.susom.database.OptionsDefault
-
- generateErrorCode() - Method in class com.github.susom.database.OptionsOverride
-
- get() - Method in interface com.github.susom.database.ConfigFrom
-
- get() - Method in class com.github.susom.database.ConfigFromImpl
-
- get(String) - Method in interface com.github.susom.database.ConfigStrings
-
Provide access to some configuration parameter.
- get() - Method in class com.github.susom.database.DatabaseImpl
-
- get() - Method in class com.github.susom.database.DatabaseProvider
-
- get() - Method in class com.github.susom.database.DatabaseProviderVertx
-
- getArgs() - Method in class com.github.susom.database.MixedParameterSql
-
- getBigDecimal(String) - Method in interface com.github.susom.database.Config
-
- getBigDecimal(String, BigDecimal) - Method in interface com.github.susom.database.Config
-
- getBigDecimal(String) - Method in class com.github.susom.database.ConfigImpl
-
- getBigDecimal(String, BigDecimal) - Method in class com.github.susom.database.ConfigImpl
-
- getBigDecimalOrNull() - Method in interface com.github.susom.database.Row
-
Note this method attempts to correct for "artifical" scale due to the database
representation.
- getBigDecimalOrNull(int) - Method in interface com.github.susom.database.Row
-
- getBigDecimalOrNull(String) - Method in interface com.github.susom.database.Row
-
- getBigDecimalOrThrow(String) - Method in interface com.github.susom.database.Config
-
- getBigDecimalOrThrow(String) - Method in class com.github.susom.database.ConfigImpl
-
- getBigDecimalOrZero() - Method in interface com.github.susom.database.Row
-
- getBigDecimalOrZero(int) - Method in interface com.github.susom.database.Row
-
- getBigDecimalOrZero(String) - Method in interface com.github.susom.database.Row
-
- getBlobBytesOrNull() - Method in interface com.github.susom.database.Row
-
- getBlobBytesOrNull(int) - Method in interface com.github.susom.database.Row
-
- getBlobBytesOrNull(String) - Method in interface com.github.susom.database.Row
-
- getBlobBytesOrZeroLen() - Method in interface com.github.susom.database.Row
-
- getBlobBytesOrZeroLen(int) - Method in interface com.github.susom.database.Row
-
- getBlobBytesOrZeroLen(String) - Method in interface com.github.susom.database.Row
-
- getBlobInputStreamOrEmpty() - Method in interface com.github.susom.database.Row
-
- getBlobInputStreamOrEmpty(int) - Method in interface com.github.susom.database.Row
-
- getBlobInputStreamOrEmpty(String) - Method in interface com.github.susom.database.Row
-
- getBlobInputStreamOrNull() - Method in interface com.github.susom.database.Row
-
- getBlobInputStreamOrNull(int) - Method in interface com.github.susom.database.Row
-
- getBlobInputStreamOrNull(String) - Method in interface com.github.susom.database.Row
-
- getBooleanOrFalse(String) - Method in interface com.github.susom.database.Config
-
Read a boolean value from the configuration.
- getBooleanOrFalse(String) - Method in class com.github.susom.database.ConfigImpl
-
- getBooleanOrFalse() - Method in interface com.github.susom.database.Row
-
Boolean values are represented as strings "Y" or "N" in the database,
typically in a CHAR(1) column.
- getBooleanOrFalse(int) - Method in interface com.github.susom.database.Row
-
Boolean values are represented as strings "Y" or "N" in the database,
typically in a CHAR(1) column.
- getBooleanOrFalse(String) - Method in interface com.github.susom.database.Row
-
Boolean values are represented as strings "Y" or "N" in the database,
typically in a CHAR(1) column.
- getBooleanOrNull() - Method in interface com.github.susom.database.Row
-
Boolean values are represented as strings "Y" or "N" in the database,
typically in a CHAR(1) column.
- getBooleanOrNull(int) - Method in interface com.github.susom.database.Row
-
Boolean values are represented as strings "Y" or "N" in the database,
typically in a CHAR(1) column.
- getBooleanOrNull(String) - Method in interface com.github.susom.database.Row
-
Boolean values are represented as strings "Y" or "N" in the database,
typically in a CHAR(1) column.
- getBooleanOrThrow(String) - Method in interface com.github.susom.database.Config
-
- getBooleanOrThrow(String) - Method in class com.github.susom.database.ConfigImpl
-
- getBooleanOrTrue(String) - Method in interface com.github.susom.database.Config
-
Read a boolean value from the configuration.
- getBooleanOrTrue(String) - Method in class com.github.susom.database.ConfigImpl
-
- getBooleanOrTrue() - Method in interface com.github.susom.database.Row
-
Boolean values are represented as strings "Y" or "N" in the database,
typically in a CHAR(1) column.
- getBooleanOrTrue(int) - Method in interface com.github.susom.database.Row
-
Boolean values are represented as strings "Y" or "N" in the database,
typically in a CHAR(1) column.
- getBooleanOrTrue(String) - Method in interface com.github.susom.database.Row
-
Boolean values are represented as strings "Y" or "N" in the database,
typically in a CHAR(1) column.
- getClobReaderOrEmpty() - Method in interface com.github.susom.database.Row
-
- getClobReaderOrEmpty(int) - Method in interface com.github.susom.database.Row
-
- getClobReaderOrEmpty(String) - Method in interface com.github.susom.database.Row
-
- getClobReaderOrNull() - Method in interface com.github.susom.database.Row
-
- getClobReaderOrNull(int) - Method in interface com.github.susom.database.Row
-
- getClobReaderOrNull(String) - Method in interface com.github.susom.database.Row
-
- getClobStringOrEmpty() - Method in interface com.github.susom.database.Row
-
- getClobStringOrEmpty(int) - Method in interface com.github.susom.database.Row
-
- getClobStringOrEmpty(String) - Method in interface com.github.susom.database.Row
-
- getClobStringOrNull() - Method in interface com.github.susom.database.Row
-
- getClobStringOrNull(int) - Method in interface com.github.susom.database.Row
-
- getClobStringOrNull(String) - Method in interface com.github.susom.database.Row
-
- getColumnLabels() - Method in interface com.github.susom.database.Row
-
Obtain the names of the columns in the database.
- getDateOrNull() - Method in interface com.github.susom.database.Row
-
Return the millisecond precision Date, which should be represented as a TIMESTAMP
in the database.
- getDateOrNull(int) - Method in interface com.github.susom.database.Row
-
Return the millisecond precision Date, which should be represented as a TIMESTAMP
in the database.
- getDateOrNull(String) - Method in interface com.github.susom.database.Row
-
- getDouble(String) - Method in interface com.github.susom.database.Config
-
- getDouble(String, double) - Method in interface com.github.susom.database.Config
-
- getDouble(String) - Method in class com.github.susom.database.ConfigImpl
-
- getDouble(String, double) - Method in class com.github.susom.database.ConfigImpl
-
- getDoubleOrNull() - Method in interface com.github.susom.database.Row
-
- getDoubleOrNull(int) - Method in interface com.github.susom.database.Row
-
- getDoubleOrNull(String) - Method in interface com.github.susom.database.Row
-
- getDoubleOrThrow(String) - Method in interface com.github.susom.database.Config
-
- getDoubleOrThrow(String) - Method in class com.github.susom.database.ConfigImpl
-
- getDoubleOrZero() - Method in interface com.github.susom.database.Row
-
- getDoubleOrZero(int) - Method in interface com.github.susom.database.Row
-
- getDoubleOrZero(String) - Method in interface com.github.susom.database.Row
-
- getFloat(String) - Method in interface com.github.susom.database.Config
-
- getFloat(String, float) - Method in interface com.github.susom.database.Config
-
- getFloat(String) - Method in class com.github.susom.database.ConfigImpl
-
- getFloat(String, float) - Method in class com.github.susom.database.ConfigImpl
-
- getFloatOrNull() - Method in interface com.github.susom.database.Row
-
- getFloatOrNull(int) - Method in interface com.github.susom.database.Row
-
- getFloatOrNull(String) - Method in interface com.github.susom.database.Row
-
- getFloatOrThrow(String) - Method in interface com.github.susom.database.Config
-
- getFloatOrThrow(String) - Method in class com.github.susom.database.ConfigImpl
-
- getFloatOrZero() - Method in interface com.github.susom.database.Row
-
- getFloatOrZero(int) - Method in interface com.github.susom.database.Row
-
- getFloatOrZero(String) - Method in interface com.github.susom.database.Row
-
- getInteger(String) - Method in interface com.github.susom.database.Config
-
- getInteger(String, int) - Method in interface com.github.susom.database.Config
-
- getInteger(String) - Method in class com.github.susom.database.ConfigImpl
-
- getInteger(String, int) - Method in class com.github.susom.database.ConfigImpl
-
- getIntegerOrNull() - Method in interface com.github.susom.database.Row
-
- getIntegerOrNull(int) - Method in interface com.github.susom.database.Row
-
- getIntegerOrNull(String) - Method in interface com.github.susom.database.Row
-
- getIntegerOrThrow(String) - Method in interface com.github.susom.database.Config
-
- getIntegerOrThrow(String) - Method in class com.github.susom.database.ConfigImpl
-
- getIntegerOrZero() - Method in interface com.github.susom.database.Row
-
- getIntegerOrZero(int) - Method in interface com.github.susom.database.Row
-
- getIntegerOrZero(String) - Method in interface com.github.susom.database.Row
-
- getLong(String) - Method in interface com.github.susom.database.Config
-
- getLong(String, long) - Method in interface com.github.susom.database.Config
-
- getLong(String) - Method in class com.github.susom.database.ConfigImpl
-
- getLong(String, long) - Method in class com.github.susom.database.ConfigImpl
-
- getLongOrNull() - Method in interface com.github.susom.database.Row
-
- getLongOrNull(int) - Method in interface com.github.susom.database.Row
-
- getLongOrNull(String) - Method in interface com.github.susom.database.Row
-
- getLongOrThrow(String) - Method in interface com.github.susom.database.Config
-
- getLongOrThrow(String) - Method in class com.github.susom.database.ConfigImpl
-
- getLongOrZero() - Method in interface com.github.susom.database.Row
-
- getLongOrZero(int) - Method in interface com.github.susom.database.Row
-
- getLongOrZero(String) - Method in interface com.github.susom.database.Row
-
- getMessage() - Method in class com.github.susom.database.Metric
-
Construct and return a message based on the timing and checkpoints.
- getMetadata() - Method in interface com.github.susom.database.Row
-
Get raw access to the underlying JDBC metadata.
- getSqlToExecute() - Method in class com.github.susom.database.MixedParameterSql
-
- getString(String) - Method in interface com.github.susom.database.Config
-
- getString(String, String) - Method in interface com.github.susom.database.Config
-
- getString(String) - Method in class com.github.susom.database.ConfigImpl
-
- getString(String, String) - Method in class com.github.susom.database.ConfigImpl
-
- getStringOrEmpty() - Method in interface com.github.susom.database.Row
-
- getStringOrEmpty(int) - Method in interface com.github.susom.database.Row
-
- getStringOrEmpty(String) - Method in interface com.github.susom.database.Row
-
- getStringOrNull() - Method in interface com.github.susom.database.Row
-
- getStringOrNull(int) - Method in interface com.github.susom.database.Row
-
- getStringOrNull(String) - Method in interface com.github.susom.database.Row
-
- getStringOrThrow(String) - Method in interface com.github.susom.database.Config
-
- getStringOrThrow(String) - Method in class com.github.susom.database.ConfigImpl
-
- Schema - Class in com.github.susom.database
-
Java representation of a database schema with the various things it can contain.
- Schema() - Constructor for class com.github.susom.database.Schema
-
- schema() - Method in class com.github.susom.database.Schema.Sequence
-
- schema() - Method in class com.github.susom.database.Schema.Table.Column
-
- schema() - Method in class com.github.susom.database.Schema.Table
-
- Schema.ColumnType - Enum in com.github.susom.database
-
- Schema.Sequence - Class in com.github.susom.database
-
- Schema.Table - Class in com.github.susom.database
-
- Schema.Table.Check - Class in com.github.susom.database
-
- Schema.Table.Column - Class in com.github.susom.database
-
- Schema.Table.ForeignKey - Class in com.github.susom.database
-
- Schema.Table.Index - Class in com.github.susom.database
-
- Schema.Table.PrimaryKey - Class in com.github.susom.database
-
- Schema.Table.Unique - Class in com.github.susom.database
-
- Sequence(String) - Constructor for class com.github.susom.database.Schema.Sequence
-
- sequenceCacheClause(int) - Method in enum com.github.susom.database.Flavor
-
- sequenceCycleClause(boolean) - Method in enum com.github.susom.database.Flavor
-
- sequenceDrop(String) - Method in enum com.github.susom.database.Flavor
-
- sequenceNextVal(String) - Method in enum com.github.susom.database.Flavor
-
- sequenceOptions() - Method in enum com.github.susom.database.Flavor
-
- sequenceOrderClause(boolean) - Method in enum com.github.susom.database.Flavor
-
- sequenceSelectNextVal(String) - Method in enum com.github.susom.database.Flavor
-
- setParent(Options) - Method in class com.github.susom.database.OptionsOverride
-
- setRollbackOnError(boolean) - Method in class com.github.susom.database.DbRun
-
By default the transaction behavior (whether commit() or rollback() is called)
after run() is specified by how this code block is invoked.
- setRollbackOnError(boolean) - Method in interface com.github.susom.database.Transaction
-
Use this to request either "commit always" or "commit unless error" behavior.
- setRollbackOnError(boolean) - Method in class com.github.susom.database.TransactionImpl
-
- setRollbackOnException(boolean) - Method in class com.github.susom.database.DbRun
-
- setRollbackOnly(boolean) - Method in class com.github.susom.database.DbRun
-
If your code inside run() decides for some reason the transaction should rollback
rather than commit, use this method.
- setRollbackOnly(boolean) - Method in interface com.github.susom.database.Transaction
-
If your code inside run() decides for some reason the transaction should rollback
rather than commit, use this method.
- setRollbackOnly(boolean) - Method in class com.github.susom.database.TransactionImpl
-
- setSqlArgs(SqlArgs) - Method in class com.github.susom.database.Sql
-
- Sql - Class in com.github.susom.database
-
This class is useful for dynamically generating SQL.
- Sql() - Constructor for class com.github.susom.database.Sql
-
- Sql(String) - Constructor for class com.github.susom.database.Sql
-
- sql() - Method in class com.github.susom.database.Sql
-
- Sql.ColumnType - Enum in com.github.susom.database
-
- SqlArgs - Class in com.github.susom.database
-
This class is useful for dynamically generating SQL.
- SqlArgs() - Constructor for class com.github.susom.database.SqlArgs
-
- SqlArgs.Builder - Class in com.github.susom.database
-
- SqlArgs.ColumnType - Enum in com.github.susom.database
-
- SqlInsert - Interface in com.github.susom.database
-
Interface for configuring (setting parameters) and executing a chunk of SQL.
- SqlInsert.Apply - Interface in com.github.susom.database
-
- SqlInsertImpl - Class in com.github.susom.database
-
This is the key class for configuring (query parameters) and executing a database query.
- SqlInsertImpl(Connection, DatabaseMock, String, Options) - Constructor for class com.github.susom.database.SqlInsertImpl
-
- SqlSelect - Interface in com.github.susom.database
-
Interface for configuring (setting parameters) and executing a chunk of SQL.
- SqlSelect.Apply - Interface in com.github.susom.database
-
- SqlSelectImpl - Class in com.github.susom.database
-
This is the key class for configuring (query parameters) and executing a database query.
- SqlSelectImpl(Connection, DatabaseMock, String, Options) - Constructor for class com.github.susom.database.SqlSelectImpl
-
- SqlUpdate - Interface in com.github.susom.database
-
Interface for configuring (setting parameters) and executing a chunk of SQL.
- SqlUpdate.Apply - Interface in com.github.susom.database
-
Call this between setting rows of parameters for a SQL statement.
- SqlUpdateImpl - Class in com.github.susom.database
-
This is the key class for configuring (query parameters) and executing a database query.
- SqlUpdateImpl(Connection, DatabaseMock, String, Options) - Constructor for class com.github.susom.database.SqlUpdateImpl
-
- start(long) - Method in class com.github.susom.database.Schema.Sequence
-
- StatementAdaptor - Class in com.github.susom.database
-
Deal with mapping parameters into prepared statements.
- StatementAdaptor(Options) - Constructor for class com.github.susom.database.StatementAdaptor
-
- supportsInsertReturning() - Method in enum com.github.susom.database.Flavor
-
- systemProperties() - Method in interface com.github.susom.database.ConfigFrom
-
- systemProperties() - Method in class com.github.susom.database.ConfigFromImpl
-
- Table(String) - Constructor for class com.github.susom.database.Schema.Table
-
- table() - Method in class com.github.susom.database.Schema.Table.Check
-
- table() - Method in class com.github.susom.database.Schema.Table.Column
-
- table() - Method in class com.github.susom.database.Schema.Table.ForeignKey
-
- table() - Method in class com.github.susom.database.Schema.Table.Index
-
- table() - Method in class com.github.susom.database.Schema.Table.PrimaryKey
-
- table() - Method in class com.github.susom.database.Schema.Table.Unique
-
- tidyColumnNames(String[]) - Static method in class com.github.susom.database.SqlArgs
-
- toDelete(String) - Method in interface com.github.susom.database.Database
-
Create a SQL "delete" statement for further manipulation and execution.
- toDelete(Sql) - Method in interface com.github.susom.database.Database
-
- toDelete(String) - Method in class com.github.susom.database.DatabaseImpl
-
- toDelete(Sql) - Method in class com.github.susom.database.DatabaseImpl
-
- toInsert(String) - Method in interface com.github.susom.database.Database
-
Create a SQL "insert" statement for further manipulation and execution.
- toInsert(Sql) - Method in interface com.github.susom.database.Database
-
- toInsert(String) - Method in class com.github.susom.database.DatabaseImpl
-
- toInsert(Sql) - Method in class com.github.susom.database.DatabaseImpl
-
- toRows() - Method in class com.github.susom.database.RowStub
-
- toSelect(String) - Method in interface com.github.susom.database.Database
-
Create a SQL "select" statement for further manipulation and execution.
- toSelect(Sql) - Method in interface com.github.susom.database.Database
-
- toSelect(String) - Method in class com.github.susom.database.DatabaseImpl
-
- toSelect(Sql) - Method in class com.github.susom.database.DatabaseImpl
-
- toString() - Method in class com.github.susom.database.Sql
-
Same as sql(), provided for drop-in compatibility with StringBuilder.
- toString() - Method in class com.github.susom.database.SqlArgs
-
- toString() - Method in class com.github.susom.database.When
-
- toUpdate(String) - Method in interface com.github.susom.database.Database
-
Create a SQL "update" statement for further manipulation and execution.
- toUpdate(Sql) - Method in interface com.github.susom.database.Database
-
- toUpdate(String) - Method in class com.github.susom.database.DatabaseImpl
-
- toUpdate(Sql) - Method in class com.github.susom.database.DatabaseImpl
-
- trackCreateTime() - Method in class com.github.susom.database.Schema.Table
-
- trackCreateTimeAndUser(String) - Method in class com.github.susom.database.Schema.Table
-
- trackCreateTimeAndUser(String, String) - Method in class com.github.susom.database.Schema.Table
-
- trackUpdateTime() - Method in class com.github.susom.database.Schema.Table
-
- trackUpdateTimeAndUser(String) - Method in class com.github.susom.database.Schema.Table
-
- trackUpdateTimeAndUser(String, String) - Method in class com.github.susom.database.Schema.Table
-
- transact(DbRun) - Method in interface com.github.susom.database.DatabaseProvider.Builder
-
- transact(DbCode) - Method in interface com.github.susom.database.DatabaseProvider.Builder
-
This is a convenience method to eliminate the need for explicitly
managing the resources (and error handling) for this class.
- transact(DbCodeTx) - Method in interface com.github.susom.database.DatabaseProvider.Builder
-
This is a convenience method to eliminate the need for explicitly
managing the resources (and error handling) for this class.
- transact(DbRun) - Method in class com.github.susom.database.DatabaseProvider
-
- transact(DbCode) - Method in class com.github.susom.database.DatabaseProvider
-
- transact(DbCodeTx) - Method in class com.github.susom.database.DatabaseProvider
-
- transact(DbCode) - Method in interface com.github.susom.database.DatabaseProviderVertx.Builder
-
This is a convenience method to eliminate the need for explicitly
managing the resources (and error handling) for this class.
- transact(DbCodeTx) - Method in interface com.github.susom.database.DatabaseProviderVertx.Builder
-
This is a convenience method to eliminate the need for explicitly
managing the resources (and error handling) for this class.
- transact(DbCode) - Method in class com.github.susom.database.DatabaseProviderVertx
-
Execute a transaction on the current thread, with default semantics (commit if
the code completes successfully, or rollback if it throws an error).
- transact(DbCodeTx) - Method in class com.github.susom.database.DatabaseProviderVertx
-
- transactAsync(DbCodeTyped<T>, Handler<AsyncResult<T>>) - Method in interface com.github.susom.database.DatabaseProviderVertx.Builder
-
- transactAsync(DbCodeTypedTx<T>, Handler<AsyncResult<T>>) - Method in interface com.github.susom.database.DatabaseProviderVertx.Builder
-
- transactAsync(DbCodeTyped<T>, Handler<AsyncResult<T>>) - Method in class com.github.susom.database.DatabaseProviderVertx
-
Execute a transaction on a Vert.x worker thread, with default semantics (commit if
the code completes successfully, or rollback if it throws an error).
- transactAsync(DbCodeTypedTx<T>, Handler<AsyncResult<T>>) - Method in class com.github.susom.database.DatabaseProviderVertx
-
Execute a transaction on a Vert.x worker thread, with default semantics (commit if
the code completes successfully, or rollback if it throws an error).
- Transaction - Interface in com.github.susom.database
-
Allow customization of the transaction behavior.
- TransactionImpl - Class in com.github.susom.database
-
Simple bean representing how the database transaction should behave
in terms of commit/rollback.
- TransactionImpl() - Constructor for class com.github.susom.database.TransactionImpl
-
- typeBigDecimal(int, int) - Method in enum com.github.susom.database.Flavor
-
- typeBlob() - Method in enum com.github.susom.database.Flavor
-
- typeBoolean() - Method in enum com.github.susom.database.Flavor
-
- typeClob() - Method in enum com.github.susom.database.Flavor
-
- typeDate() - Method in enum com.github.susom.database.Flavor
-
- typeDouble() - Method in enum com.github.susom.database.Flavor
-
- typeFloat() - Method in enum com.github.susom.database.Flavor
-
- typeInteger() - Method in enum com.github.susom.database.Flavor
-
- typeLong() - Method in enum com.github.susom.database.Flavor
-
- typeStringFixed(int) - Method in enum com.github.susom.database.Flavor
-
- typeStringVar(int) - Method in enum com.github.susom.database.Flavor
-
- when() - Method in interface com.github.susom.database.Database
-
A little syntax sugar to make it easier to customize your SQL based on the
specific database.
- when() - Method in class com.github.susom.database.DatabaseImpl
-
- When - Class in com.github.susom.database
-
Convenience for conditional SQL generation.
- When(Flavor) - Constructor for class com.github.susom.database.When
-
- withArgs(SqlArgs) - Method in interface com.github.susom.database.SqlInsert
-
- withArgs(SqlArgs) - Method in class com.github.susom.database.SqlInsertImpl
-
- withArgs(SqlArgs) - Method in interface com.github.susom.database.SqlSelect
-
- withArgs(SqlArgs) - Method in class com.github.susom.database.SqlSelectImpl
-
- withArgs(SqlArgs) - Method in interface com.github.susom.database.SqlUpdate
-
- withArgs(SqlArgs) - Method in class com.github.susom.database.SqlUpdateImpl
-
- withColumnNames(String...) - Method in class com.github.susom.database.RowStub
-
- withComment(String) - Method in class com.github.susom.database.Schema.Table.Column
-
- withComment(String) - Method in class com.github.susom.database.Schema.Table
-
- withConnectionAccess() - Method in interface com.github.susom.database.DatabaseProvider.Builder
-
Allow direct access to the underlying database connection.
- withConnectionAccess() - Method in interface com.github.susom.database.DatabaseProviderVertx.Builder
-
Allow direct access to the underlying database connection.
- withDatePerAppOnly() - Method in interface com.github.susom.database.DatabaseProvider.Builder
-
Wherever argDateNowPerDb() is specified, use argDateNowPerApp() instead.
- withDatePerAppOnly() - Method in interface com.github.susom.database.DatabaseProviderVertx.Builder
-
Wherever argDateNowPerDb() is specified, use argDateNowPerApp() instead.
- withHistoryTable() - Method in class com.github.susom.database.Schema.Table
-
- withMaxRows(int) - Method in interface com.github.susom.database.SqlSelect
-
- withMaxRows(int) - Method in class com.github.susom.database.SqlSelectImpl
-
- withOptions(OptionsOverride) - Method in interface com.github.susom.database.DatabaseProvider.Builder
-
- withOptions(OptionsOverride) - Method in interface com.github.susom.database.DatabaseProviderVertx.Builder
-
- withoutForeignKeyIndexing() - Method in class com.github.susom.database.Schema
-
- withParent(Options) - Method in class com.github.susom.database.OptionsOverride
-
- withSqlInExceptionMessages() - Method in interface com.github.susom.database.DatabaseProvider.Builder
-
Include SQL in exception messages.
- withSqlInExceptionMessages() - Method in interface com.github.susom.database.DatabaseProviderVertx.Builder
-
Include SQL in exception messages.
- withSqlParameterLogging() - Method in interface com.github.susom.database.DatabaseProvider.Builder
-
Enable logging of parameter values along with the SQL.
- withSqlParameterLogging() - Method in interface com.github.susom.database.DatabaseProviderVertx.Builder
-
Enable logging of parameter values along with the SQL.
- withStandardPk() - Method in class com.github.susom.database.Schema.Table
-
- withTimeoutSeconds(int) - Method in interface com.github.susom.database.SqlSelect
-
- withTimeoutSeconds(int) - Method in class com.github.susom.database.SqlSelectImpl
-
- withTransactionControl() - Method in interface com.github.susom.database.DatabaseProvider.Builder
-
Allow provided Database instances to explicitly control transactions using the
commitNow() and rollbackNow() methods.
- withTransactionControl() - Method in interface com.github.susom.database.DatabaseProviderVertx.Builder
-
Allow provided Database instances to explicitly control transactions using the
commitNow() and rollbackNow() methods.
- withTransactionControlSilentlyIgnored() - Method in interface com.github.susom.database.DatabaseProvider.Builder
-
This can be useful when testing code, as it can pretend to use transactions,
while giving you control over whether it actually commits or rolls back.
- withTransactionControlSilentlyIgnored() - Method in interface com.github.susom.database.DatabaseProviderVertx.Builder
-
This can be useful when testing code, as it can pretend to use transactions,
while giving you control over whether it actually commits or rolls back.
- wrap(String, Throwable) - Static method in exception com.github.susom.database.DatabaseException
-
Wrap an exception with a DatabaseException, taking into account all known
subtypes such that we wrap subtypes in a matching type (so we don't obscure
the type available to catch clauses).
- WrongNumberOfRowsException - Exception in com.github.susom.database
-
Thrown when inserting/updating rows and the actual number of rows modified does
not match the expected number of rows.
- WrongNumberOfRowsException(String) - Constructor for exception com.github.susom.database.WrongNumberOfRowsException
-