Class MaxRowsFactory

java.lang.Object
org.jdbi.v3.sqlobject.customizer.internal.MaxRowsFactory
All Implemented Interfaces:
SqlStatementCustomizerFactory

public class MaxRowsFactory extends Object implements SqlStatementCustomizerFactory
  • Field Details

  • 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 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 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 interface SqlStatementCustomizerFactory
      Parameters:
      annotation - the annotation which lead to the method being called
      sqlObjectType - sql object class (interface)
      method - the method which was annotated
      param - the parameter which was annotated
      index - the method parameter index
      type - the type of the parameter
      Returns:
      the customizer which will be applied to the generated statement