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

public Class PLSQLargument

extends Object
implements Cloneable
Class Inheritance
All Implemented Interfaces
java.lang.Cloneable
Static Imports
java.lang.Integer.MIN_VALUE

INTERNAL: Helper class - tracks argument's original position as well as re-ordered position Used by PLSQLrecord and PLSQLStoredProcedureCall

Field Summary

Modifier and TypeField and Description
public boolean
public DatabaseType
public DatasourceCall.ParameterType
public int
public int
public String
public int
public int
public int
public int

Constructor Summary

AccessConstructor and Description
public
public
PLSQLargument(String name, int originalIndex, DatasourceCall.ParameterType direction, DatabaseType databaseType)

public
PLSQLargument(String name, int originalIndex, DatasourceCall.ParameterType direction, DatabaseType databaseType, int length)

public
PLSQLargument(String name, int originalIndex, DatasourceCall.ParameterType direction, DatabaseType databaseType, int precision, int scale)

Method Summary

Modifier and TypeMethod and Description
protected PLSQLargument
clone()

Overrides java.lang.Object.clone.

Creates and returns a copy of this object.
public void
setIsNonAssociativeCollection(boolean
true indicates this argument's database type represents a Nested Table
isNonAsscociative
)

Sets flag on this argument's database type indicating that it represents a non-associative collection, i.e. Nested Table (as opposed to a Varray).

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
public void
Inherited from java.lang.Object:
equalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

cursorOutputback to summary
public boolean cursorOutput
databaseTypeback to summary
public DatabaseType databaseType
directionback to summary
public DatasourceCall.ParameterType direction
inIndexback to summary
public int inIndex
lengthback to summary
public int length
nameback to summary
public String name
originalIndexback to summary
public int originalIndex
outIndexback to summary
public int outIndex
precisionback to summary
public int precision
scaleback to summary
public int scale

Constructor Detail

PLSQLargumentback to summary
public PLSQLargument()
PLSQLargumentback to summary
public PLSQLargument(String name, int originalIndex, DatasourceCall.ParameterType direction, DatabaseType databaseType)
PLSQLargumentback to summary
public PLSQLargument(String name, int originalIndex, DatasourceCall.ParameterType direction, DatabaseType databaseType, int length)
PLSQLargumentback to summary
public PLSQLargument(String name, int originalIndex, DatasourceCall.ParameterType direction, DatabaseType databaseType, int precision, int scale)

Method Detail

cloneback to summary
protected PLSQLargument clone()

Overrides java.lang.Object.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:PLSQLargument

a clone of this instance.

Annotations
@Override
setIsNonAssociativeCollectionback to summary
public void setIsNonAssociativeCollection(boolean isNonAsscociative)

Sets flag on this argument's database type indicating that it represents a non-associative collection, i.e. Nested Table (as opposed to a Varray). The value should be false (default) for associative/indexed collections (Varrays), and true for non-associative collections (Nested Tables). It is assumed that the database type has been determined to be a PLSQLCollection prior to calling this method - if this argument's database type is not a PLSQLCollection, no operation is performed. The preferred method of flagging a PLSQCollection as a Nested Table is to use the setIsNestedTable(boolean) method directly on PLSQLCollection.

Parameters
isNonAsscociative:boolean

true indicates this argument's database type represents a Nested Table

See Also
org.eclipse.persistence.platform.database.oracle.plsql.PLSQLCollection
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

Annotations
@Override
useNamedCursorOutputAsResultSetback to summary
public void useNamedCursorOutputAsResultSet()