com.jpattern.orm.session
Interface SqlPerformerStrategy

All Known Implementing Classes:
DataSourceSqlPerformerStrategy, NullSqlPerformerStrategy

public interface SqlPerformerStrategy

Author:
Francesco Cina' Dec 20, 2011

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 pss)
           
 int update(String sql, int timeout, PreparedStatementSetter pss)
           
 

Method Detail

execute

void execute(String sql,
             int timeout)
             throws OrmException
Throws:
OrmException

query

<T> T query(String sql,
            int timeout,
            int maxRows,
            PreparedStatementSetter pss,
            ResultSetReader<T> rse)
        throws OrmException
Throws:
OrmException

update

int update(String sql,
           int timeout,
           PreparedStatementSetter pss)
           throws OrmException
Throws:
OrmException

update

int update(String sql,
           int timeout,
           GeneratedKeyReader generatedKeyReader,
           PreparedStatementSetter pss)
           throws OrmException
Throws:
OrmException

batchUpdate

int[] batchUpdate(List<String> sqls,
                  int timeout)
                  throws OrmException
Throws:
OrmException

batchUpdate

int[] batchUpdate(String sql,
                  List<Object[]> args,
                  int timeout)
                  throws OrmException
Throws:
OrmException

batchUpdate

int[] batchUpdate(String sql,
                  BatchPreparedStatementSetter psc,
                  int timeout)
                  throws OrmException
Throws:
OrmException


Copyright © 2013. All Rights Reserved.