@Target(TYPE) @Retention(RUNTIME) public @interface PLSQLRecord
A PLSQLRecord annotation is used to define a database PLSQL RECORD type. This type can be used within PLSQL procedure calls.
Since:
EclipseLink 2.3
See Also:
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    (Required) The name of the database OBJECT TYPE that mirrors the record's structure.
    (Required) Defines the fields in the record type.
    (Required) The name of the record type in the database.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    (Optional) The Java class to map the object-type to.
  • Element Details

    • name

      String name
      (Required) The name of the record type in the database.
    • compatibleType

      String compatibleType
      (Required) The name of the database OBJECT TYPE that mirrors the record's structure. The record will be converted to/from this type so it can be passed through JDBC.
    • javaType

      Class<?> javaType
      (Optional) The Java class to map the object-type to. This class must be mapped using a @Struct annotation.
      Default:
      void.class
    • fields

      PLSQLParameter[] fields
      (Required) Defines the fields in the record type.