Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.core.storage.sql.jdbc
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
 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.
 

Method Detail

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<Row> rows,
                    List<Column> columns,
                    boolean supportsBatchUpdates,
                    String sql,
                    JDBCLogger logger)
                    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

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.