Interface CollectionIO
- All Known Implementing Classes:
ACLCollectionIO
,ScalarCollectionIO
public interface CollectionIO
Interface for a class that knows how to get a collection's value from a result set, and set a collection's values to
a prepared statement (and execute it).
-
Method Summary
Modifier and TypeMethodDescriptionvoid
executeInserts
(PreparedStatement ps, List<RowMapper.RowUpdate> rowus, List<Column> columns, boolean supportsBatchUpdates, String sql, JDBCConnection connection) Sets the values of a fragment to a SQL prepared statement, and executes the statement for each value.getCurrentFromResultSet
(ResultSet rs, List<Column> columns, Model model, Serializable[] returnId, int[] returnPos) Gets one value from the current position of the result set.
-
Method Details
-
getCurrentFromResultSet
Serializable getCurrentFromResultSet(ResultSet rs, List<Column> columns, Model model, Serializable[] returnId, int[] returnPos) throws SQLException Gets one value from the current position of the result set.- Throws:
SQLException
-
executeInserts
void executeInserts(PreparedStatement ps, List<RowMapper.RowUpdate> rowus, List<Column> columns, boolean supportsBatchUpdates, String sql, JDBCConnection connection) throws SQLException Sets the values of a fragment to a SQL prepared statement, and executes the statement for each value. Uses batching if possible.- Throws:
SQLException
-