A B C D E F G H I L M N O P Q R S T U V W
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- accept(int, ResultSet) - Method in interface com.d3x.core.db.DatabaseExecute.Multiple
-
Called to process one result set from a execute() call
- accept(ResultSet) - Method in interface com.d3x.core.db.DatabaseExecute.Single
-
Called to process the result set from a execute() call
- accept(ResultSet) - Method in interface com.d3x.core.db.DatabaseSelect.Handler
-
Returns an object generated from the ResultSet
- Apache() - Constructor for class com.d3x.core.db.DataSourceAdapter.Apache
- apply() - Method in class com.d3x.core.db.DatabaseExecute
-
Applies this database execute operation
- apply(DatabaseExecute.Multiple) - Method in class com.d3x.core.db.DatabaseExecute
-
Applies this database execute operation
- apply(DatabaseExecute.Single) - Method in class com.d3x.core.db.DatabaseExecute
-
Applies this database execute operation
- apply(DatabaseSelect.Handler<T>) - Method in class com.d3x.core.db.DatabaseSelect
-
Returns an object generated from a ResultSet according to handler
- apply(Connection) - Method in interface com.d3x.core.db.Database.ConnectionHandler
-
Executes some database logic with the connection provided
- apply(Collection<T>) - Method in class com.d3x.core.db.DatabaseUpdate
-
Applies this database operation the collection of records
- apply(Iterator<T>) - Method in class com.d3x.core.db.DatabaseUpdate
-
Applies this database operation the iterator of records
- apply(Stream<T>) - Method in class com.d3x.core.db.DatabaseUpdate
-
Applies this database operation the stream of records
- apply(T) - Method in class com.d3x.core.db.DatabaseUpdate
-
Applies this operation to the record provided
- applyAsync(Stream<T>) - Method in class com.d3x.core.db.DatabaseUpdate
-
Applies this operation asynchronously to the stream of records
- applyAsync(T) - Method in class com.d3x.core.db.DatabaseUpdate
-
Applies this operation asynchronously to the stream of records
- applyBoolean(PreparedStatement, int, Boolean) - Static method in interface com.d3x.core.db.DatabaseMapping
-
Applies the value to the statement, calling PreparedStatement.setNull() if value is null
- applyDate(PreparedStatement, int, Date) - Static method in interface com.d3x.core.db.DatabaseMapping
-
Applies the value to the statement, calling PreparedStatement.setNull() if value is null
- applyDate(PreparedStatement, int, Date, Calendar) - Static method in interface com.d3x.core.db.DatabaseMapping
-
Applies the value to the statement, calling PreparedStatement.setNull() if value is null
- applyDouble(PreparedStatement, int, Double) - Static method in interface com.d3x.core.db.DatabaseMapping
-
Applies the value to the statement, calling PreparedStatement.setNull() if value is null
- applyFloat(PreparedStatement, int, Float) - Static method in interface com.d3x.core.db.DatabaseMapping
-
Applies the value to the statement, calling PreparedStatement.setNull() if value is null
- applyInt(PreparedStatement, int, Integer) - Static method in interface com.d3x.core.db.DatabaseMapping
-
Applies the value to the statement, calling PreparedStatement.setNull() if value is null
- applyLong(PreparedStatement, int, Long) - Static method in interface com.d3x.core.db.DatabaseMapping
-
Applies the value to the statement, calling PreparedStatement.setNull() if value is null
- applyString(PreparedStatement, int, String) - Static method in interface com.d3x.core.db.DatabaseMapping
-
Applies the value to the statement, calling PreparedStatement.setNull() if value is null
- args - Variable in class com.d3x.core.db.DatabaseOperation
-
The list of arguments for operation, if any
- args - Variable in class com.d3x.core.db.DatabaseSelect
- args(Object...) - Method in class com.d3x.core.db.DatabaseOperation
-
Binds arguments to this operation
- args(Object...) - Method in class com.d3x.core.db.DatabaseSelect
-
Binds arguments to this select
- args(Collection<?>) - Method in class com.d3x.core.db.DatabaseSelect
-
Binds arguments to this select
- autoCommit - Variable in class com.d3x.core.db.DatabaseConfig
-
True to mark connection as auto commit
- autoCommit - Variable in class com.d3x.core.db.DatabaseConfig.DatabaseConfigBuilder
- autoCommit(Option<Boolean>) - Method in class com.d3x.core.db.DatabaseConfig.DatabaseConfigBuilder
-
True to mark connection as auto commit
B
- BasicMapping(int) - Constructor for class com.d3x.core.db.Database.BasicMapping
- batchSize - Variable in class com.d3x.core.db.DatabaseUpdate
- batchSize(int) - Method in class com.d3x.core.db.DatabaseUpdate
-
Configures the batch size for this operation
- bind(T, PreparedStatement) - Method in interface com.d3x.core.db.DatabaseMapping.Binder
-
Binds the record provided to the PreparedStatement
- bindArgs(PreparedStatement, List<Object>) - Static method in interface com.d3x.core.db.DatabaseMapping
-
Binds an array of arguments to the prepared statement
- bindArgs(PreparedStatement, TimeZone, List<Object>) - Static method in interface com.d3x.core.db.DatabaseMapping
-
Binds an array of arguments to the prepared statement
- binder - Variable in class com.d3x.core.db.DatabaseUpdate
- binder() - Method in class com.d3x.core.db.Database.BasicMapping
-
Returns a newly created binder appropriate for type
- binder(DatabaseMapping.Binder<T>) - Method in class com.d3x.core.db.DatabaseUpdate
-
Applies a custom binder to this update
- build() - Method in class com.d3x.core.db.DatabaseConfig.DatabaseConfigBuilder
- builder() - Static method in class com.d3x.core.db.DatabaseConfig
C
- canEqual(Object) - Method in class com.d3x.core.db.DatabaseConfig
- canEqual(Object) - Method in class com.d3x.core.db.DatabaseDriver
- close(DataSource) - Method in class com.d3x.core.db.DataSourceAdapter.Apache
- close(DataSource) - Method in interface com.d3x.core.db.DataSourceAdapter
-
Closes the data source if appropriate
- com.d3x.core.db - package com.d3x.core.db
- com.d3x.core.repo - package com.d3x.core.repo
- config - Variable in class com.d3x.core.db.Database
- connectionThreadLocal - Variable in class com.d3x.core.db.Database
- connectMillis - Variable in class com.d3x.core.db.DatabaseTiming
- count() - Method in class com.d3x.core.db.DatabaseSelect
-
Returns the record count that match this select
- count(String, Object...) - Method in class com.d3x.core.db.Database
-
Returns the record count from a select count(*) type query
- create(DatabaseConfig) - Method in class com.d3x.core.db.DataSourceAdapter.Apache
- create(DatabaseConfig) - Method in interface com.d3x.core.db.DataSourceAdapter
-
Returns a newly created DataSource based on the config provided
D
- Database - Class in com.d3x.core.db
-
A light weight SQL database abstraction layer using an Object / Functional approach to JDBC
- Database(DatabaseConfig) - Constructor for class com.d3x.core.db.Database
-
Constructor
- Database.BasicMapping<T> - Class in com.d3x.core.db
-
A generic mapping class for single type
- Database.ConnectionHandler<R> - Interface in com.d3x.core.db
-
An interface to a component to implement bespoke functionality against a database
- DatabaseConfig - Class in com.d3x.core.db
-
A class that capture database configuration details
- DatabaseConfig(DatabaseDriver, String, Option<String>, Option<Secret>, Option<Integer>, Option<Integer>, Option<Integer>, Option<Boolean>, Option<Boolean>, Option<Integer>, Option<Integer>, Option<Integer>, Map<String, String>) - Constructor for class com.d3x.core.db.DatabaseConfig
- DatabaseConfig.DatabaseConfigBuilder - Class in com.d3x.core.db
- DatabaseConfig.Deserializer - Class in com.d3x.core.db
- DatabaseConfig.Serializer - Class in com.d3x.core.db
- DatabaseConfigBuilder() - Constructor for class com.d3x.core.db.DatabaseConfig.DatabaseConfigBuilder
- DatabaseDriver - Class in com.d3x.core.db
-
A class that represents a JDBC driver
- DatabaseDriver(DatabaseDriver.Type, String) - Constructor for class com.d3x.core.db.DatabaseDriver
-
Constructor
- DatabaseDriver.Type - Enum in com.d3x.core.db
- DatabaseException - Exception in com.d3x.core.db
-
A RuntimeException generate by the Database adapter framework
- DatabaseException(String) - Constructor for exception com.d3x.core.db.DatabaseException
-
Constructor
- DatabaseException(String, Throwable) - Constructor for exception com.d3x.core.db.DatabaseException
-
Constructor
- DatabaseExecute - Class in com.d3x.core.db
-
A database operation to implement a JDBC Statement.execute() operation
- DatabaseExecute(Database, String) - Constructor for class com.d3x.core.db.DatabaseExecute
-
Constructor
- DatabaseExecute.Multiple - Interface in com.d3x.core.db
-
An interface to a handler that accepts multiple results sets
- DatabaseExecute.Single - Interface in com.d3x.core.db
-
An interface to a handler that accepts a single result set
- DatabaseIterator<T> - Interface in com.d3x.core.db
-
An iterator over records in a database that must be closed after use
- DatabaseMapping<T> - Interface in com.d3x.core.db
-
A component that defines how a data type is mapped to a database for select, insert, update and delete operations.
- DatabaseMapping.Binder<T> - Interface in com.d3x.core.db
-
A Binder that can bind a record to a PreparedStatement object
- DatabaseMapping.Mapper<T> - Interface in com.d3x.core.db
-
A Mapper that can create an Object from the current row in a ResultSet
- DatabaseOperation<T> - Class in com.d3x.core.db
-
A convenience base class for build database operations
- DatabaseOperation(Database) - Constructor for class com.d3x.core.db.DatabaseOperation
-
Constructor
- DatabaseRecord - Class in com.d3x.core.db
-
A convenience container that provides a generic mapping class to a row in a database table.
- DatabaseRecord(Map<String, Object>) - Constructor for class com.d3x.core.db.DatabaseRecord
-
Constructor
- DatabaseRecord.Mapping - Class in com.d3x.core.db
-
A DatabaseMapping for the DatabaseRecord class
- DatabaseSelect<T> - Class in com.d3x.core.db
-
A class used to setup and execute a database select
- DatabaseSelect(Database, Class<T>) - Constructor for class com.d3x.core.db.DatabaseSelect
-
Constructor
- DatabaseSelect.Handler<T> - Interface in com.d3x.core.db
-
An interface to a component that can generate an Object from the contents of a ResultSet
- DatabaseSql - Annotation Type in com.d3x.core.db
-
An annotation that can be used to attach a SQL expression to a class
- DatabaseTiming - Class in com.d3x.core.db
-
A class to capture timing and record counts for database operations
- DatabaseTiming() - Constructor for class com.d3x.core.db.DatabaseTiming
- DatabaseUpdate<T> - Class in com.d3x.core.db
-
A class used to setup and execute a database insert or update operation
- DatabaseUpdate(Database, Class<T>, DatabaseUpdate.Type) - Constructor for class com.d3x.core.db.DatabaseUpdate
-
Constructor
- DatabaseUpdate.Type - Enum in com.d3x.core.db
- DatabaseUtils - Class in com.d3x.core.db
-
Utilities class for the database abstraction layer
- DatabaseUtils() - Constructor for class com.d3x.core.db.DatabaseUtils
- dataSource - Variable in class com.d3x.core.db.Database
- dataSourceAdapter - Static variable in class com.d3x.core.db.Database
- DataSourceAdapter - Interface in com.d3x.core.db
-
An convenience adapter to work with DataSource implementations from different libraries.
- DataSourceAdapter.Apache - Class in com.d3x.core.db
-
A DataSourceFactory that uses Apache Commons DBCP library
- dataType - Variable in class com.d3x.core.db.DatabaseUpdate
- db - Variable in class com.d3x.core.db.DatabaseOperation
-
The database this operation is associated with
- db - Variable in class com.d3x.core.db.DatabaseSelect
- db - Variable in class com.d3x.core.db.DatabaseUpdate
- delete() - Method in class com.d3x.core.db.Database.BasicMapping
- delete() - Method in interface com.d3x.core.db.DatabaseMapping
-
The binder to bind arguments to a PreparedStatement for affecting deletes
- delete(Class<T>) - Method in class com.d3x.core.db.Database
-
Returns a new delete operation for the type specified
- DELETE - com.d3x.core.db.DatabaseUpdate.Type
- deserialize(JsonElement, Type, JsonDeserializationContext) - Method in class com.d3x.core.db.DatabaseConfig.Deserializer
- Deserializer() - Constructor for class com.d3x.core.db.DatabaseConfig.Deserializer
- doStart() - Method in class com.d3x.core.db.Database
- doStop() - Method in class com.d3x.core.db.Database
- driver - Variable in class com.d3x.core.db.DatabaseConfig.DatabaseConfigBuilder
- driver - Variable in class com.d3x.core.db.DatabaseConfig
-
The driver definition
- driver(DatabaseDriver) - Method in class com.d3x.core.db.DatabaseConfig.DatabaseConfigBuilder
-
The driver definition
- driverClassName - Variable in class com.d3x.core.db.DatabaseDriver
-
The driver class name
- driverMap - Static variable in class com.d3x.core.db.DatabaseDriver
E
- empty() - Static method in interface com.d3x.core.db.DatabaseIterator
-
Returns an empty database iterator
- equals(Object) - Method in class com.d3x.core.db.DatabaseConfig
- equals(Object) - Method in class com.d3x.core.db.DatabaseDriver
- exec(String) - Method in class com.d3x.core.db.Database
- execute(String) - Method in class com.d3x.core.db.Database
-
Executes the sql definition using java.sql.Statement.execute()
- execute(String, Option<Consumer<ResultSet>>) - Method in class com.d3x.core.db.Database
-
Executes the sql definition using java.sql.Statement.execute()
- execute(Iterator<T>, String, DatabaseMapping.Binder<T>) - Method in class com.d3x.core.db.DatabaseUpdate
-
Executes this operation over the stream of records
- executeUpdate(String, Object...) - Method in class com.d3x.core.db.Database
-
Performs a SQL executeUpdate() given the parameterized SQL and arguments
- executeUpdate(String, TimeZone, Object...) - Method in class com.d3x.core.db.Database
-
Performs a SQL executeUpdate() given the parameterized SQL and arguments
- executor - Static variable in class com.d3x.core.db.Database
F
- fetchSize - Variable in class com.d3x.core.db.DatabaseConfig.DatabaseConfigBuilder
- fetchSize - Variable in class com.d3x.core.db.DatabaseConfig
-
The default fetch size for statements
- fetchSize - Variable in class com.d3x.core.db.DatabaseOperation
-
The result set fetch size
- fetchSize - Variable in class com.d3x.core.db.DatabaseSelect
- fetchSize(int) - Method in class com.d3x.core.db.DatabaseOperation
-
Sets the statement fetch size for this operation
- fetchSize(int) - Method in class com.d3x.core.db.DatabaseSelect
-
Sets the statement fetch size for this operation
- fetchSize(Option<Integer>) - Method in class com.d3x.core.db.DatabaseConfig.DatabaseConfigBuilder
-
The default fetch size for statements
- first() - Method in class com.d3x.core.db.DatabaseSelect
-
Returns the first object matched by this select
- first(DatabaseMapping.Mapper<T>) - Method in class com.d3x.core.db.DatabaseSelect
-
Returns the first object matched by this select
- forEach(Consumer<T>) - Method in class com.d3x.core.db.DatabaseSelect
-
Iterates over all records that match this query applying each record to the consumer
- fromJson(String) - Static method in class com.d3x.core.db.DatabaseConfig
-
Returns the config loaded from a json file on classpath
- fromJson(URL, Option<Crypto>) - Static method in class com.d3x.core.db.DatabaseConfig
-
Returns database config loaded from a JSON resource
G
- GENERIC - com.d3x.core.db.DatabaseDriver.Type
- getArgs() - Method in class com.d3x.core.db.DatabaseOperation
-
The list of arguments for operation, if any
- getAutoCommit() - Method in class com.d3x.core.db.DatabaseConfig
-
True to mark connection as auto commit
- getConfig() - Method in class com.d3x.core.db.Database
-
Returns the configuration for this database
- getConnection() - Method in class com.d3x.core.db.Database
-
Returns a reference to a database connection from the pool
- getDataSource() - Method in class com.d3x.core.db.Database
-
Returns a reference to the DataSource
- getDb() - Method in class com.d3x.core.db.DatabaseOperation
-
The database this operation is associated with
- getDeleteSql(DatabaseMapping<T>) - Static method in interface com.d3x.core.db.DatabaseMapping
-
Returns the SQL resolved from the DatabaseSql annotation on the delete method
- getDriver() - Method in class com.d3x.core.db.DatabaseConfig
-
The driver definition
- getDriverClassName() - Method in class com.d3x.core.db.DatabaseDriver
-
The driver class name
- getExecutor() - Static method in class com.d3x.core.db.Database
-
Returns the Executor thread pool for Database
- getFetchSize() - Method in class com.d3x.core.db.DatabaseConfig
-
The default fetch size for statements
- getFetchSize() - Method in class com.d3x.core.db.DatabaseOperation
-
The result set fetch size
- getInitialPoolSize() - Method in class com.d3x.core.db.DatabaseConfig
-
The initial size of the connection pool
- getInsertSql(DatabaseMapping<T>) - Static method in interface com.d3x.core.db.DatabaseMapping
-
Returns the SQL resolved from the DatabaseSql annotation on the insert method
- getLimit() - Method in class com.d3x.core.db.DatabaseOperation
-
The max number of rows to include
- getMaxPoolIdleSize() - Method in class com.d3x.core.db.DatabaseConfig
-
The max number of idle connections in pool
- getMaxPoolSize() - Method in class com.d3x.core.db.DatabaseConfig
-
The max size of connection pool
- getMaxWaitTimeMillis() - Method in class com.d3x.core.db.DatabaseConfig
-
The max time to wait for an available connection
- getPassword() - Method in class com.d3x.core.db.DatabaseConfig
-
The JDBC password
- getProperties() - Method in class com.d3x.core.db.DatabaseConfig
-
Returns the map of connection properties
- getQueryTimeOutSeconds() - Method in class com.d3x.core.db.DatabaseConfig
-
The query time out in seconds
- getReadOnly() - Method in class com.d3x.core.db.DatabaseConfig
-
True if connections should be set to read only
- getSelectSql(DatabaseMapping<T>) - Static method in interface com.d3x.core.db.DatabaseMapping
-
Returns the SQL resolved from the DatabaseSql annotation on the select method
- getSql() - Method in class com.d3x.core.db.DatabaseOperation
-
The SQL expression for this operation
- getSql(DatabaseMapping<?>, String) - Static method in interface com.d3x.core.db.DatabaseMapping
-
Returns the SQL resolved from the DatabaseSql annotation on the named method
- getTimeout() - Method in class com.d3x.core.db.DatabaseOperation
-
The SQL operation optional timeout
- getTiming() - Method in class com.d3x.core.db.DatabaseSelect
-
Returns the timing instance for this operation
- getType() - Method in class com.d3x.core.db.DatabaseDriver
-
The database type
- getType() - Method in interface com.d3x.core.repo.Repo
-
Returns the type for this repo
- getUpdateSql(DatabaseMapping<T>) - Static method in interface com.d3x.core.db.DatabaseMapping
-
Returns the SQL resolved from the DatabaseSql annotation on the update method
- getUrl() - Method in class com.d3x.core.db.DatabaseConfig
-
The JDBC connection url
- getUser() - Method in class com.d3x.core.db.DatabaseConfig
-
The JDBC user name
- getValue(String) - Method in class com.d3x.core.db.DatabaseRecord
-
Returns an option on the value with the name
- getValueOrFail(String) - Method in class com.d3x.core.db.DatabaseRecord
-
Returns an option on the value with the name
- getValues() - Method in class com.d3x.core.db.DatabaseRecord
- gson(Option<Crypto>) - Static method in class com.d3x.core.db.DatabaseConfig
-
Returns a GSON adapter that can serialise DatabaseConfig
H
- h2(File, String, String) - Static method in class com.d3x.core.db.DatabaseConfig
-
Returns a new database config for an H2 database
- H2 - com.d3x.core.db.DatabaseDriver.Type
- H2 - Static variable in class com.d3x.core.db.DatabaseDriver
- hashCode() - Method in class com.d3x.core.db.DatabaseConfig
- hashCode() - Method in class com.d3x.core.db.DatabaseDriver
I
- in(Collection<?>) - Static method in interface com.d3x.core.db.DatabaseMapping
-
Returns a command separated list of values for an in clause
- in(Collection<?>, Option<ZoneId>) - Static method in interface com.d3x.core.db.DatabaseMapping
-
Returns a command separated list of values for an in clause
- initialPoolSize - Variable in class com.d3x.core.db.DatabaseConfig.DatabaseConfigBuilder
- initialPoolSize - Variable in class com.d3x.core.db.DatabaseConfig
-
The initial size of the connection pool
- initialPoolSize(Option<Integer>) - Method in class com.d3x.core.db.DatabaseConfig.DatabaseConfigBuilder
-
The initial size of the connection pool
- insert() - Method in class com.d3x.core.db.Database.BasicMapping
- insert() - Method in interface com.d3x.core.db.DatabaseMapping
-
The binder to bind arguments to a PreparedStatement for affecting inserts
- insert() - Method in class com.d3x.core.db.DatabaseRecord.Mapping
- insert(Class<T>) - Method in class com.d3x.core.db.Database
-
Returns a new insert operation for the type specified
- INSERT - com.d3x.core.db.DatabaseUpdate.Type
- isAvailable() - Method in class com.d3x.core.db.DatabaseDriver
-
Returns true if the driver is available on the classpath
- iterator() - Method in class com.d3x.core.db.DatabaseSelect
-
Returns a iterator of objects that match this select
- iterator(DatabaseMapping.Mapper<T>) - Method in class com.d3x.core.db.DatabaseSelect
-
Returns a iterator over the objects that match this select
- iterator(ResultSet, int, DatabaseMapping.Mapper<T>, AutoCloseable...) - Method in class com.d3x.core.db.DatabaseSelect
-
Returns a DatabaseIterator over a database ResultSet
- iterator(ResultSet, DatabaseMapping.Mapper<T>) - Static method in interface com.d3x.core.db.DatabaseMapping
-
Returns an iterator that extracts records from ResultSet using the mapper
L
- limit - Variable in class com.d3x.core.db.DatabaseOperation
-
The max number of rows to include
- limit - Variable in class com.d3x.core.db.DatabaseSelect
- limit(int) - Method in class com.d3x.core.db.DatabaseOperation
-
Sets the max number of records to include in operation
- limit(int) - Method in class com.d3x.core.db.DatabaseSelect
-
Sets the max number of records to include
- list() - Method in class com.d3x.core.db.DatabaseSelect
-
Returns the list of objects that match this select
- list(DatabaseMapping.Mapper<T>) - Method in class com.d3x.core.db.DatabaseSelect
-
Returns the list of objects that match this select
- list(ResultSet, DatabaseMapping.Mapper<T>) - Static method in interface com.d3x.core.db.DatabaseMapping
-
Extracts records from the result set using the mapper and returns them as a list
- loadSql(String) - Static method in class com.d3x.core.db.DatabaseUtils
-
Returns the SQL loaded from a classpath resource if arg starts with "/"
- log - Static variable in class com.d3x.core.db.Database
- log - Static variable in class com.d3x.core.db.DatabaseConfig
- log - Static variable in class com.d3x.core.db.DatabaseUpdate
- log - Static variable in class com.d3x.core.db.DatabaseUtils
- log - Static variable in class com.d3x.core.db.DataSourceAdapter.Apache
M
- map(ResultSet) - Method in interface com.d3x.core.db.DatabaseMapping.Mapper
-
Returns an record created from the current row in the ResultSet
- mapper() - Method in class com.d3x.core.db.DatabaseSelect
-
Returns the default mapper for this select
- mapping(Class<T>) - Method in class com.d3x.core.db.Database
-
Returns the mapping for the type specified
- Mapping() - Constructor for class com.d3x.core.db.DatabaseRecord.Mapping
- mappingsMap - Variable in class com.d3x.core.db.Database
- MARIADB - com.d3x.core.db.DatabaseDriver.Type
- MARIADB - Static variable in class com.d3x.core.db.DatabaseDriver
- maxPoolIdleSize - Variable in class com.d3x.core.db.DatabaseConfig.DatabaseConfigBuilder
- maxPoolIdleSize - Variable in class com.d3x.core.db.DatabaseConfig
-
The max number of idle connections in pool
- maxPoolIdleSize(Option<Integer>) - Method in class com.d3x.core.db.DatabaseConfig.DatabaseConfigBuilder
-
The max number of idle connections in pool
- maxPoolSize - Variable in class com.d3x.core.db.DatabaseConfig.DatabaseConfigBuilder
- maxPoolSize - Variable in class com.d3x.core.db.DatabaseConfig
-
The max size of connection pool
- maxPoolSize(Option<Integer>) - Method in class com.d3x.core.db.DatabaseConfig.DatabaseConfigBuilder
-
The max size of connection pool
- maxWaitTimeMillis - Variable in class com.d3x.core.db.DatabaseConfig.DatabaseConfigBuilder
- maxWaitTimeMillis - Variable in class com.d3x.core.db.DatabaseConfig
-
The max time to wait for an available connection
- maxWaitTimeMillis(Option<Integer>) - Method in class com.d3x.core.db.DatabaseConfig.DatabaseConfigBuilder
-
The max time to wait for an available connection
- MSSQL - com.d3x.core.db.DatabaseDriver.Type
- MSSQL - Static variable in class com.d3x.core.db.DatabaseDriver
- mysql(String, String, Secret) - Static method in class com.d3x.core.db.DatabaseConfig
-
Returns a new config for MySQL with the details provided
- MYSQL - com.d3x.core.db.DatabaseDriver.Type
- MYSQL - Static variable in class com.d3x.core.db.DatabaseDriver
N
- names() - Method in class com.d3x.core.db.DatabaseRecord
-
Returns the set of field names for record
O
- of(DatabaseConfig) - Static method in class com.d3x.core.db.Database
-
Returns a newly created Database instance based on args provided
- of(DatabaseConfig, Consumer<Database>) - Static method in class com.d3x.core.db.Database
-
Returns a newly created Database instance based on args provided
- of(DatabaseDriver, String, String, Secret) - Static method in class com.d3x.core.db.DatabaseConfig
-
Returns a new database config for the args provided
- of(String) - Static method in class com.d3x.core.db.DatabaseDriver
-
Returns the driver for the driver class name provided
- of(Consumer<DatabaseConfig.DatabaseConfigBuilder>) - Static method in class com.d3x.core.db.DatabaseConfig
-
Returns a new database config base on the consumer actions
- of(Consumer<Map<String, Object>>) - Static method in class com.d3x.core.db.DatabaseRecord
-
Returns a newly created record based on what the consumer puts in map
- onStart - Variable in class com.d3x.core.db.Database
- onStart(Consumer<Database>) - Method in class com.d3x.core.db.Database
-
Adds a onStart consumer to be called when the Database starts up
- ORACLE - com.d3x.core.db.DatabaseDriver.Type
- ORACLE - Static variable in class com.d3x.core.db.DatabaseDriver
P
- password - Variable in class com.d3x.core.db.DatabaseConfig.DatabaseConfigBuilder
- password - Variable in class com.d3x.core.db.DatabaseConfig
-
The JDBC password
- password(Option<Secret>) - Method in class com.d3x.core.db.DatabaseConfig.DatabaseConfigBuilder
-
The JDBC password
- POSTGRES - com.d3x.core.db.DatabaseDriver.Type
- POSTGRES - Static variable in class com.d3x.core.db.DatabaseDriver
- properties - Variable in class com.d3x.core.db.DatabaseConfig.DatabaseConfigBuilder
- properties - Variable in class com.d3x.core.db.DatabaseConfig
-
The connection properties
- properties(Map<String, String>) - Method in class com.d3x.core.db.DatabaseConfig.DatabaseConfigBuilder
-
The connection properties
- proxy(Connection) - Method in class com.d3x.core.db.Database
-
Returns a dynamic proxy over a connection to avoid closing to allow for multiple operations on same connection
- put(T) - Method in interface com.d3x.core.repo.Repo
-
Stores a single value into this repo
- putAll(Collection<T>) - Method in interface com.d3x.core.repo.Repo
-
Stores one or more values in this repo
Q
- queryMillis - Variable in class com.d3x.core.db.DatabaseTiming
- queryTimeOutSeconds - Variable in class com.d3x.core.db.DatabaseConfig.DatabaseConfigBuilder
- queryTimeOutSeconds - Variable in class com.d3x.core.db.DatabaseConfig
-
The query time out in seconds
- queryTimeOutSeconds(Option<Integer>) - Method in class com.d3x.core.db.DatabaseConfig.DatabaseConfigBuilder
-
The query time out in seconds
R
- readBoolean(ResultSet, int) - Static method in interface com.d3x.core.db.DatabaseMapping
-
Returns an option on the value read from the ResultSet
- readBoolean(ResultSet, String) - Static method in interface com.d3x.core.db.DatabaseMapping
-
Returns an option on the value read from the ResultSet
- readDate(ResultSet, int) - Static method in interface com.d3x.core.db.DatabaseMapping
-
Returns an option on the value read from the ResultSet
- readDate(ResultSet, int, Calendar) - Static method in interface com.d3x.core.db.DatabaseMapping
-
Returns an option on the value read from the ResultSet
- readDate(ResultSet, String) - Static method in interface com.d3x.core.db.DatabaseMapping
-
Returns an option on the value read from the ResultSet
- readDate(ResultSet, String, Calendar) - Static method in interface com.d3x.core.db.DatabaseMapping
-
Returns an option on the value read from the ResultSet
- readDouble(ResultSet, int) - Static method in interface com.d3x.core.db.DatabaseMapping
-
Returns an option on the value read from the ResultSet
- readDouble(ResultSet, String) - Static method in interface com.d3x.core.db.DatabaseMapping
-
Returns an option on the value read from the ResultSet
- readFloat(ResultSet, int) - Static method in interface com.d3x.core.db.DatabaseMapping
-
Returns an option on the value read from the ResultSet
- readFloat(ResultSet, String) - Static method in interface com.d3x.core.db.DatabaseMapping
-
Returns an option on the value read from the ResultSet
- readInt(ResultSet, int) - Static method in interface com.d3x.core.db.DatabaseMapping
-
Returns an option on the value read from the ResultSet
- readInt(ResultSet, String) - Static method in interface com.d3x.core.db.DatabaseMapping
-
Returns an option on the value read from the ResultSet
- readLocalDate(ResultSet, int) - Static method in interface com.d3x.core.db.DatabaseMapping
-
Returns an option on the value read from the ResultSet
- readLocalDate(ResultSet, String) - Static method in interface com.d3x.core.db.DatabaseMapping
-
Returns an option on the value read from the ResultSet
- readLocalDateTime(ResultSet, int) - Static method in interface com.d3x.core.db.DatabaseMapping
-
Returns an option on the value read from the ResultSet
- readLocalDateTime(ResultSet, String) - Static method in interface com.d3x.core.db.DatabaseMapping
-
Returns an option on the value read from the ResultSet
- readLong(ResultSet, int) - Static method in interface com.d3x.core.db.DatabaseMapping
-
Returns an option on the value read from the ResultSet
- readLong(ResultSet, String) - Static method in interface com.d3x.core.db.DatabaseMapping
-
Returns an option on the value read from the ResultSet
- readOnly - Variable in class com.d3x.core.db.DatabaseConfig.DatabaseConfigBuilder
- readOnly - Variable in class com.d3x.core.db.DatabaseConfig
-
True if connections should be set to read only
- readOnly(Option<Boolean>) - Method in class com.d3x.core.db.DatabaseConfig.DatabaseConfigBuilder
-
True if connections should be set to read only
- readShort(ResultSet, int) - Static method in interface com.d3x.core.db.DatabaseMapping
-
Returns an option on the value read from the ResultSet
- readShort(ResultSet, String) - Static method in interface com.d3x.core.db.DatabaseMapping
-
Returns an option on the value read from the ResultSet
- readString(ResultSet, int) - Static method in interface com.d3x.core.db.DatabaseMapping
-
Returns an option on the value read from the ResultSet
- readString(ResultSet, String) - Static method in interface com.d3x.core.db.DatabaseMapping
-
Returns an option on the value read from the ResultSet
- readTime(ResultSet, int) - Static method in interface com.d3x.core.db.DatabaseMapping
-
Returns an option on the value read from the ResultSet
- readTime(ResultSet, int, Calendar) - Static method in interface com.d3x.core.db.DatabaseMapping
-
Returns an option on the value read from the ResultSet
- readTime(ResultSet, String) - Static method in interface com.d3x.core.db.DatabaseMapping
-
Returns an option on the value read from the ResultSet
- readTime(ResultSet, String, Calendar) - Static method in interface com.d3x.core.db.DatabaseMapping
-
Returns an option on the value read from the ResultSet
- readTimestamp(ResultSet, int) - Static method in interface com.d3x.core.db.DatabaseMapping
-
Returns an option on the value read from the ResultSet
- readTimestamp(ResultSet, int, Calendar) - Static method in interface com.d3x.core.db.DatabaseMapping
-
Returns an option on the value read from the ResultSet
- readTimestamp(ResultSet, String) - Static method in interface com.d3x.core.db.DatabaseMapping
-
Returns an option on the value read from the ResultSet
- readTimestamp(ResultSet, String, Calendar) - Static method in interface com.d3x.core.db.DatabaseMapping
-
Returns an option on the value read from the ResultSet
- register(DatabaseMapping<T>) - Method in class com.d3x.core.db.Database
-
Registers a database mapping for a data type
- registerIfAbsent(Repo<T>) - Method in class com.d3x.core.repo.RepoMaster
-
Registers a repo if one is not already registered
- remove(T) - Method in interface com.d3x.core.repo.Repo
-
Removes a single value from this repo
- removeAll(Collection<T>) - Method in interface com.d3x.core.repo.Repo
-
Removes one or more values from this repo
- repo(Class<T>) - Method in class com.d3x.core.repo.RepoMaster
-
Returns the repo for the type specified
- Repo<T> - Interface in com.d3x.core.repo
-
An interface to a repository of objects that supports CRUD and query operations
- repoMap - Variable in class com.d3x.core.repo.RepoMaster
- RepoMaster - Class in com.d3x.core.repo
- RepoMaster(Collection<Repo<?>>) - Constructor for class com.d3x.core.repo.RepoMaster
-
Constructor
- RepoRequest - Class in com.d3x.core.repo
- RepoRequest() - Constructor for class com.d3x.core.repo.RepoRequest
- reset() - Method in class com.d3x.core.db.DatabaseTiming
-
Resets this timing entity
- resolveBinder() - Method in class com.d3x.core.db.DatabaseUpdate
-
Returns the binder for this update
- resolveSql() - Method in class com.d3x.core.db.DatabaseSelect
-
Returns the SQL expression for this select
- resolveSql() - Method in class com.d3x.core.db.DatabaseUpdate
-
Returns the SQL for this update
- resultSetMillis - Variable in class com.d3x.core.db.DatabaseTiming
S
- schema - Static variable in class com.d3x.core.db.DatabaseConfig
- select() - Method in class com.d3x.core.db.Database.BasicMapping
- select() - Method in interface com.d3x.core.db.DatabaseMapping
-
The mapper to map a row in a result set to some object
- select() - Method in class com.d3x.core.db.DatabaseRecord.Mapping
- select(Class<T>) - Method in class com.d3x.core.db.Database
-
Returns a new select operation for the type specified
- select(R) - Method in interface com.d3x.core.repo.Repo
-
Returns a list of objects for the request
- serialize(DatabaseConfig, Type, JsonSerializationContext) - Method in class com.d3x.core.db.DatabaseConfig.Serializer
- Serializer() - Constructor for class com.d3x.core.db.DatabaseConfig.Serializer
- set() - Method in class com.d3x.core.db.DatabaseSelect
-
Returns the set of objects that match this select
- set(ResultSet, DatabaseMapping.Mapper<T>) - Static method in interface com.d3x.core.db.DatabaseMapping
-
Extracts records from the result set using the mapper and returns them as a set
- setDataSourceAdapter(DataSourceAdapter) - Static method in class com.d3x.core.db.Database
-
Sets the data source adapter used to create DataSource objects
- setExecutor(ExecutorService) - Static method in class com.d3x.core.db.Database
-
Sets the default executor for running async database operations
- size() - Method in class com.d3x.core.db.DatabaseRecord
-
Returns the number of entries for this record
- sql - Variable in class com.d3x.core.db.DatabaseOperation
-
The SQL expression for this operation
- sql - Variable in class com.d3x.core.db.DatabaseSelect
- sql - Variable in class com.d3x.core.db.DatabaseUpdate
- sql(String) - Method in class com.d3x.core.db.DatabaseOperation
-
Binds a custom SQL statement to this operation
- sql(String) - Method in class com.d3x.core.db.DatabaseSelect
-
Binds a custom SQL statement to this select
- sql(String) - Method in class com.d3x.core.db.DatabaseUpdate
-
Applies a custom SQL expression to this update
- sqlMap - Static variable in class com.d3x.core.db.DatabaseUtils
- sqlType - Variable in class com.d3x.core.db.Database.BasicMapping
- submit(Callable<R>) - Method in class com.d3x.core.db.Database
-
Submits the Callable to the Database assigned ExecutorService
- supports(Class<?>) - Method in class com.d3x.core.db.Database
-
Returns true if a mapping for the type exists
- SYBASE - com.d3x.core.db.DatabaseDriver.Type
- SYBASE - Static variable in class com.d3x.core.db.DatabaseDriver
T
- tableExists(String) - Method in class com.d3x.core.db.Database
-
Returns true if the specified table exists
- timeConnect(Callable<T>) - Method in class com.d3x.core.db.DatabaseTiming
-
Times a callable and tags the resulting time as connect time
- timeout - Variable in class com.d3x.core.db.DatabaseOperation
-
The SQL operation optional timeout
- timeout - Variable in class com.d3x.core.db.DatabaseSelect
- timeout(Duration) - Method in class com.d3x.core.db.DatabaseOperation
-
Sets the timeout for this operation
- timeout(Duration) - Method in class com.d3x.core.db.DatabaseSelect
-
Sets the query timeout for this select
- timeQuery(Callable<T>) - Method in class com.d3x.core.db.DatabaseTiming
-
Times a callable and tags the resulting time as query time
- timeResultSet(Callable<T>) - Method in class com.d3x.core.db.DatabaseTiming
-
Times a callable and tags the resulting time as result set time
- timing - Variable in class com.d3x.core.db.DatabaseSelect
- toBuilder() - Method in class com.d3x.core.db.DatabaseConfig
- toIterator(ResultSet) - Method in interface com.d3x.core.db.DatabaseMapping
-
Returns an iterator over the records generated by the ResultSet
- toJson(Option<Crypto>, OutputStream) - Method in class com.d3x.core.db.DatabaseConfig
-
Writes this config as JSON to the output stream provided
- toList() - Method in interface com.d3x.core.db.DatabaseIterator
-
Extracts all values from this iterator into a list
- toList(ResultSet) - Method in interface com.d3x.core.db.DatabaseMapping
-
Extracts all data from result set into a list using this mapping
- toSet() - Method in interface com.d3x.core.db.DatabaseIterator
-
Extracts all values from this iterator into a set
- toSet(ResultSet) - Method in interface com.d3x.core.db.DatabaseMapping
-
Extracts all data from result set into a list using this mapping
- toString() - Method in class com.d3x.core.db.DatabaseConfig.DatabaseConfigBuilder
- toString() - Method in class com.d3x.core.db.DatabaseConfig
- toString() - Method in class com.d3x.core.db.DatabaseDriver
- toString() - Method in class com.d3x.core.db.DatabaseTiming
- type - Variable in class com.d3x.core.db.DatabaseDriver
-
The database type
- type - Variable in class com.d3x.core.db.DatabaseSelect
- type - Variable in class com.d3x.core.db.DatabaseUpdate
- type() - Method in class com.d3x.core.db.Database.BasicMapping
- type() - Method in interface com.d3x.core.db.DatabaseMapping
-
Returns the data type for this mapping
- type() - Method in class com.d3x.core.db.DatabaseRecord.Mapping
- Type() - Constructor for enum com.d3x.core.db.DatabaseDriver.Type
- Type() - Constructor for enum com.d3x.core.db.DatabaseUpdate.Type
U
- update() - Method in interface com.d3x.core.db.DatabaseMapping
-
The binder to bind arguments to a PreparedStatement for affecting updates
- update(Class<T>) - Method in class com.d3x.core.db.Database
-
Returns a new update operation for the type specified
- UPDATE - com.d3x.core.db.DatabaseUpdate.Type
- url - Variable in class com.d3x.core.db.DatabaseConfig.DatabaseConfigBuilder
- url - Variable in class com.d3x.core.db.DatabaseConfig
-
The JDBC connection url
- url(String) - Method in class com.d3x.core.db.DatabaseConfig.DatabaseConfigBuilder
-
The JDBC connection url
- user - Variable in class com.d3x.core.db.DatabaseConfig.DatabaseConfigBuilder
- user - Variable in class com.d3x.core.db.DatabaseConfig
-
The JDBC user name
- user(Option<String>) - Method in class com.d3x.core.db.DatabaseConfig.DatabaseConfigBuilder
-
The JDBC user name
V
- value() - Method in annotation type com.d3x.core.db.DatabaseSql
-
Returns the SQL expression for this annotation
- valueOf(String) - Static method in enum com.d3x.core.db.DatabaseDriver.Type
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.d3x.core.db.DatabaseUpdate.Type
-
Returns the enum constant of this type with the specified name.
- values - Variable in class com.d3x.core.db.DatabaseRecord
- values() - Static method in enum com.d3x.core.db.DatabaseDriver.Type
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Method in class com.d3x.core.db.DatabaseRecord
-
Returns the field values for this record
- values() - Static method in enum com.d3x.core.db.DatabaseUpdate.Type
-
Returns an array containing the constants of this enum type, in the order they are declared.
- verbose - Variable in class com.d3x.core.db.DatabaseUpdate
- verbose(boolean) - Method in class com.d3x.core.db.DatabaseUpdate
-
Turns verbose logging on/off for this operation
- verify() - Method in class com.d3x.core.db.DatabaseConfig
-
Attempts to connect to the database given this config to assess if it is valid
W
- withConnection(Database.ConnectionHandler<R>) - Method in class com.d3x.core.db.Database
-
Freestyle function to execute some logic against a database using the connection directly
- withTransaction(Database.ConnectionHandler<R>) - Method in class com.d3x.core.db.Database
-
Freestyle function to execute some logic against a database within a transaction
All Classes All Packages