Class PLSQLCollection

  • All Implemented Interfaces:
    java.lang.Cloneable, org.eclipse.persistence.internal.helper.DatabaseType, org.eclipse.persistence.internal.helper.SimpleDatabaseType, OraclePLSQLType

    public class PLSQLCollection
    extends org.eclipse.persistence.internal.helper.ComplexDatabaseType
    implements java.lang.Cloneable, OraclePLSQLType
    PUBLIC: Marker interface for Oracle PL/SQL Collections (Nested Tables and Varrays)
    • 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 boolean isNestedTable  
      protected org.eclipse.persistence.internal.helper.DatabaseType nestedType
      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
      PLSQLCollection()
      The default constructor sets javaType to ArrayList.class
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      PLSQLCollection clone()  
      org.eclipse.persistence.internal.helper.DatabaseType getNestedType()
      Return the database type of the value contained in the collection type.
      int getSqlCode()  
      boolean isCollection()  
      boolean isNestedTable()
      Indicates if the instance represents a Nested Table (as opposed to Varray).
      void setIsNestedTable​(boolean isNestedTable)
      Set boolean that indicates if the instance represents a Nested Table (as opposed to Varray)
      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

        buildBeginBlock, buildInDeclare, buildOutAssignment, buildOutDeclare, buildOutputRow, computeInIndex, computeOutIndex, getCompatibleType, getConversionCode, getJavaType, getJavaTypeName, getTypeName, hasCompatibleType, isArray, isComplexDatabaseType, isCursor, isJDBCType, isRecord, isStruct, logParameter, logParameter, setCompatibleType, setJavaType, setJavaTypeName, setTypeName, toString, translate
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface org.eclipse.persistence.internal.helper.DatabaseType

        buildBeginBlock, buildInDeclare, buildOutAssignment, buildOutDeclare, buildOutputRow, computeInIndex, computeOutIndex, getConversionCode, getTypeName, isComplexDatabaseType, isJDBCType, logParameter, logParameter, translate
    • Field Detail

      • 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.

      • isNestedTable

        protected boolean isNestedTable
    • Constructor Detail

      • PLSQLCollection

        public PLSQLCollection()
        The default constructor sets javaType to ArrayList.class
    • Method Detail

      • clone

        public PLSQLCollection clone()
        Overrides:
        clone in class org.eclipse.persistence.internal.helper.ComplexDatabaseType
      • isCollection

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

        public boolean isNestedTable()
        Indicates if the instance represents a Nested Table (as opposed to Varray). Defaults to false, i.e. Varray.
      • getNestedType

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

        public void setIsNestedTable​(boolean isNestedTable)
        Set boolean that indicates if the instance represents a Nested Table (as opposed to Varray)
      • 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.

      • getSqlCode

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