net.sourceforge.backpedal.impl.core
Class BindVariableResolverImpl

java.lang.Object
  |
  +--net.sourceforge.backpedal.impl.AbstractComponent
        |
        +--net.sourceforge.backpedal.impl.core.BindVariableResolverImpl
All Implemented Interfaces:
BindVariableResolver

public class BindVariableResolverImpl
extends AbstractComponent
implements BindVariableResolver


Constructor Summary
BindVariableResolverImpl(BackpedalFactory backpedalFactory)
           
 
Method Summary
 Collection getBindVariableSetsForMutatedRows(ParsedStatement parsedStatement, BindVariableSet bindVariableSet, TableMetadata tableMetadata, Connection connection)
          For all the rows affected by parsedStatement, return a BindVariableSet instance that contains the current values for all thr columns affected by parsedStatement.
 
Methods inherited from class net.sourceforge.backpedal.impl.AbstractComponent
enableLogging, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BindVariableResolverImpl

public BindVariableResolverImpl(BackpedalFactory backpedalFactory)
Method Detail

getBindVariableSetsForMutatedRows

public Collection getBindVariableSetsForMutatedRows(ParsedStatement parsedStatement,
                                                    BindVariableSet bindVariableSet,
                                                    TableMetadata tableMetadata,
                                                    Connection connection)
Description copied from interface: BindVariableResolver
For all the rows affected by parsedStatement, return a BindVariableSet instance that contains the current values for all thr columns affected by parsedStatement.

Specified by:
getBindVariableSetsForMutatedRows in interface BindVariableResolver
Parameters:
parsedStatement - a SQL statement that is about to execute on the database
bindVariableSet - the bind variables that will be used to populate parsedStatement
tableMetadata - description of the columns in the table being affected by parsedStatement
connection - a real JDBC connection to the database (so that current values can be read)
Returns:
a collection of BindVariableSet instances, one for each row affected by parsedStatement. Each BindVariableSet will contain the current values for the columns being affected in each row.


Copyright © Sourceforge. All Rights Reserved.