Annotation Interface RemoveOperation


@Retention(RUNTIME) @Target(METHOD) public @interface RemoveOperation
Annotation used to annotate remove DAO operations.

Note: attributes used for cd_undo. if a remove operation is intercepted by cd_undo wrappers, then first the specified read operation is called to check if data exists in the published storage. if it exists, then it is stored using the specified write operation in the cd_undo storage. the attributes identify read and write operations and where the data needed to make these calls can be found.

  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Specifies the list of parameter/attribute names to get from the remove operation parameters/entity and which will be used to call the read operation with them.
    Specifies the list of parameter/attribute names to get from the remove operation parameters and which will be used to call the write operation with them.
    The name of the read operation to call from the same DAO, if it is desired.
    The types of the parameters of the specified read operation.
    The name of the write operation to call from the same DAO, if it is desired.
    The types of the parameters of the specified write operation.
  • Element Details

    • readOperation

      String readOperation
      The name of the read operation to call from the same DAO, if it is desired.
      Default:
      "NONE"
    • writeOperation

      String writeOperation
      The name of the write operation to call from the same DAO, if it is desired.
      Default:
      "NONE"
    • readParamTypes

      Class[] readParamTypes
      The types of the parameters of the specified read operation.
      Default:
      {}
    • writeParamTypes

      Class[] writeParamTypes
      The types of the parameters of the specified write operation.
      Default:
      {}
    • neededParamNamesToRead

      String[] neededParamNamesToRead
      Specifies the list of parameter/attribute names to get from the remove operation parameters/entity and which will be used to call the read operation with them.
      Default:
      {}
    • neededParamNamesToWrite

      String[] neededParamNamesToWrite
      Specifies the list of parameter/attribute names to get from the remove operation parameters and which will be used to call the write operation with them.
      Default:
      {}