Uses of Class
com.blackrook.sql.SQLResult
Packages that use SQLResult
-
Uses of SQLResult in com.blackrook.sql
Methods in com.blackrook.sql that return SQLResultModifier and TypeMethodDescriptionstatic SQLResultSQL.callStatement(PreparedStatement statement, boolean update, Object... parameters) Performs a query on a connection and extracts the data into a SQLResult object.static SQLResultSQL.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 SQLResultSQL.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) Method parameters in com.blackrook.sql with type arguments of type SQLResultModifier and TypeMethodDescriptionprotected 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.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.