java.lang.Object
org.eclipse.persistence.internal.helper.ComplexDatabaseType
org.eclipse.persistence.platform.database.oracle.jdbc.OracleArrayType
All Implemented Interfaces:
Cloneable, org.eclipse.persistence.internal.helper.DatabaseType

public class OracleArrayType extends org.eclipse.persistence.internal.helper.ComplexDatabaseType implements Cloneable
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.eclipse.persistence.internal.helper.DatabaseType

    org.eclipse.persistence.internal.helper.DatabaseType.DatabaseTypeHelper
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected org.eclipse.persistence.internal.helper.DatabaseType
    Defines the database type of the value contained in the collection type.

    Fields inherited from class org.eclipse.persistence.internal.helper.ComplexDatabaseType

    compatibleType, javaType, javaTypeName, typeName

    Fields inherited from interface org.eclipse.persistence.internal.helper.DatabaseType

    ARGNAME_SIZE_LIMIT, COMPAT_SHORT_PREFIX, COMPAT_SUFFIX, TARGET_SHORT_PREFIX, TARGET_SUFFIX
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    void
     
    void
     
    void
     
    Oracle ARRAY types don't have a compatible type like PL/SQL types do, so we will use the type name
    org.eclipse.persistence.internal.helper.DatabaseType
    Return the database type of the value contained in the collection type.
    int
     
    boolean
     
    boolean
     
    boolean
     
    void
    setCompatibleType(String compatibleType)
    Oracle ARRAY types don't have a compatible type like PL/SQL types do, so we will use the type name
    void
    setNestedType(org.eclipse.persistence.internal.helper.DatabaseType nestedType)
    Set the database type of the value contained in the collection type.

    Methods inherited from class org.eclipse.persistence.internal.helper.ComplexDatabaseType

    buildOutputRow, clone, computeInIndex, computeOutIndex, getConversionCode, getJavaType, getJavaTypeName, getTypeName, hasCompatibleType, isCollection, isCursor, isRecord, isStruct, logParameter, logParameter, setJavaType, setJavaTypeName, setTypeName, toString, translate

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • nestedType

      protected org.eclipse.persistence.internal.helper.DatabaseType nestedType
      Defines the database type of the value contained in the collection type.

      i.e. the OF type.

      This could be a JDBC type, PLSQL type, or a PLSQL RECORD type.

  • Constructor Details

    • OracleArrayType

      public OracleArrayType()
  • Method Details

    • getNestedType

      public org.eclipse.persistence.internal.helper.DatabaseType getNestedType()
      Return the database type of the value contained in the collection type.
    • setNestedType

      public void setNestedType(org.eclipse.persistence.internal.helper.DatabaseType nestedType)
      Set the database type of the value contained in the collection type.

      i.e. the OF type.

      This could be a JDBC type, PLSQL type, or a PLSQL RECORD type.

    • isJDBCType

      public boolean isJDBCType()
      Specified by:
      isJDBCType in interface org.eclipse.persistence.internal.helper.DatabaseType
      Overrides:
      isJDBCType in class org.eclipse.persistence.internal.helper.ComplexDatabaseType
    • isComplexDatabaseType

      public boolean isComplexDatabaseType()
      Specified by:
      isComplexDatabaseType in interface org.eclipse.persistence.internal.helper.DatabaseType
      Overrides:
      isComplexDatabaseType in class org.eclipse.persistence.internal.helper.ComplexDatabaseType
    • isArray

      public boolean isArray()
      Overrides:
      isArray in class org.eclipse.persistence.internal.helper.ComplexDatabaseType
    • getSqlCode

      public int getSqlCode()
      Specified by:
      getSqlCode in interface org.eclipse.persistence.internal.helper.DatabaseType
    • getCompatibleType

      public String getCompatibleType()
      Oracle ARRAY types don't have a compatible type like PL/SQL types do, so we will use the type name
      Overrides:
      getCompatibleType in class org.eclipse.persistence.internal.helper.ComplexDatabaseType
    • setCompatibleType

      public void setCompatibleType(String compatibleType)
      Oracle ARRAY types don't have a compatible type like PL/SQL types do, so we will use the type name
      Overrides:
      setCompatibleType in class org.eclipse.persistence.internal.helper.ComplexDatabaseType
    • buildBeginBlock

      public void buildBeginBlock(StringBuilder sb, PLSQLargument arg, PLSQLStoredProcedureCall call)
      Specified by:
      buildBeginBlock in interface org.eclipse.persistence.internal.helper.DatabaseType
      Overrides:
      buildBeginBlock in class org.eclipse.persistence.internal.helper.ComplexDatabaseType
    • buildInDeclare

      public void buildInDeclare(StringBuilder sb, PLSQLargument inArg)
      Specified by:
      buildInDeclare in interface org.eclipse.persistence.internal.helper.DatabaseType
      Overrides:
      buildInDeclare in class org.eclipse.persistence.internal.helper.ComplexDatabaseType
    • buildOutDeclare

      public void buildOutDeclare(StringBuilder sb, PLSQLargument outArg)
      Specified by:
      buildOutDeclare in interface org.eclipse.persistence.internal.helper.DatabaseType
      Overrides:
      buildOutDeclare in class org.eclipse.persistence.internal.helper.ComplexDatabaseType
    • buildOutAssignment

      public void buildOutAssignment(StringBuilder sb, PLSQLargument outArg, PLSQLStoredProcedureCall call)
      Specified by:
      buildOutAssignment in interface org.eclipse.persistence.internal.helper.DatabaseType
      Overrides:
      buildOutAssignment in class org.eclipse.persistence.internal.helper.ComplexDatabaseType