Class PLSQLrecord
- java.lang.Object
-
- org.eclipse.persistence.internal.helper.ComplexDatabaseType
-
- org.eclipse.persistence.platform.database.oracle.plsql.PLSQLrecord
-
- All Implemented Interfaces:
Cloneable
,DatabaseType
,SimpleDatabaseType
,OraclePLSQLType
public class PLSQLrecord extends ComplexDatabaseType implements OraclePLSQLType, 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 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
-
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 List<PLSQLargument> fields
-
-
Method Detail
-
clone
public PLSQLrecord clone()
- Overrides:
clone
in classComplexDatabaseType
-
isRecord
public boolean isRecord()
- Overrides:
isRecord
in classComplexDatabaseType
-
getFields
public 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(String fieldName, DatabaseType databaseType)
-
addField
public void addField(String fieldName, DatabaseType databaseType, int precision, int scale)
-
addField
public void addField(String fieldName, DatabaseType databaseType, int length)
-
computeInIndex
public int computeInIndex(PLSQLargument inArg, int newIndex, ListIterator<PLSQLargument> iterator)
- Specified by:
computeInIndex
in interfaceDatabaseType
- Overrides:
computeInIndex
in classComplexDatabaseType
-
computeOutIndex
public int computeOutIndex(PLSQLargument outArg, int newIndex, ListIterator<PLSQLargument> iterator)
- Specified by:
computeOutIndex
in interfaceDatabaseType
- Overrides:
computeOutIndex
in classComplexDatabaseType
-
buildInDeclare
public void buildInDeclare(StringBuilder sb, PLSQLargument inArg)
- Specified by:
buildInDeclare
in interfaceDatabaseType
- Overrides:
buildInDeclare
in classComplexDatabaseType
-
buildOutDeclare
public void buildOutDeclare(StringBuilder sb, PLSQLargument outArg)
- Specified by:
buildOutDeclare
in interfaceDatabaseType
- Overrides:
buildOutDeclare
in classComplexDatabaseType
-
buildBeginBlock
public void buildBeginBlock(StringBuilder sb, PLSQLargument arg, PLSQLStoredProcedureCall call)
- Specified by:
buildBeginBlock
in interfaceDatabaseType
- Overrides:
buildBeginBlock
in classComplexDatabaseType
-
buildOutAssignment
public void buildOutAssignment(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, List<DatabaseField> copyOfTranslationFields, List<DatabaseField> translationRowFields, List translationRowValues, StoredProcedureCall call)
- Specified by:
translate
in interfaceDatabaseType
- Overrides:
translate
in classComplexDatabaseType
-
buildOutputRow
public void buildOutputRow(PLSQLargument outArg, AbstractRecord outputRow, DatabaseRecord newOutputRow, List<DatabaseField> outputRowFields, List outputRowValues)
- Specified by:
buildOutputRow
in interfaceDatabaseType
- Overrides:
buildOutputRow
in classComplexDatabaseType
-
logParameter
public void logParameter(StringBuilder sb, DatasourceCall.ParameterType direction, PLSQLargument arg, AbstractRecord translationRow, DatabasePlatform platform)
- Specified by:
logParameter
in interfaceDatabaseType
- Overrides:
logParameter
in classComplexDatabaseType
-
-