Class ComplexDatabaseType
- java.lang.Object
-
- org.eclipse.persistence.internal.helper.ComplexDatabaseType
-
- All Implemented Interfaces:
java.lang.Cloneable,DatabaseType
- Direct Known Subclasses:
OracleArrayType,OracleObjectType,PLSQLCollection,PLSQLCursor,PLSQLrecord
public abstract class ComplexDatabaseType extends java.lang.Object implements DatabaseType, java.lang.Cloneable
PUBLIC: Abstract class for Complex Database types (e.g. PL/SQL records, PL/SQL collections)- 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.lang.StringcompatibleTypeprotected java.lang.ClassjavaTypeDefines the Java class that the complex type maps to.protected java.lang.StringjavaTypeNameprotected java.lang.StringtypeName-
Fields inherited from interface org.eclipse.persistence.internal.helper.DatabaseType
ARGNAME_SIZE_LIMIT, COMPAT_SHORT_PREFIX, COMPAT_SUFFIX, TARGET_SHORT_PREFIX, TARGET_SUFFIX
-
-
Constructor Summary
Constructors Constructor Description ComplexDatabaseType()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description 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)ComplexDatabaseTypeclone()intcomputeInIndex(PLSQLargument inArg, int newIndex, java.util.ListIterator<PLSQLargument> i)intcomputeOutIndex(PLSQLargument outArg, int newIndex, java.util.ListIterator<PLSQLargument> i)java.lang.StringgetCompatibleType()intgetConversionCode()java.lang.ClassgetJavaType()Return the Java class that the complex type maps to.java.lang.StringgetJavaTypeName()java.lang.StringgetTypeName()booleanhasCompatibleType()booleanisArray()booleanisCollection()booleanisComplexDatabaseType()booleanisCursor()Indicates if a given subclass represents a PL/SQL cursor.booleanisJDBCType()booleanisRecord()booleanisStruct()voidlogParameter(java.lang.StringBuilder sb, java.lang.Integer direction, PLSQLargument arg, AbstractRecord translationRow, DatabasePlatform platform)Deprecated.voidlogParameter(java.lang.StringBuilder sb, DatasourceCall.ParameterType direction, PLSQLargument arg, AbstractRecord translationRow, DatabasePlatform platform)voidsetCompatibleType(java.lang.String compatibleType)voidsetJavaType(java.lang.Class javaType)Set the Java class that the complex type maps to.voidsetJavaTypeName(java.lang.String javaTypeName)voidsetTypeName(java.lang.String typeName)java.lang.StringtoString()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 java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.eclipse.persistence.internal.helper.DatabaseType
getSqlCode
-
-
-
-
Method Detail
-
isRecord
public boolean isRecord()
-
isCollection
public boolean isCollection()
-
isStruct
public boolean isStruct()
-
isArray
public boolean isArray()
-
isCursor
public boolean isCursor()
Indicates if a given subclass represents a PL/SQL cursor.- See Also:
PLSQLCursor
-
getConversionCode
public int getConversionCode()
- Specified by:
getConversionCodein interfaceDatabaseType
-
isComplexDatabaseType
public boolean isComplexDatabaseType()
- Specified by:
isComplexDatabaseTypein interfaceDatabaseType
-
isJDBCType
public boolean isJDBCType()
- Specified by:
isJDBCTypein interfaceDatabaseType
-
hasCompatibleType
public boolean hasCompatibleType()
-
getCompatibleType
public java.lang.String getCompatibleType()
-
setCompatibleType
public void setCompatibleType(java.lang.String compatibleType)
-
getTypeName
public java.lang.String getTypeName()
- Specified by:
getTypeNamein interfaceDatabaseType
-
setTypeName
public void setTypeName(java.lang.String typeName)
-
setJavaType
public void setJavaType(java.lang.Class javaType)
Set the Java class that the complex type maps to. The mapped class for a Record type, and collection class for Collection type.
-
getJavaType
public java.lang.Class getJavaType()
Return the Java class that the complex type maps to.
-
getJavaTypeName
public java.lang.String getJavaTypeName()
-
setJavaTypeName
public void setJavaTypeName(java.lang.String javaTypeName)
-
clone
public ComplexDatabaseType clone()
- Overrides:
clonein classjava.lang.Object
-
buildInDeclare
public void buildInDeclare(java.lang.StringBuilder sb, PLSQLargument inArg)- Specified by:
buildInDeclarein interfaceDatabaseType
-
buildOutDeclare
public void buildOutDeclare(java.lang.StringBuilder sb, PLSQLargument outArg)- Specified by:
buildOutDeclarein interfaceDatabaseType
-
buildBeginBlock
public void buildBeginBlock(java.lang.StringBuilder sb, PLSQLargument arg, PLSQLStoredProcedureCall call)- Specified by:
buildBeginBlockin interfaceDatabaseType
-
buildOutAssignment
public void buildOutAssignment(java.lang.StringBuilder sb, PLSQLargument outArg, PLSQLStoredProcedureCall call)- Specified by:
buildOutAssignmentin interfaceDatabaseType
-
buildOutputRow
public void buildOutputRow(PLSQLargument outArg, AbstractRecord outputRow, DatabaseRecord newOutputRow, java.util.List<DatabaseField> outputRowFields, java.util.List outputRowValues)
- Specified by:
buildOutputRowin interfaceDatabaseType
-
computeInIndex
public int computeInIndex(PLSQLargument inArg, int newIndex, java.util.ListIterator<PLSQLargument> i)
- Specified by:
computeInIndexin interfaceDatabaseType
-
computeOutIndex
public int computeOutIndex(PLSQLargument outArg, int newIndex, java.util.ListIterator<PLSQLargument> i)
- Specified by:
computeOutIndexin interfaceDatabaseType
-
logParameter
@Deprecated public void logParameter(java.lang.StringBuilder sb, java.lang.Integer direction, PLSQLargument arg, AbstractRecord translationRow, DatabasePlatform platform)Deprecated.- Specified by:
logParameterin interfaceDatabaseType
-
logParameter
public void logParameter(java.lang.StringBuilder sb, DatasourceCall.ParameterType direction, PLSQLargument arg, AbstractRecord translationRow, DatabasePlatform platform)- Specified by:
logParameterin interfaceDatabaseType
-
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
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-