org.nuxeo.ecm.core.storage.sql.jdbc
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.
Method Summary |
void |
executeInserts(PreparedStatement ps,
List<Row> rows,
List<Column> columns,
boolean supportsBatchUpdates,
String sql,
JDBCLogger logger)
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. |
INSTANCE
public static final CollectionIO INSTANCE
ScalarCollectionIO
public ScalarCollectionIO()
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 interface CollectionIO
- Throws:
SQLException
executeInserts
public void executeInserts(PreparedStatement ps,
List<Row> rows,
List<Column> columns,
boolean supportsBatchUpdates,
String sql,
JDBCLogger logger)
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 interface CollectionIO
- Throws:
SQLException
Copyright © 2011 Nuxeo SAS. All Rights Reserved.