Uses of Interface
com.blackrook.sql.util.SQLConnectionFunction
Packages that use SQLConnectionFunction
-
Uses of SQLConnectionFunction in com.blackrook.sql
Methods in com.blackrook.sql with parameters of type SQLConnectionFunctionModifier and TypeMethodDescriptionprotected <R> RSQLAbstractDAO.call(SQLConnectionFunction<R> handler) Gets a connection and performs a function on it, returning the result.<R> RSQLConnector.getConnectionAnd(SQLConnectionFunction<R> handler) Creates a connection, passes it to the providedSQLConnectionFunction, calls it, closes it, and returns the result.<R> RSQLPool.getConnectionAnd(long waitMillis, SQLConnectionFunction<R> handler) Retrieves a connection from this pool, passes it to the providedSQLConnectionFunction, calls it, returns it to the pool, and returns the result.<R> RSQLPool.getConnectionAnd(SQLConnectionFunction<R> handler) Retrieves a connection from this pool, passes it to the providedSQLConnectionFunction, calls it, returns it to the pool, and returns the result.protected ObjectSQLAbstractDAO.id(SQLConnectionFunction<SQLResult> handler) Gets a connection and performs a function on it, and if the affected row count is 1, return the id.protected Object[]SQLAbstractDAO.ids(SQLConnectionFunction<SQLResult> handler) Gets a connection and performs a function on it, and returns the generated ids.protected intSQLAbstractDAO.rowCount(SQLConnectionFunction<SQLResult> handler) Gets a connection and performs a function on it, returning the altered row count.protected booleanSQLAbstractDAO.updated(SQLConnectionFunction<SQLResult> handler) Gets a connection and performs a function on it, and if the affected row count is 1, return true.protected <R> RSQLAbstractDAO.value(SQLConnectionFunction<SQLRow> handler, Function<SQLRow, R> extractor) Lifts a single value from a queriedSQLRowand returns it, returning null if the row is null.SQLAbstractDAO.valueCaseInsenstiveMap(SQLConnectionFunction<SQLResult> handler, BiConsumer<SQLRow, SortedMap<String, V>> extractor) Lifts a map of values from a queriedSQLResultand returns it as an immutable map of case-insensitive string key to value.protected <R> List<R>SQLAbstractDAO.valueList(SQLConnectionFunction<SQLResult> handler, Function<SQLRow, R> extractor) Lifts a list of single values from a queriedSQLResultand returns it as an immutable list.protected <K,V> Map<K, V> SQLAbstractDAO.valueMap(SQLConnectionFunction<SQLResult> handler, BiConsumer<SQLRow, Map<K, V>> extractor) Lifts a map of values from a queriedSQLResultand returns it as an immutable map of key to value.protected <R> Set<R>SQLAbstractDAO.valueSet(SQLConnectionFunction<SQLResult> handler, Function<SQLRow, R> extractor) Lifts a list of single values from a queriedSQLResultand returns it as an immutable set of unique values.protected <K,V> SortedMap<K, V> SQLAbstractDAO.valueSortedMap(SQLConnectionFunction<SQLResult> handler, BiConsumer<SQLRow, SortedMap<K, V>> extractor) Lifts a sorted map of values from a queriedSQLResultand returns it as an immutable map of key to value.protected <R> SortedSet<R>SQLAbstractDAO.valueSortedSet(SQLConnectionFunction<SQLResult> handler, Function<SQLRow, R> extractor) Lifts a list of single values from a queriedSQLResultand returns it as an immutable sorted set of unique values.