Class ACLCollectionIO
- java.lang.Object
-
- org.nuxeo.ecm.core.storage.sql.jdbc.ACLCollectionIO
-
- All Implemented Interfaces:
CollectionIO
public class ACLCollectionIO extends Object implements CollectionIO
Collection IO for arrays of ACLs.
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
insertAll
Whether we always write all the row elements in a RowUpdate or just the values starting from pos.
-
Constructor Summary
Constructors Constructor Description ACLCollectionIO(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.ACLRow
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 write all the row elements in a RowUpdate or just the values starting from pos.
-
-
Constructor Detail
-
ACLCollectionIO
public ACLCollectionIO(boolean insertAll)
-
-
Method Detail
-
getCurrentFromResultSet
public ACLRow 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
-
-