Annotation Interface Update


@Retention(RUNTIME) @Target(METHOD) public @interface Update
The Interface Update.
See Also:
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    int
     
    boolean
     
     
    boolean
     
    boolean
    Set it to true if there is only one input parameter and the type is Collection/Object Array, and the target db column type is Collection/Object Array.
    It should only be set with OP.update or OP.largeUpdate
    int
    Unit is seconds.
     
    boolean
    Set named parameter :now to current system time if it's true
    Deprecated.
    using sql="SELECT ...
  • Element Details

    • value

      Deprecated.
      using sql="SELECT ... FROM ..." for explicit call.
      Returns:
      Default:
      ""
    • id

      String id
      Returns:
      Default:
      ""
    • sql

      String sql
      Returns:
      Default:
      ""
    • isBatch

      boolean isBatch
      Returns:
      Default:
      false
    • batchSize

      int batchSize
      Returns:
      Default:
      200
    • queryTimeout

      int queryTimeout
      Unit is seconds.
      Returns:
      Default:
      -1
    • isSingleParameter

      boolean isSingleParameter
      Set it to true if there is only one input parameter and the type is Collection/Object Array, and the target db column type is Collection/Object Array.
      Returns:
      Default:
      false
    • hasDefineWithNamedParameter

      @Beta boolean hasDefineWithNamedParameter
      Default:
      false
    • timestamped

      @Beta boolean timestamped
      Set named parameter :now to current system time if it's true
      Returns:
      Default:
      false
    • op

      OP op
      It should only be set with OP.update or OP.largeUpdate
      Returns:
      Default:
      update