com.jpattern.orm.session
Class NullSqlPerformerStrategy

java.lang.Object
  extended by com.jpattern.orm.session.NullSqlPerformerStrategy
All Implemented Interfaces:
SqlPerformerStrategy

public class NullSqlPerformerStrategy
extends Object
implements SqlPerformerStrategy

Author:
Francesco Cina' Dec 20, 2011

Constructor Summary
NullSqlPerformerStrategy()
           
 
Method Summary
 int[] batchUpdate(List<String> sqls, int timeout)
           
 int[] batchUpdate(String sql, BatchPreparedStatementSetter psc, int timeout)
           
 int[] batchUpdate(String sql, List<Object[]> args, int timeout)
           
 void execute(String sql, int timeout)
           
<T> T
query(String sql, int timeout, int maxRows, PreparedStatementSetter pss, ResultSetReader<T> rse)
           
 int update(String sql, int timeout, GeneratedKeyReader generatedKeyReader, PreparedStatementSetter psc)
           
 int update(String sql, int timeout, PreparedStatementSetter psc)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NullSqlPerformerStrategy

public NullSqlPerformerStrategy()
Method Detail

execute

public void execute(String sql,
                    int timeout)
             throws OrmException
Specified by:
execute in interface SqlPerformerStrategy
Throws:
OrmException

query

public <T> T query(String sql,
                   int timeout,
                   int maxRows,
                   PreparedStatementSetter pss,
                   ResultSetReader<T> rse)
        throws OrmException
Specified by:
query in interface SqlPerformerStrategy
Throws:
OrmException

update

public int update(String sql,
                  int timeout,
                  PreparedStatementSetter psc)
           throws OrmException
Specified by:
update in interface SqlPerformerStrategy
Throws:
OrmException

update

public int update(String sql,
                  int timeout,
                  GeneratedKeyReader generatedKeyReader,
                  PreparedStatementSetter psc)
           throws OrmException
Specified by:
update in interface SqlPerformerStrategy
Throws:
OrmException

batchUpdate

public int[] batchUpdate(List<String> sqls,
                         int timeout)
                  throws OrmException
Specified by:
batchUpdate in interface SqlPerformerStrategy
Throws:
OrmException

batchUpdate

public int[] batchUpdate(String sql,
                         List<Object[]> args,
                         int timeout)
                  throws OrmException
Specified by:
batchUpdate in interface SqlPerformerStrategy
Throws:
OrmException

batchUpdate

public int[] batchUpdate(String sql,
                         BatchPreparedStatementSetter psc,
                         int timeout)
                  throws OrmException
Specified by:
batchUpdate in interface SqlPerformerStrategy
Throws:
OrmException


Copyright © 2013. All Rights Reserved.