Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.core.storage.sql.jdbc
Class ScalarCollectionIO

java.lang.Object
  extended by 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
static CollectionIO INSTANCE
           
 
Constructor Summary
ScalarCollectionIO()
           
 
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.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final CollectionIO INSTANCE
Constructor Detail

ScalarCollectionIO

public ScalarCollectionIO()
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 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

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.