- java.lang.Object
-
- org.eclipse.persistence.internal.helper.ComplexDatabaseType
-
- org.eclipse.persistence.platform.database.oracle.plsql.PLSQLrecord
-
- All Implemented Interfaces:
Cloneable,org.eclipse.persistence.internal.helper.DatabaseType,org.eclipse.persistence.internal.helper.SimpleDatabaseType,OraclePLSQLType
public class PLSQLrecord extends org.eclipse.persistence.internal.helper.ComplexDatabaseType implements OraclePLSQLType, Cloneable
PUBLIC: describe an Oracle PL/SQL Record type- Author:
- Mike Norman - michael.norman@oracle.com
- Since:
- Oracle TopLink 11.x.x
-
-
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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddField(String fieldName, org.eclipse.persistence.internal.helper.DatabaseType databaseType)voidaddField(String fieldName, org.eclipse.persistence.internal.helper.DatabaseType databaseType, int length)voidaddField(String fieldName, org.eclipse.persistence.internal.helper.DatabaseType databaseType, int precision, int scale)voidaddField(PLSQLargument field)voidbuildBeginBlock(StringBuilder sb, PLSQLargument arg, PLSQLStoredProcedureCall call)voidbuildInDeclare(StringBuilder sb, PLSQLargument inArg)voidbuildOutAssignment(StringBuilder sb, PLSQLargument outArg, PLSQLStoredProcedureCall call)voidbuildOutDeclare(StringBuilder sb, PLSQLargument outArg)voidbuildOutputRow(PLSQLargument outArg, org.eclipse.persistence.internal.sessions.AbstractRecord outputRow, DatabaseRecord newOutputRow, List<org.eclipse.persistence.internal.helper.DatabaseField> outputRowFields, List outputRowValues)PLSQLrecordclone()intcomputeInIndex(PLSQLargument inArg, int newIndex, ListIterator<PLSQLargument> iterator)intcomputeOutIndex(PLSQLargument outArg, int newIndex, ListIterator<PLSQLargument> iterator)List<PLSQLargument>getFields()Return the record's fields defined as PLSQLargument.intgetSqlCode()booleanisRecord()voidlogParameter(StringBuilder sb, org.eclipse.persistence.internal.databaseaccess.DatasourceCall.ParameterType direction, PLSQLargument arg, org.eclipse.persistence.internal.sessions.AbstractRecord translationRow, DatabasePlatform platform)voidtranslate(PLSQLargument arg, org.eclipse.persistence.internal.sessions.AbstractRecord translationRow, org.eclipse.persistence.internal.sessions.AbstractRecord copyOfTranslationRow, List<org.eclipse.persistence.internal.helper.DatabaseField> copyOfTranslationFields, List<org.eclipse.persistence.internal.helper.DatabaseField> translationRowFields, 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, setCompatibleType, setJavaType, setJavaTypeName, setTypeName, toString
-
-
-
-
Field Detail
-
fields
protected List<PLSQLargument> fields
-
-
Method Detail
-
clone
public PLSQLrecord clone()
- Overrides:
clonein classorg.eclipse.persistence.internal.helper.ComplexDatabaseType
-
isRecord
public boolean isRecord()
- Overrides:
isRecordin classorg.eclipse.persistence.internal.helper.ComplexDatabaseType
-
getFields
public List<PLSQLargument> getFields()
Return the record's fields defined as PLSQLargument.
-
getSqlCode
public int getSqlCode()
- Specified by:
getSqlCodein interfaceorg.eclipse.persistence.internal.helper.DatabaseType
-
addField
public void addField(PLSQLargument field)
-
addField
public void addField(String fieldName, org.eclipse.persistence.internal.helper.DatabaseType databaseType)
-
addField
public void addField(String fieldName, org.eclipse.persistence.internal.helper.DatabaseType databaseType, int precision, int scale)
-
addField
public void addField(String fieldName, org.eclipse.persistence.internal.helper.DatabaseType databaseType, int length)
-
computeInIndex
public int computeInIndex(PLSQLargument inArg, int newIndex, ListIterator<PLSQLargument> iterator)
- Specified by:
computeInIndexin interfaceorg.eclipse.persistence.internal.helper.DatabaseType- Overrides:
computeInIndexin classorg.eclipse.persistence.internal.helper.ComplexDatabaseType
-
computeOutIndex
public int computeOutIndex(PLSQLargument outArg, int newIndex, ListIterator<PLSQLargument> iterator)
- Specified by:
computeOutIndexin interfaceorg.eclipse.persistence.internal.helper.DatabaseType- Overrides:
computeOutIndexin classorg.eclipse.persistence.internal.helper.ComplexDatabaseType
-
buildInDeclare
public void buildInDeclare(StringBuilder sb, PLSQLargument inArg)
- Specified by:
buildInDeclarein interfaceorg.eclipse.persistence.internal.helper.DatabaseType- Overrides:
buildInDeclarein classorg.eclipse.persistence.internal.helper.ComplexDatabaseType
-
buildOutDeclare
public void buildOutDeclare(StringBuilder sb, PLSQLargument outArg)
- Specified by:
buildOutDeclarein interfaceorg.eclipse.persistence.internal.helper.DatabaseType- Overrides:
buildOutDeclarein classorg.eclipse.persistence.internal.helper.ComplexDatabaseType
-
buildBeginBlock
public void buildBeginBlock(StringBuilder sb, PLSQLargument arg, PLSQLStoredProcedureCall call)
- Specified by:
buildBeginBlockin interfaceorg.eclipse.persistence.internal.helper.DatabaseType- Overrides:
buildBeginBlockin classorg.eclipse.persistence.internal.helper.ComplexDatabaseType
-
buildOutAssignment
public void buildOutAssignment(StringBuilder sb, PLSQLargument outArg, PLSQLStoredProcedureCall call)
- Specified by:
buildOutAssignmentin interfaceorg.eclipse.persistence.internal.helper.DatabaseType- Overrides:
buildOutAssignmentin classorg.eclipse.persistence.internal.helper.ComplexDatabaseType
-
translate
public void translate(PLSQLargument arg, org.eclipse.persistence.internal.sessions.AbstractRecord translationRow, org.eclipse.persistence.internal.sessions.AbstractRecord copyOfTranslationRow, List<org.eclipse.persistence.internal.helper.DatabaseField> copyOfTranslationFields, List<org.eclipse.persistence.internal.helper.DatabaseField> translationRowFields, List translationRowValues, StoredProcedureCall call)
- Specified by:
translatein interfaceorg.eclipse.persistence.internal.helper.DatabaseType- Overrides:
translatein classorg.eclipse.persistence.internal.helper.ComplexDatabaseType
-
buildOutputRow
public void buildOutputRow(PLSQLargument outArg, org.eclipse.persistence.internal.sessions.AbstractRecord outputRow, DatabaseRecord newOutputRow, List<org.eclipse.persistence.internal.helper.DatabaseField> outputRowFields, List outputRowValues)
- Specified by:
buildOutputRowin interfaceorg.eclipse.persistence.internal.helper.DatabaseType- Overrides:
buildOutputRowin classorg.eclipse.persistence.internal.helper.ComplexDatabaseType
-
logParameter
public void logParameter(StringBuilder sb, org.eclipse.persistence.internal.databaseaccess.DatasourceCall.ParameterType direction, PLSQLargument arg, org.eclipse.persistence.internal.sessions.AbstractRecord translationRow, DatabasePlatform platform)
- Specified by:
logParameterin interfaceorg.eclipse.persistence.internal.helper.DatabaseType- Overrides:
logParameterin classorg.eclipse.persistence.internal.helper.ComplexDatabaseType
-
-