Annotation Type Param


@Documented
@Retention(RUNTIME)
@Target(PARAMETER)
public @interface Param
Used to set a specific name to the annotated parameter. This declaration sets the column name to a parameter within a method.

The following example shows how to use this annotation on a parameter. It is strongly recommended to use this annotation for declaring column names, because the parameter names starting from arg0 are used otherwise.

Arguments from methods that are annotated with Param can be used to change the statement at runtime. The provided name has to be present in the sql statement:

      PATTERN := '{' NAME '}';
 
Based on that pattern definition the sql statement can be defined as follows:
      @SQL.Select("select * from {table}")
      //..
 
Since:
1.0
Author:
MatrixEditor
  • Optional Element Summary

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

    • value

      java.lang.String value
      Returns:
      the specified column name.
      Default:
      ""