View Javadoc

    1   package sharin.sql.runner;
    2
    3   import java.util.List;
    4
    5   import sharin.sql.Sql;
    6
    7   public interface SqlRunner {
    8
    9       public <R> R selectForObject(Sql sql);
    10
    11      public <R> R selectForObject(Sql sql, ResultSetProcessor processor);
    12
    13      public <R> List<R> selectForList(Sql sql);
    14
    15      public <R> List<R> selectForList(Sql sql, ResultSetProcessor processor);
    16
    17      public <R> List<R> selectForList(Sql sql, int limit, int offset);
    18
    19      public <R> List<R> selectForList(Sql sql, int limit, int offset,
    20              ResultSetProcessor processor);
    21
    22      public int insert(Sql sql);
    23
    24      public <I> I insertForId(Sql sql);
    25
    26      public <I> I insertForId(Sql sql, ResultSetProcessor processor);
    27
    28      public int update(Sql sql);
    29
    30      public int delete(Sql sql);
    31
    32      public int execute(Sql sql);
    33  }