Package org.jdbi.v3.sqlobject.customizer
Interface SqlStatementCustomizerFactory
-
- All Known Implementing Classes:
AllowUnusedBindingsFactory,BindBeanFactory,BindBeanListFactory,BindFactory,BindFieldsFactory,BindListFactory,BindMapFactory,BindMethodsFactory,BindMethodsListFactory,BindPojoFactory,DefineFactory,DefineListFactory,DefineNamedBindingsFactory,FetchSizeFactory,MapToFactory,MaxRowsFactory,OutParameterFactory,OutParameterListFactory,QueryTimeOutFactory,TimestampedFactory
public interface SqlStatementCustomizerFactoryInterface used in conjunction withSqlStatementCustomizingAnnotationto generateSqlStatementCustomizerinstances.
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default SqlStatementCustomizercreateForMethod(Annotation annotation, Class<?> sqlObjectType, Method method)Used to create customizers for annotations on methods.default SqlStatementParameterCustomizercreateForParameter(Annotation annotation, Class<?> sqlObjectType, Method method, Parameter param, int index, Type paramType)Used to create customizers for annotations on parametersdefault SqlStatementCustomizercreateForType(Annotation annotation, Class<?> sqlObjectType)Used to create customizers for annotations on sql object interfaces
-
-
-
Method Detail
-
createForType
default 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 calledsqlObjectType- sql object class (interface)- Returns:
- the customizer which will be applied to the generated statement
-
createForMethod
default 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 calledsqlObjectType- sql object class (interface)method- the method which was annotated- Returns:
- the customizer which will be applied to the generated statement
-
createForParameter
default SqlStatementParameterCustomizer createForParameter(Annotation annotation, Class<?> sqlObjectType, Method method, Parameter param, int index, Type paramType)
Used to create customizers for annotations on parameters- Parameters:
annotation- the annotation which lead to the method being calledsqlObjectType- sql object class (interface)method- the method which was annotatedparam- the parameter which was annotatedindex- the method parameter indexparamType- the type of the parameter- Returns:
- the customizer which will be applied to the generated statement
-
-