Annotation Type SQL


@Documented
@Retention(RUNTIME)
@Target(TYPE)
public @interface SQL
Sets the used SQLFactory and Driver by providing its identifier.
  • Field Summary

    Fields 
    Modifier and Type Fields Description
    static java.lang.String ARRAY
    Indicates all parameters declared in the sql statement will be replaced step by step while iterating over the given array.
    static java.lang.String ENV
    Used within a Param annotation it can be used to indicate the sql statement is saved in the SQL.Environment class.
    static java.lang.String MAP
    Indicates the annotated parameter stores its values in a Map.
  • Required Element Summary

    Required Elements 
    Modifier and Type Required Element Description
    java.lang.String value  
  • Field Details

    • ENV

      static final java.lang.String ENV
      Used within a Param annotation it can be used to indicate the sql statement is saved in the SQL.Environment class.
    • MAP

      static final java.lang.String MAP
      Indicates the annotated parameter stores its values in a Map.
    • ARRAY

      static final java.lang.String ARRAY
      Indicates all parameters declared in the sql statement will be replaced step by step while iterating over the given array.
  • Element Details

    • value

      java.lang.String value
      Returns:
      the jdbc driver type name.