Class PLSQLrecord
- java.lang.Object
-
- org.eclipse.persistence.internal.helper.ComplexDatabaseType
-
- org.eclipse.persistence.platform.database.oracle.plsql.PLSQLrecord
-
- All Implemented Interfaces:
java.lang.Cloneable
,DatabaseType
,SimpleDatabaseType
,OraclePLSQLType
public class PLSQLrecord extends ComplexDatabaseType implements OraclePLSQLType, java.lang.Cloneable
PUBLIC: describe an Oracle PL/SQL Record type- Since:
- Oracle TopLink 11.x.x
- Author:
- Mike Norman - [email protected]
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.eclipse.persistence.internal.helper.DatabaseType
DatabaseType.DatabaseTypeHelper
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<PLSQLargument>
fields
-
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
-
Fields inherited from interface org.eclipse.persistence.platform.database.oracle.plsql.OraclePLSQLType
PLSQLBoolean_IN_CONV, PLSQLBoolean_OUT_CONV
-
-
Constructor Summary
Constructors Constructor Description PLSQLrecord()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addField(java.lang.String fieldName, DatabaseType databaseType)
void
addField(java.lang.String fieldName, DatabaseType databaseType, int length)
void
addField(java.lang.String fieldName, DatabaseType databaseType, int precision, int scale)
void
addField(PLSQLargument field)
void
buildBeginBlock(java.lang.StringBuilder sb, PLSQLargument arg, PLSQLStoredProcedureCall call)
void
buildInDeclare(java.lang.StringBuilder sb, PLSQLargument inArg)
void
buildOutAssignment(java.lang.StringBuilder sb, PLSQLargument outArg, PLSQLStoredProcedureCall call)
void
buildOutDeclare(java.lang.StringBuilder sb, PLSQLargument outArg)
void
buildOutputRow(PLSQLargument outArg, AbstractRecord outputRow, DatabaseRecord newOutputRow, java.util.List<DatabaseField> outputRowFields, java.util.List outputRowValues)
PLSQLrecord
clone()
int
computeInIndex(PLSQLargument inArg, int newIndex, java.util.ListIterator<PLSQLargument> iterator)
int
computeOutIndex(PLSQLargument outArg, int newIndex, java.util.ListIterator<PLSQLargument> iterator)
java.util.List<PLSQLargument>
getFields()
Return the record's fields defined as PLSQLargument.int
getSqlCode()
boolean
isRecord()
void
logParameter(java.lang.StringBuilder sb, DatasourceCall.ParameterType direction, PLSQLargument arg, AbstractRecord translationRow, DatabasePlatform platform)
void
translate(PLSQLargument arg, AbstractRecord translationRow, AbstractRecord copyOfTranslationRow, java.util.List<DatabaseField> copyOfTranslationFields, java.util.List<DatabaseField> translationRowFields, java.util.List translationRowValues, StoredProcedureCall call)
-
Methods inherited from class org.eclipse.persistence.internal.helper.ComplexDatabaseType
getCompatibleType, getConversionCode, getJavaType, getJavaTypeName, getTypeName, hasCompatibleType, isArray, isCollection, isComplexDatabaseType, isCursor, isJDBCType, isStruct, logParameter, setCompatibleType, setJavaType, setJavaTypeName, setTypeName, toString
-
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
getConversionCode, getTypeName, isComplexDatabaseType, isJDBCType, logParameter
-
-
-
-
Field Detail
-
fields
protected java.util.List<PLSQLargument> fields
-
-
Method Detail
-
clone
public PLSQLrecord clone()
- Overrides:
clone
in classComplexDatabaseType
-
isRecord
public boolean isRecord()
- Overrides:
isRecord
in classComplexDatabaseType
-
getFields
public java.util.List<PLSQLargument> getFields()
Return the record's fields defined as PLSQLargument.
-
getSqlCode
public int getSqlCode()
- Specified by:
getSqlCode
in interfaceDatabaseType
-
addField
public void addField(PLSQLargument field)
-
addField
public void addField(java.lang.String fieldName, DatabaseType databaseType)
-
addField
public void addField(java.lang.String fieldName, DatabaseType databaseType, int precision, int scale)
-
addField
public void addField(java.lang.String fieldName, DatabaseType databaseType, int length)
-
computeInIndex
public int computeInIndex(PLSQLargument inArg, int newIndex, java.util.ListIterator<PLSQLargument> iterator)
- Specified by:
computeInIndex
in interfaceDatabaseType
- Overrides:
computeInIndex
in classComplexDatabaseType
-
computeOutIndex
public int computeOutIndex(PLSQLargument outArg, int newIndex, java.util.ListIterator<PLSQLargument> iterator)
- Specified by:
computeOutIndex
in interfaceDatabaseType
- Overrides:
computeOutIndex
in classComplexDatabaseType
-
buildInDeclare
public void buildInDeclare(java.lang.StringBuilder sb, PLSQLargument inArg)
- Specified by:
buildInDeclare
in interfaceDatabaseType
- Overrides:
buildInDeclare
in classComplexDatabaseType
-
buildOutDeclare
public void buildOutDeclare(java.lang.StringBuilder sb, PLSQLargument outArg)
- Specified by:
buildOutDeclare
in interfaceDatabaseType
- Overrides:
buildOutDeclare
in classComplexDatabaseType
-
buildBeginBlock
public void buildBeginBlock(java.lang.StringBuilder sb, PLSQLargument arg, PLSQLStoredProcedureCall call)
- Specified by:
buildBeginBlock
in interfaceDatabaseType
- Overrides:
buildBeginBlock
in classComplexDatabaseType
-
buildOutAssignment
public void buildOutAssignment(java.lang.StringBuilder sb, PLSQLargument outArg, PLSQLStoredProcedureCall call)
- Specified by:
buildOutAssignment
in interfaceDatabaseType
- Overrides:
buildOutAssignment
in classComplexDatabaseType
-
translate
public void translate(PLSQLargument arg, AbstractRecord translationRow, AbstractRecord copyOfTranslationRow, java.util.List<DatabaseField> copyOfTranslationFields, java.util.List<DatabaseField> translationRowFields, java.util.List translationRowValues, StoredProcedureCall call)
- Specified by:
translate
in interfaceDatabaseType
- Overrides:
translate
in classComplexDatabaseType
-
buildOutputRow
public void buildOutputRow(PLSQLargument outArg, AbstractRecord outputRow, DatabaseRecord newOutputRow, java.util.List<DatabaseField> outputRowFields, java.util.List outputRowValues)
- Specified by:
buildOutputRow
in interfaceDatabaseType
- Overrides:
buildOutputRow
in classComplexDatabaseType
-
logParameter
public void logParameter(java.lang.StringBuilder sb, DatasourceCall.ParameterType direction, PLSQLargument arg, AbstractRecord translationRow, DatabasePlatform platform)
- Specified by:
logParameter
in interfaceDatabaseType
- Overrides:
logParameter
in classComplexDatabaseType
-
-