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> R
SQLAbstractDAO.call
(SQLConnectionFunction<R> handler) Gets a connection and performs a function on it, returning the result.<R> R
SQLConnector.getConnectionAnd
(SQLConnectionFunction<R> handler) Creates a connection, passes it to the providedSQLConnectionFunction
, calls it, closes it, and returns the result.<R> R
SQLPool.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> R
SQLPool.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 Object
SQLAbstractDAO.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 int
SQLAbstractDAO.rowCount
(SQLConnectionFunction<SQLResult> handler) Gets a connection and performs a function on it, returning the altered row count.protected boolean
SQLAbstractDAO.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> R
SQLAbstractDAO.value
(SQLConnectionFunction<SQLRow> handler, Function<SQLRow, R> extractor) Lifts a single value from a queriedSQLRow
and 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 queriedSQLResult
and 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 queriedSQLResult
and 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 queriedSQLResult
and 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 queriedSQLResult
and 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 queriedSQLResult
and 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 queriedSQLResult
and returns it as an immutable sorted set of unique values.