Class MaxRowsFactory
java.lang.Object
org.jdbi.v3.sqlobject.customizer.internal.MaxRowsFactory
- All Implemented Interfaces:
SqlStatementCustomizerFactory
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateForMethod
(Annotation annotation, Class<?> sqlObjectType, Method method) Used to create customizers for annotations on methods.createForParameter
(Annotation annotation, Class<?> sqlObjectType, Method method, Parameter param, int index, Type type) Used to create customizers for annotations on parametersMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.jdbi.v3.sqlobject.customizer.SqlStatementCustomizerFactory
createForType
-
Field Details
-
DEFAULT_MAX_ROWS
public static final int DEFAULT_MAX_ROWS- See Also:
-
-
Constructor Details
-
MaxRowsFactory
public MaxRowsFactory()
-
-
Method Details
-
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 interfaceSqlStatementCustomizerFactory
- 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
public SqlStatementParameterCustomizer createForParameter(Annotation annotation, Class<?> sqlObjectType, Method method, Parameter param, int index, Type type) Description copied from interface:SqlStatementCustomizerFactory
Used to create customizers for annotations on parameters- Specified by:
createForParameter
in interfaceSqlStatementCustomizerFactory
- 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 indextype
- the type of the parameter- Returns:
- the customizer which will be applied to the generated statement
-