Class FetchSizeFactory

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      SqlStatementCustomizer createForMethod​(java.lang.annotation.Annotation annotation, java.lang.Class<?> sqlObjectType, java.lang.reflect.Method method)
      Used to create customizers for annotations on methods.
      SqlStatementParameterCustomizer createForParameter​(java.lang.annotation.Annotation annotation, java.lang.Class<?> sqlObjectType, java.lang.reflect.Method method, java.lang.reflect.Parameter param, int index, java.lang.reflect.Type type)
      Used to create customizers for annotations on parameters
      SqlStatementCustomizer createForType​(java.lang.annotation.Annotation annotation, java.lang.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

      • FetchSizeFactory

        public FetchSizeFactory()
    • Method Detail

      • createForType

        public SqlStatementCustomizer createForType​(java.lang.annotation.Annotation annotation,
                                                    java.lang.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
      • createForMethod

        public SqlStatementCustomizer createForMethod​(java.lang.annotation.Annotation annotation,
                                                      java.lang.Class<?> sqlObjectType,
                                                      java.lang.reflect.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​(java.lang.annotation.Annotation annotation,
                                                                  java.lang.Class<?> sqlObjectType,
                                                                  java.lang.reflect.Method method,
                                                                  java.lang.reflect.Parameter param,
                                                                  int index,
                                                                  java.lang.reflect.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