sf logo

sf.qof.adapter
Interface DynamicMappingAdapter

All Superinterfaces:
MappingAdapter

public interface DynamicMappingAdapter
extends MappingAdapter

Interface for dynamic custom mappers.


Method Summary
 Object get(CallableStatement cs, int[] indexes)
          Method to map the result of a callable statement to the returned object.
 Object get(ResultSet rs, int[] indexes)
          Method to map the current record of a result set to the returned object.
 Object get(ResultSet rs, String[] columns)
          Method to map the current record of a result set to the returned object.
 void registerOutputParameter(CallableStatement cs, int[] indexes)
          Method to register an out parameter for a callable statement.
 void set(PreparedStatement ps, Object value, int[] indexes)
          Method to map the object value to a prepared statement.
 
Methods inherited from interface sf.qof.mapping.MappingAdapter
getNumberOfColumns, getTypes
 

Method Detail

set

void set(PreparedStatement ps,
         Object value,
         int[] indexes)
         throws SQLException
Method to map the object value to a prepared statement. indexes defines the SQL index for the prepared statement to be used in functions such a setInt(index, value).

Parameters:
ps - prepared statement
value - value object
indexes - array of SQL indexes
Throws:
SQLException

registerOutputParameter

void registerOutputParameter(CallableStatement cs,
                             int[] indexes)
                             throws SQLException
Method to register an out parameter for a callable statement.

Parameters:
cs - callable statement
indexes - array of SQL indexes
Throws:
SQLException

get

Object get(ResultSet rs,
           int[] indexes)
           throws SQLException
Method to map the current record of a result set to the returned object. indexes defines the SQL indexes for the result set to be used in functions such a getInt(index).

Parameters:
rs - result set
indexes - array of SQL indexes
Returns:
newly created object
Throws:
SQLException

get

Object get(ResultSet rs,
           String[] columns)
           throws SQLException
Method to map the current record of a result set to the returned object. columns defines the SQL column name for the result set to be used in functions such a getInt(name).

Parameters:
rs - result set
columns - array of SQL column names
Returns:
newly created object
Throws:
SQLException

get

Object get(CallableStatement cs,
           int[] indexes)
           throws SQLException
Method to map the result of a callable statement to the returned object. indexes defines the SQL indexes for the result set to be used in functions such a getInt(index).

Parameters:
cs - callable statement
indexes - array of SQL indexes
Returns:
newly created object
Throws:
SQLException

sf logo

Copyright © 2007 brunella ltd. All Rights Reserved.