com.servingxml.components.sql
Class SqlUpdateChoice

java.lang.Object
  extended by com.servingxml.components.sql.SqlUpdateChoice
All Implemented Interfaces:
SqlUpdateDatabase

public class SqlUpdateChoice
extends java.lang.Object
implements SqlUpdateDatabase


Field Summary
 
Fields inherited from interface com.servingxml.components.sql.SqlUpdateDatabase
NULL
 
Constructor Summary
SqlUpdateChoice(SqlQuery sqlQuery, SqlUpdateDatabase sqlFoundUpdater, SqlUpdateDatabase sqlNotFoundUpdater)
           
 
Method Summary
 void endUpdate(ServiceContext context, Flow flow, java.sql.Connection connection)
           
 void startUpdate(ServiceContext context, Flow flow, java.sql.Connection connection)
           
 void update(ServiceContext context, Flow flow, java.sql.Connection connection)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SqlUpdateChoice

public SqlUpdateChoice(SqlQuery sqlQuery,
                       SqlUpdateDatabase sqlFoundUpdater,
                       SqlUpdateDatabase sqlNotFoundUpdater)
Method Detail

startUpdate

public void startUpdate(ServiceContext context,
                        Flow flow,
                        java.sql.Connection connection)
Specified by:
startUpdate in interface SqlUpdateDatabase

update

public void update(ServiceContext context,
                   Flow flow,
                   java.sql.Connection connection)
Specified by:
update in interface SqlUpdateDatabase

endUpdate

public void endUpdate(ServiceContext context,
                      Flow flow,
                      java.sql.Connection connection)
Specified by:
endUpdate in interface SqlUpdateDatabase