Class ComplexDatabaseType
- java.lang.Object
-
- org.eclipse.persistence.internal.helper.ComplexDatabaseType
-
- All Implemented Interfaces:
Cloneable
,DatabaseType
- Direct Known Subclasses:
OracleArrayType
,OracleObjectType
,PLSQLCollection
,PLSQLCursor
,PLSQLrecord
public abstract class ComplexDatabaseType extends Object implements DatabaseType, 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 - [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 String
compatibleType
protected Class
javaType
Defines the Java class that the complex type maps to.protected String
javaTypeName
protected String
typeName
-
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
-
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:
getConversionCode
in interfaceDatabaseType
-
isComplexDatabaseType
public boolean isComplexDatabaseType()
- Specified by:
isComplexDatabaseType
in interfaceDatabaseType
-
isJDBCType
public boolean isJDBCType()
- Specified by:
isJDBCType
in interfaceDatabaseType
-
hasCompatibleType
public boolean hasCompatibleType()
-
getCompatibleType
public String getCompatibleType()
-
setCompatibleType
public void setCompatibleType(String compatibleType)
-
getTypeName
public String getTypeName()
- Specified by:
getTypeName
in interfaceDatabaseType
-
setTypeName
public void setTypeName(String typeName)
-
setJavaType
public void setJavaType(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 Class getJavaType()
Return the Java class that the complex type maps to.
-
getJavaTypeName
public String getJavaTypeName()
-
setJavaTypeName
public void setJavaTypeName(String javaTypeName)
-
clone
public ComplexDatabaseType clone()
-
buildInDeclare
public void buildInDeclare(StringBuilder sb, PLSQLargument inArg)
- Specified by:
buildInDeclare
in interfaceDatabaseType
-
buildOutDeclare
public void buildOutDeclare(StringBuilder sb, PLSQLargument outArg)
- Specified by:
buildOutDeclare
in interfaceDatabaseType
-
buildBeginBlock
public void buildBeginBlock(StringBuilder sb, PLSQLargument arg, PLSQLStoredProcedureCall call)
- Specified by:
buildBeginBlock
in interfaceDatabaseType
-
buildOutAssignment
public void buildOutAssignment(StringBuilder sb, PLSQLargument outArg, PLSQLStoredProcedureCall call)
- Specified by:
buildOutAssignment
in interfaceDatabaseType
-
buildOutputRow
public void buildOutputRow(PLSQLargument outArg, AbstractRecord outputRow, DatabaseRecord newOutputRow, List<DatabaseField> outputRowFields, List outputRowValues)
- Specified by:
buildOutputRow
in interfaceDatabaseType
-
computeInIndex
public int computeInIndex(PLSQLargument inArg, int newIndex, ListIterator<PLSQLargument> i)
- Specified by:
computeInIndex
in interfaceDatabaseType
-
computeOutIndex
public int computeOutIndex(PLSQLargument outArg, int newIndex, ListIterator<PLSQLargument> i)
- Specified by:
computeOutIndex
in interfaceDatabaseType
-
logParameter
@Deprecated public void logParameter(StringBuilder sb, Integer direction, PLSQLargument arg, AbstractRecord translationRow, DatabasePlatform platform)
Deprecated.- Specified by:
logParameter
in interfaceDatabaseType
-
logParameter
public void logParameter(StringBuilder sb, DatasourceCall.ParameterType direction, PLSQLargument arg, AbstractRecord translationRow, DatabasePlatform platform)
- Specified by:
logParameter
in interfaceDatabaseType
-
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
-
-