Top Description Fields Constructors Methods
org.eclipse.persistence.platform.database.oracle.plsql

public Class PLSQLCollection

extends ComplexDatabaseType
implements Cloneable, OraclePLSQLType
Class Inheritance
All Implemented Interfaces
org.eclipse.persistence.platform.database.oracle.plsql.OraclePLSQLType, org.eclipse.persistence.internal.helper.SimpleDatabaseType, org.eclipse.persistence.internal.helper.DatabaseType, java.lang.Cloneable
Static Imports
java.sql.Types.ARRAY

PUBLIC: Marker interface for Oracle PL/SQL Collections (Nested Tables and Varrays)

Field Summary

Modifier and TypeField and Description
protected boolean
protected DatabaseType
nestedType

Defines the database type of the value contained in the collection type.

Inherited from org.eclipse.persistence.internal.helper.ComplexDatabaseType:
compatibleTypejavaTypejavaTypeNametypeName

Constructor Summary

AccessConstructor and Description
public
PLSQLCollection()

The default constructor sets javaType to ArrayList.class

Method Summary

Modifier and TypeMethod and Description
public PLSQLCollection
clone()

Overrides org.eclipse.persistence.internal.helper.ComplexDatabaseType.clone.

Creates and returns a copy of this object.
public DatabaseType
getNestedType()

Return the database type of the value contained in the collection type.

public int
public boolean
public boolean
isNestedTable()

Indicates if the instance represents a Nested Table (as opposed to Varray).

public void
setIsNestedTable(boolean isNestedTable)

Set boolean that indicates if the instance represents a Nested Table (as opposed to Varray)

public void
setNestedType(DatabaseType nestedType)

Set the database type of the value contained in the collection type.

Inherited from org.eclipse.persistence.internal.helper.ComplexDatabaseType:
buildBeginBlockbuildInDeclarebuildOutAssignmentbuildOutDeclarebuildOutputRowcomputeInIndexcomputeOutIndexgetCompatibleTypegetConversionCodegetJavaTypegetJavaTypeNamegetTypeNamehasCompatibleTypeisArrayisComplexDatabaseTypeisCursorisJDBCTypeisRecordisStructlogParametersetCompatibleTypesetJavaTypesetJavaTypeNamesetTypeNametoStringtranslate

Field Detail

isNestedTableback to summary
protected boolean isNestedTable
nestedTypeback to summary
protected 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 Detail

PLSQLCollectionback to summary
public PLSQLCollection()

The default constructor sets javaType to ArrayList.class

Method Detail

cloneback to summary
public PLSQLCollection clone()

Overrides org.eclipse.persistence.internal.helper.ComplexDatabaseType.clone.

Doc from java.lang.Object.clone.

Creates and returns a copy of this object. The precise meaning of "copy" may depend on the class of the object. The general intent is that, for any object x, the expression:

x.clone() != x
will be true, and that the expression:
x.clone().getClass() == x.getClass()
will be true, but these are not absolute requirements. While it is typically the case that:
x.clone().equals(x)
will be true, this is not an absolute requirement.

By convention, the returned object should be obtained by calling super.clone. If a class and all of its superclasses (except Object) obey this convention, it will be the case that x.clone().getClass() == x.getClass().

By convention, the object returned by this method should be independent of this object (which is being cloned). To achieve this independence, it may be necessary to modify one or more fields of the object returned by super.clone before returning it. Typically, this means copying any mutable objects that comprise the internal "deep structure" of the object being cloned and replacing the references to these objects with references to the copies. If a class contains only primitive fields or references to immutable objects, then it is usually the case that no fields in the object returned by super.clone need to be modified.

Returns:PLSQLCollection

a clone of this instance.

Annotations
@Override
getNestedTypeback to summary
public DatabaseType getNestedType()

Return the database type of the value contained in the collection type.

getSqlCodeback to summary
public int getSqlCode()

Implements org.eclipse.persistence.internal.helper.DatabaseType.getSqlCode.

Annotations
@Override
isCollectionback to summary
public boolean isCollection()

Overrides org.eclipse.persistence.internal.helper.ComplexDatabaseType.isCollection.

Annotations
@Override
isNestedTableback to summary
public boolean isNestedTable()

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

setIsNestedTableback to summary
public void setIsNestedTable(boolean isNestedTable)

Set boolean that indicates if the instance represents a Nested Table (as opposed to Varray)

setNestedTypeback to summary
public void setNestedType(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.