A C D E F G H M N O P R S T U 

A

accept(T, U) - Method in interface com.github.nwillc.funjdbc.functions.ThrowingBiConsumer
The default accept allowing assignment as a normal BiConsumer.
acceptThrows(B, ResultSet) - Method in interface com.github.nwillc.funjdbc.functions.Enricher
 
acceptThrows(T, U) - Method in interface com.github.nwillc.funjdbc.functions.ThrowingBiConsumer
A method that accepts two arguments and allows for an Exception to be throws.
add(Migration...) - Method in class com.github.nwillc.funjdbc.migrate.Manager
Add Migrations to the set..
add(Class<? extends Migration>) - Method in class com.github.nwillc.funjdbc.migrate.Manager
Add a Migration to the set.
add(BiConsumer<B, T>, ThrowingBiFunction<ResultSet, Integer, T>, Integer) - Method in class com.github.nwillc.funjdbc.utils.EFactory
Add an extraction used by the Extractor.
add(BiConsumer<B, T>, ThrowingBiFunction<ResultSet, String, T>, String) - Method in class com.github.nwillc.funjdbc.utils.EFactory
Add an extraction used by the Extractor.
andThen(Enricher<B>) - Method in interface com.github.nwillc.funjdbc.functions.Enricher
Chains another enricher to this one to be called upon completion.
apply(T, U) - Method in interface com.github.nwillc.funjdbc.functions.ThrowingBiFunction
 
applyThrows(T, U) - Method in interface com.github.nwillc.funjdbc.functions.ThrowingBiFunction
 

C

clear() - Method in class com.github.nwillc.funjdbc.migrate.Manager
Clear the set of migrations.
close() - Method in class com.github.nwillc.funjdbc.ResultSetIterator
 
close(AutoCloseable) - Static method in class com.github.nwillc.funjdbc.utils.Closer
Close an AutoCloseable without exception.
Closer - Class in com.github.nwillc.funjdbc.utils
Utility class for closing an AutoCloseable without throwing an Exceptions.
com.github.nwillc.funjdbc - package com.github.nwillc.funjdbc
Java JDBC utility code employing JDK 8+ features (streams, lambdas, unchecked exceptions, etc) to reduce JDBC boilerplate code.
com.github.nwillc.funjdbc.functions - package com.github.nwillc.funjdbc.functions
Functional interface definitions.
com.github.nwillc.funjdbc.migrate - package com.github.nwillc.funjdbc.migrate
Basic support for performing scheme migrations.
com.github.nwillc.funjdbc.utils - package com.github.nwillc.funjdbc.utils
Utility classes to support java functional features in JDBC.
compare(Migration, Migration) - Method in class com.github.nwillc.funjdbc.migrate.Manager.MigrationComparator
 
completed() - Method in interface com.github.nwillc.funjdbc.migrate.Migration
Has this migration been successfully completed.
completed() - Method in class com.github.nwillc.funjdbc.migrate.MigrationBase
 
ConnectionProvider - Interface in com.github.nwillc.funjdbc.functions
An interface to indicate that an object can provide JDBC connections.

D

DbAccessor - Interface in com.github.nwillc.funjdbc
Interface, with default methods providing JDBC database access functionality.
dbEnrich(Map<K, V>, Extractor<K>, Enricher<V>, SqlStatement) - Method in interface com.github.nwillc.funjdbc.DbAccessor
Given a map of entities, and a query that extracts details about them, then execute that query and enrich the entities with the results.
dbExecute(SqlStatement) - Method in interface com.github.nwillc.funjdbc.DbAccessor
Execute a SQL statement.
dbFind(Extractor<T>, SqlStatement) - Method in interface com.github.nwillc.funjdbc.DbAccessor
Extract the result from a SQL query which returns at most one result.
dbInsertAutoIncrement(SqlStatement) - Method in interface com.github.nwillc.funjdbc.DbAccessor
Execute an insert into a table with an auto incremented key, returning a stream of the keys.
dbQuery(Extractor<T>, SqlStatement) - Method in interface com.github.nwillc.funjdbc.DbAccessor
Extract results from a SQL query designed to return multiple results.
dbUpdate(SqlStatement) - Method in interface com.github.nwillc.funjdbc.DbAccessor
Execute a SQL update or delete.
doMigrations() - Method in class com.github.nwillc.funjdbc.migrate.Manager
Do migrations as needed.

E

EFactory<B> - Class in com.github.nwillc.funjdbc.utils
Create a basic Enricher or Extractor from a series of setter/getter/index tuples.
EFactory() - Constructor for class com.github.nwillc.funjdbc.utils.EFactory
 
enableMigrations() - Method in class com.github.nwillc.funjdbc.migrate.Manager
Enable migration management in the database.
Enricher<B> - Interface in com.github.nwillc.funjdbc.functions
Enrich an object with values from the current row of a result set.
extract(ResultSet) - Method in interface com.github.nwillc.funjdbc.functions.Extractor
Extract type T from the current position in the ResultSet.
Extractor<T> - Interface in com.github.nwillc.funjdbc.functions
A functional interface designed to extract a given type from a single row of a ResultSet.

F

factory(Supplier<B>) - Method in class com.github.nwillc.funjdbc.utils.EFactory
Provide a factor this Extractor will use to create the object it will extract data from the result set into.

G

getConnection() - Method in interface com.github.nwillc.funjdbc.functions.ConnectionProvider
Get a JDBC database connection.
getConnection() - Method in class com.github.nwillc.funjdbc.migrate.Manager
 
getConnection() - Method in class com.github.nwillc.funjdbc.migrate.MigrationBase
 
getConnectionProvider() - Method in class com.github.nwillc.funjdbc.migrate.Manager
Gets connection provider.
getDescription() - Method in interface com.github.nwillc.funjdbc.migrate.Migration
Gets the migration description.
getEnricher() - Method in class com.github.nwillc.funjdbc.utils.EFactory
Get the Enricher that results from the added setter, getter, pairings add.
getErrorCode() - Method in exception com.github.nwillc.funjdbc.UncheckedSQLException
If the underlying cause provides an error code, provides it.
getExtractor() - Method in class com.github.nwillc.funjdbc.utils.EFactory
Create the Extractor based on the factory and extractions added.
getIdentifier() - Method in interface com.github.nwillc.funjdbc.migrate.Migration
Gets the migration identifier.
getInstance() - Static method in class com.github.nwillc.funjdbc.migrate.Manager
Gets the singleton instance.
getMigrations() - Method in class com.github.nwillc.funjdbc.migrate.Manager
Gets the set of Migrations.
getSqlState() - Method in exception com.github.nwillc.funjdbc.UncheckedSQLException
If underlying cause provides a SQL state, provide it.

H

hasNext() - Method in class com.github.nwillc.funjdbc.ResultSetIterator
 

M

Manager - Class in com.github.nwillc.funjdbc.migrate
The migration Manager.
Manager.MigrationComparator - Class in com.github.nwillc.funjdbc.migrate
 
migrated(String) - Method in class com.github.nwillc.funjdbc.migrate.Manager
Check if a migration has been performed.
Migration - Interface in com.github.nwillc.funjdbc.migrate
The interface for Migrations.
MigrationBase - Class in com.github.nwillc.funjdbc.migrate
A basic Migration base class.
MigrationBase() - Constructor for class com.github.nwillc.funjdbc.migrate.MigrationBase
 
MigrationComparator() - Constructor for class com.github.nwillc.funjdbc.migrate.Manager.MigrationComparator
 
migrationsEnabled() - Method in class com.github.nwillc.funjdbc.migrate.Manager
Is migration management enabled in the database.

N

next() - Method in class com.github.nwillc.funjdbc.ResultSetIterator
 

O

onClose(Runnable) - Method in class com.github.nwillc.funjdbc.ResultSetIterator
Add a Runnable to be invoked when this instance is closed.

P

perform() - Method in interface com.github.nwillc.funjdbc.migrate.Migration
Perform this migration.
propagate(Exception) - Static method in class com.github.nwillc.funjdbc.utils.Throwables
Propagate a Throwable as a RuntimeException.

R

ResultSetIterator<T> - Class in com.github.nwillc.funjdbc
This is an Iterator that traverses a ResultSet returning elements via an Extractor.
ResultSetIterator(ResultSet, Extractor<T>) - Constructor for class com.github.nwillc.funjdbc.ResultSetIterator
Create an instance with with a ResultSet to iterate over, and an Extractor to apply to each row.
runAlways() - Method in interface com.github.nwillc.funjdbc.migrate.Migration
Run this migration every time the Manager does migrations, even if previously performed.
runAlways() - Method in class com.github.nwillc.funjdbc.migrate.MigrationBase
 

S

setArgs(Object...) - Method in class com.github.nwillc.funjdbc.SqlStatement
 
setConnectionProvider(ConnectionProvider) - Method in class com.github.nwillc.funjdbc.migrate.Manager
Sets connection provider.
sql(String, Object...) - Static method in class com.github.nwillc.funjdbc.SqlStatement
 
SqlStatement - Class in com.github.nwillc.funjdbc
A SQL statement comprised of a template SQL string, which is a Formatter string, and the arguments to pass to it.
SqlStatement(String, Object...) - Constructor for class com.github.nwillc.funjdbc.SqlStatement
 
stream(Extractor<T>, ResultSet) - Method in interface com.github.nwillc.funjdbc.DbAccessor
Given an Extractor and ResultSet return a Stream of results.

T

Throwables - Class in com.github.nwillc.funjdbc.utils
Utility methods for throwables.
ThrowingBiConsumer<T,U> - Interface in com.github.nwillc.funjdbc.functions
A BiConsumer that allows for Exceptions which will be converted to appropriate RuntimeExceptions.
ThrowingBiFunction<T,U,R> - Interface in com.github.nwillc.funjdbc.functions
A BiFunction that allows for exceptions, rethrowing them as an appropriate type of RuntimeException.
toString() - Method in class com.github.nwillc.funjdbc.migrate.MigrationBase
 
toString() - Method in class com.github.nwillc.funjdbc.SqlStatement
 

U

UncheckedSQLException - Exception in com.github.nwillc.funjdbc
An unchecked version of SQLException.
UncheckedSQLException(String, Throwable) - Constructor for exception com.github.nwillc.funjdbc.UncheckedSQLException
 
UncheckedSQLException(Throwable) - Constructor for exception com.github.nwillc.funjdbc.UncheckedSQLException
 
A C D E F G H M N O P R S T U 
Skip navigation links