org.skife.jdbi.v2
Class StatementCustomizers.MaxRowsCustomizer

java.lang.Object
  extended by org.skife.jdbi.v2.tweak.BaseStatementCustomizer
      extended by org.skife.jdbi.v2.StatementCustomizers.MaxRowsCustomizer
All Implemented Interfaces:
StatementCustomizer
Enclosing class:
StatementCustomizers

public static final class StatementCustomizers.MaxRowsCustomizer
extends BaseStatementCustomizer


Constructor Summary
StatementCustomizers.MaxRowsCustomizer(int maxRows)
           
 
Method Summary
 void beforeExecution(PreparedStatement stmt, StatementContext ctx)
          Make the changes you need to inside this method.
 
Methods inherited from class org.skife.jdbi.v2.tweak.BaseStatementCustomizer
afterExecution, cleanup
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StatementCustomizers.MaxRowsCustomizer

public StatementCustomizers.MaxRowsCustomizer(int maxRows)
Method Detail

beforeExecution

public void beforeExecution(PreparedStatement stmt,
                            StatementContext ctx)
                     throws SQLException
Description copied from class: BaseStatementCustomizer
Make the changes you need to inside this method. It will be invoked prior to execution of the prepared statement

Specified by:
beforeExecution in interface StatementCustomizer
Overrides:
beforeExecution in class BaseStatementCustomizer
Parameters:
stmt - Prepared statement being customized
ctx - Statement context associated with the statement being customized
Throws:
SQLException - go ahead and percolate it for jDBI to handle


Copyright © 2013. All Rights Reserved.