public class ScalarCollectionIO extends Object implements CollectionIO
Modifier and Type | Field and Description |
---|---|
protected boolean |
insertAll
Whether we always insert all the rows in the row update or just the values starting from pos.
|
Constructor and Description |
---|
ScalarCollectionIO(boolean insertAll) |
Modifier and Type | Method and 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.
|
protected final boolean insertAll
public ScalarCollectionIO(boolean insertAll)
public Serializable getCurrentFromResultSet(ResultSet rs, List<Column> columns, Model model, Serializable[] returnId, int[] returnPos) throws SQLException
CollectionIO
getCurrentFromResultSet
in interface CollectionIO
SQLException
public void executeInserts(PreparedStatement ps, List<RowMapper.RowUpdate> rowus, List<Column> columns, boolean supportsBatchUpdates, String sql, JDBCConnection connection) throws SQLException
CollectionIO
executeInserts
in interface CollectionIO
SQLException
Copyright © 2016 Nuxeo SA. All rights reserved.