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 - michael.norman@oracle.com
-
-
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 voidaddField(java.lang.String fieldName, DatabaseType databaseType)voidaddField(java.lang.String fieldName, DatabaseType databaseType, int length)voidaddField(java.lang.String fieldName, DatabaseType databaseType, int precision, int scale)voidaddField(PLSQLargument field)voidbuildBeginBlock(java.lang.StringBuilder sb, PLSQLargument arg, PLSQLStoredProcedureCall call)voidbuildInDeclare(java.lang.StringBuilder sb, PLSQLargument inArg)voidbuildOutAssignment(java.lang.StringBuilder sb, PLSQLargument outArg, PLSQLStoredProcedureCall call)voidbuildOutDeclare(java.lang.StringBuilder sb, PLSQLargument outArg)voidbuildOutputRow(PLSQLargument outArg, AbstractRecord outputRow, DatabaseRecord newOutputRow, java.util.List<DatabaseField> outputRowFields, java.util.List outputRowValues)PLSQLrecordclone()intcomputeInIndex(PLSQLargument inArg, int newIndex, java.util.ListIterator<PLSQLargument> iterator)intcomputeOutIndex(PLSQLargument outArg, int newIndex, java.util.ListIterator<PLSQLargument> iterator)java.util.List<PLSQLargument>getFields()Return the record's fields defined as PLSQLargument.intgetSqlCode()booleanisRecord()voidlogParameter(java.lang.StringBuilder sb, DatasourceCall.ParameterType direction, PLSQLargument arg, AbstractRecord translationRow, DatabasePlatform platform)voidtranslate(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:
clonein classComplexDatabaseType
-
isRecord
public boolean isRecord()
- Overrides:
isRecordin classComplexDatabaseType
-
getFields
public java.util.List<PLSQLargument> getFields()
Return the record's fields defined as PLSQLargument.
-
getSqlCode
public int getSqlCode()
- Specified by:
getSqlCodein 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:
computeInIndexin interfaceDatabaseType- Overrides:
computeInIndexin classComplexDatabaseType
-
computeOutIndex
public int computeOutIndex(PLSQLargument outArg, int newIndex, java.util.ListIterator<PLSQLargument> iterator)
- Specified by:
computeOutIndexin interfaceDatabaseType- Overrides:
computeOutIndexin classComplexDatabaseType
-
buildInDeclare
public void buildInDeclare(java.lang.StringBuilder sb, PLSQLargument inArg)- Specified by:
buildInDeclarein interfaceDatabaseType- Overrides:
buildInDeclarein classComplexDatabaseType
-
buildOutDeclare
public void buildOutDeclare(java.lang.StringBuilder sb, PLSQLargument outArg)- Specified by:
buildOutDeclarein interfaceDatabaseType- Overrides:
buildOutDeclarein classComplexDatabaseType
-
buildBeginBlock
public void buildBeginBlock(java.lang.StringBuilder sb, PLSQLargument arg, PLSQLStoredProcedureCall call)- Specified by:
buildBeginBlockin interfaceDatabaseType- Overrides:
buildBeginBlockin classComplexDatabaseType
-
buildOutAssignment
public void buildOutAssignment(java.lang.StringBuilder sb, PLSQLargument outArg, PLSQLStoredProcedureCall call)- Specified by:
buildOutAssignmentin interfaceDatabaseType- Overrides:
buildOutAssignmentin 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:
translatein interfaceDatabaseType- Overrides:
translatein classComplexDatabaseType
-
buildOutputRow
public void buildOutputRow(PLSQLargument outArg, AbstractRecord outputRow, DatabaseRecord newOutputRow, java.util.List<DatabaseField> outputRowFields, java.util.List outputRowValues)
- Specified by:
buildOutputRowin interfaceDatabaseType- Overrides:
buildOutputRowin classComplexDatabaseType
-
logParameter
public void logParameter(java.lang.StringBuilder sb, DatasourceCall.ParameterType direction, PLSQLargument arg, AbstractRecord translationRow, DatabasePlatform platform)- Specified by:
logParameterin interfaceDatabaseType- Overrides:
logParameterin classComplexDatabaseType
-
-