Contains classes relevant to querying SQL databases.
-
protected <R> R
Gets a connection and performs a function on it, returning the result.
<R> R
Creates a connection, passes it to the provided
SQLConnectionFunction
,
calls it, closes it, and returns the result.
<R> R
Retrieves a connection from this pool, passes it to the provided
SQLConnectionFunction
,
calls it, returns it to the pool, and returns the result.
<R> R
Retrieves a connection from this pool, passes it to the provided
SQLConnectionFunction
,
calls it, returns it to the pool, and returns the result.
Gets a connection and performs a function on it, and if the affected row count is 1, return the id.
Gets a connection and performs a function on it, and returns the generated ids.
protected int
Gets a connection and performs a function on it, returning the altered row count.
protected boolean
Gets a connection and performs a function on it, and if the affected row count is 1, return true.
protected <R> R
Lifts a single value from a queried
SQLRow
and returns it, returning null if the row is null.
Lifts a map of values from a queried
SQLResult
and returns it as an immutable map of case-insensitive string key to value.
Lifts a list of single values from a queried
SQLResult
and returns it as an immutable list.
protected <K,
V> Map<K,V>
Lifts a map of values from a queried
SQLResult
and returns it as an immutable map of key to value.
Lifts a list of single values from a queried
SQLResult
and returns it as an immutable set of unique values.
Lifts a sorted map of values from a queried
SQLResult
and returns it as an immutable map of key to value.
Lifts a list of single values from a queried
SQLResult
and returns it as an immutable sorted set of unique values.