@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 aParam
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 aMap
. -
Required Element Summary
Required Elements Modifier and Type Required Element Description java.lang.String
value
-
Field Details
-
ENV
static final java.lang.String ENVUsed within aParam
annotation it can be used to indicate the sql statement is saved in the SQL.Environment class. -
MAP
static final java.lang.String MAPIndicates the annotated parameter stores its values in aMap
. -
ARRAY
static final java.lang.String ARRAYIndicates 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.
-