Module eclipselink

Annotation Interface PLSQLRecord


@Target(TYPE) @Retention(RUNTIME) @Repeatable(PLSQLRecords.class) public @interface PLSQLRecord
A PLSQLRecord annotation is used to define a database PLSQL RECORD type.

This type can be used within PLSQL procedure calls.

See Also:
Author:
James Sutherland
  • Required Element Summary

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

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

    • name

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

      String compatibleType
      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
      The Java class to map the object-type to.

      This class must be mapped using a Struct annotation.

      Default:
      void.class
    • fields

      PLSQLParameter[] fields
      Defines the fields in the record type.