Uses of Class
com.blackrook.sql.SQLResult
-
Uses of SQLResult in com.blackrook.sql
Modifier and TypeMethodDescriptionstatic SQLResult
SQL.callStatement
(PreparedStatement statement, boolean update, Object... parameters) Performs a query on a connection and extracts the data into a SQLResult object.static SQLResult
SQL.getResult
(Connection connection, String query, Object... parameters) Performs a query on a connection and extracts the data into a SQLResult.Performs a query that returns rows and extracts them into a result.static SQLResult[]
SQL.getUpdateBatchResult
(Connection connection, String query, Object[][] parameterList) Performs an update query (INSERT, DELETE, UPDATE, or other commands that do not return rows) and extracts each set of result data into a SQLResult.static SQLResult[]
SQL.getUpdateBatchResult
(Connection connection, String query, Collection<Object[]> parameterList) Performs an update query (INSERT, DELETE, UPDATE, or other commands that do not return rows) and extracts each set of result data into a SQLResult.default SQLResult[]
SQLCallable.getUpdateBatchResult
(String query, Object[][] parameterList) Performs an update query (INSERT, DELETE, UPDATE, or other commands that do not return rows) and extracts each set of result data into a SQLResult.SQLCallable.getUpdateBatchResult
(String query, Collection<Object[]> parameterList) Performs an update query (INSERT, DELETE, UPDATE, or other commands that do not return rows) and extracts each set of result data into a SQLResult.SQLConnection.getUpdateBatchResult
(String query, Collection<Object[]> parameterList) SQLConnection.Transaction.getUpdateBatchResult
(String query, Collection<Object[]> parameterList) static SQLResult
SQL.getUpdateResult
(Connection connection, String query, Object... parameters) Performs an update query (INSERT, DELETE, UPDATE, or other commands that do not return rows) on a connection and extracts the data/affected data/generated data into a SQLResult.SQLCallable.getUpdateResult
(String query, Object... parameters) Performs an update query (INSERT, DELETE, UPDATE, or other commands that do not return rows) and extracts the data/affected data/generated data into a SQLResult.SQLConnection.getUpdateResult
(String query, Object... parameters) SQLConnection.Transaction.getUpdateResult
(String query, Object... parameters) Modifier and TypeMethodDescriptionprotected 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.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.