Nuxeo Enterprise Platform 5.4

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
 java.io.Serializable getCurrentFromResultSet(java.sql.ResultSet rs, java.util.List<Column> columns, Model model, java.io.Serializable[] returnId, int[] returnPos)
          Gets one value from the current position of the result set.
 void setToPreparedStatement(java.io.Serializable id, java.io.Serializable[] array, java.util.List<Column> columns, java.sql.PreparedStatement ps, Model model, java.util.List<java.io.Serializable> debugValues, java.lang.String sql, JDBCMapperLogger logger)
          Sets the values of a fragment to a SQL prepared statement, and executes the statement for each value.
 

Method Detail

getCurrentFromResultSet

java.io.Serializable getCurrentFromResultSet(java.sql.ResultSet rs,
                                             java.util.List<Column> columns,
                                             Model model,
                                             java.io.Serializable[] returnId,
                                             int[] returnPos)
                                             throws java.sql.SQLException
Gets one value from the current position of the result set.

Throws:
java.sql.SQLException

setToPreparedStatement

void setToPreparedStatement(java.io.Serializable id,
                            java.io.Serializable[] array,
                            java.util.List<Column> columns,
                            java.sql.PreparedStatement ps,
                            Model model,
                            java.util.List<java.io.Serializable> debugValues,
                            java.lang.String sql,
                            JDBCMapperLogger logger)
                            throws java.sql.SQLException
Sets the values of a fragment to a SQL prepared statement, and executes the statement for each value.

Throws:
java.sql.SQLException

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.