org.skife.jdbi.v2.sqlobject.customizers
Class MaxRows.Factory

java.lang.Object
  extended by org.skife.jdbi.v2.sqlobject.customizers.MaxRows.Factory
All Implemented Interfaces:
SqlStatementCustomizerFactory
Enclosing class:
MaxRows

public static class MaxRows.Factory
extends Object
implements SqlStatementCustomizerFactory


Constructor Summary
MaxRows.Factory()
           
 
Method Summary
 SqlStatementCustomizer createForMethod(Annotation annotation, Class sqlObjectType, Method method)
          Used to create customizers for annotations on methods.
 SqlStatementCustomizer createForParameter(Annotation annotation, Class sqlObjectType, Method method, Object arg)
          Used to create customizers for annotations on parameters
 SqlStatementCustomizer createForType(Annotation annotation, Class sqlObjectType)
          Used to create customizers for annotations on sql object interfaces
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MaxRows.Factory

public MaxRows.Factory()
Method Detail

createForMethod

public SqlStatementCustomizer createForMethod(Annotation annotation,
                                              Class sqlObjectType,
                                              Method method)
Description copied from interface: SqlStatementCustomizerFactory
Used to create customizers for annotations on methods.

Specified by:
createForMethod in interface SqlStatementCustomizerFactory
Parameters:
annotation - the annotation which lead to the method being called
sqlObjectType - sql object class (interface)
method - the method which was annotated
Returns:
the customizer which will be applied to the generated statement

createForParameter

public SqlStatementCustomizer createForParameter(Annotation annotation,
                                                 Class sqlObjectType,
                                                 Method method,
                                                 Object arg)
Description copied from interface: SqlStatementCustomizerFactory
Used to create customizers for annotations on parameters

Specified by:
createForParameter in interface SqlStatementCustomizerFactory
Parameters:
annotation - the annotation which lead to the method being called
sqlObjectType - sql object class (interface)
method - the method which was annotated
arg - the argument value for the annotated parameter
Returns:
the customizer which will be applied to the generated statement

createForType

public SqlStatementCustomizer createForType(Annotation annotation,
                                            Class sqlObjectType)
Description copied from interface: SqlStatementCustomizerFactory
Used to create customizers for annotations on sql object interfaces

Specified by:
createForType in interface SqlStatementCustomizerFactory
Parameters:
annotation - the annotation which lead to the method being called
sqlObjectType - sql object class (interface)
Returns:
the customizer which will be applied to the generated statement


Copyright © 2011. All Rights Reserved.