Class ScalarCollectionIO
- java.lang.Object
-
- org.nuxeo.ecm.core.storage.sql.jdbc.ScalarCollectionIO
-
- All Implemented Interfaces:
CollectionIO
public class ScalarCollectionIO extends Object implements CollectionIO
Collection IO for arrays of scalar values.
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
insertAll
Whether we always insert all the rows in the row update or just the values starting from pos.
-
Constructor Summary
Constructors Constructor Description ScalarCollectionIO(boolean insertAll)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
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.Serializable
getCurrentFromResultSet(ResultSet rs, List<Column> columns, Model model, Serializable[] returnId, int[] returnPos)
Gets one value from the current position of the result set.
-
-
-
Field Detail
-
insertAll
protected final boolean insertAll
Whether we always insert all the rows in the row update or just the values starting from pos.
-
-
Constructor Detail
-
ScalarCollectionIO
public ScalarCollectionIO(boolean insertAll)
-
-
Method Detail
-
getCurrentFromResultSet
public Serializable getCurrentFromResultSet(ResultSet rs, List<Column> columns, Model model, Serializable[] returnId, int[] returnPos) throws SQLException
Description copied from interface:CollectionIO
Gets one value from the current position of the result set.- Specified by:
getCurrentFromResultSet
in interfaceCollectionIO
- Throws:
SQLException
-
executeInserts
public void executeInserts(PreparedStatement ps, List<RowMapper.RowUpdate> rowus, List<Column> columns, boolean supportsBatchUpdates, String sql, JDBCConnection connection) throws SQLException
Description copied from interface:CollectionIO
Sets the values of a fragment to a SQL prepared statement, and executes the statement for each value. Uses batching if possible.- Specified by:
executeInserts
in interfaceCollectionIO
- Throws:
SQLException
-
-