org.skife.jdbi.v2.sqlobject
Interface SqlStatementCustomizerFactory

All Known Implementing Classes:
BindIn.CustomizerFactory, Define.Factory, ExternalizedSqlViaStringTemplate3.LocatorFactory, FetchDirection.Factory, FetchSize.Factory, MapResultAsBean.MapAsBeanFactory, MaxRows.Factory, OverrideStatementLocatorWith.Factory, OverrideStatementRewriterWith.Factory, QueryTimeOut.Factory, RegisterArgumentFactory.Factory, RegisterColumnMapper.Factory, RegisterColumnMapperFactory.Factory, RegisterContainerMapper.Factory, RegisterMapper.Factory, RegisterMapperFactory.Factory, TransactionIsolation.Factory, UseStringTemplate3StatementLocator.LocatorFactory

public interface SqlStatementCustomizerFactory

Interface used in conjunction with SqlStatementCustomizingAnnotation to generate SqlStatementCustomizer instances.


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
 

Method Detail

createForMethod

SqlStatementCustomizer createForMethod(Annotation annotation,
                                       Class sqlObjectType,
                                       Method method)
Used to create customizers for annotations on methods.

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

SqlStatementCustomizer createForParameter(Annotation annotation,
                                          Class sqlObjectType,
                                          Method method,
                                          Object arg)
Used to create customizers for annotations on parameters

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

SqlStatementCustomizer createForType(Annotation annotation,
                                     Class sqlObjectType)
Used to create customizers for annotations on sql object interfaces

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 © 2015. All rights reserved.