Annotation Interface WriteOperation


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

Note: attributes used for cd_undo. If a write operation is intercepted by cd_undo wrappers, then the specified read operation is called to check if data exists in published storage. if it exists, then it is stored in cd_undo storage, using the same method but of a different instance of the DAO, mapped to the cd_undo storage.

  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Specifies the list of parameter/attribute names to get from the write operation parameters/entity and which will be used to call the read 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.
  • Element Details

    • readOperation

      String readOperation
      The name of the read 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:
      {}
    • neededParamNames

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