Module org.eclipse.persistence.core
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 for Complex Database types
(e.g. PL/SQL records, PL/SQL collections)
- Since:
- Oracle TopLink 11.x.x
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.persistence.internal.helper.DatabaseType
DatabaseType.DatabaseTypeHelper
-
Field Summary
Modifier and TypeFieldDescriptionprotected String
protected Class
<?> Defines the Java class that the complex type maps to.protected String
protected String
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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
buildBeginBlock
(StringBuilder sb, PLSQLargument arg, PLSQLStoredProcedureCall call) void
buildInDeclare
(StringBuilder sb, PLSQLargument inArg) void
buildOutAssignment
(StringBuilder sb, PLSQLargument outArg, PLSQLStoredProcedureCall call) void
buildOutDeclare
(StringBuilder sb, PLSQLargument outArg) void
buildOutputRow
(PLSQLargument outArg, AbstractRecord outputRow, DatabaseRecord newOutputRow, List<DatabaseField> outputRowFields, List outputRowValues) clone()
int
computeInIndex
(PLSQLargument inArg, int newIndex, ListIterator<PLSQLargument> i) int
computeOutIndex
(PLSQLargument outArg, int newIndex, ListIterator<PLSQLargument> i) int
Class
<?> Return the Java class that the complex type maps to.boolean
boolean
isArray()
boolean
boolean
boolean
isCursor()
Indicates if a given subclass represents a PL/SQL cursor.boolean
boolean
isRecord()
boolean
isStruct()
void
logParameter
(StringBuilder sb, DatasourceCall.ParameterType direction, PLSQLargument arg, AbstractRecord translationRow, DatabasePlatform platform) void
setCompatibleType
(String compatibleType) void
setJavaType
(Class<?> javaType) Set the Java class that the complex type maps to.void
setJavaTypeName
(String javaTypeName) void
setTypeName
(String typeName) toString()
void
translate
(PLSQLargument arg, AbstractRecord translationRow, AbstractRecord copyOfTranslationRow, List<DatabaseField> copyOfTranslationFields, List<DatabaseField> translationRowFields, 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
-
Field Details
-
typeName
-
compatibleType
-
javaType
Defines the Java class that the complex type maps to. -
javaTypeName
-
-
Constructor Details
-
ComplexDatabaseType
public ComplexDatabaseType()
-
-
Method Details
-
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:
-
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
-
setCompatibleType
-
getTypeName
- Specified by:
getTypeName
in interfaceDatabaseType
-
setTypeName
-
setJavaType
Set the Java class that the complex type maps to. The mapped class for a Record type, and collection class for Collection type. -
getJavaType
Return the Java class that the complex type maps to. -
getJavaTypeName
-
setJavaTypeName
-
clone
-
buildInDeclare
- Specified by:
buildInDeclare
in interfaceDatabaseType
-
buildOutDeclare
- Specified by:
buildOutDeclare
in interfaceDatabaseType
-
buildBeginBlock
- 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
- Specified by:
computeInIndex
in interfaceDatabaseType
-
computeOutIndex
- Specified by:
computeOutIndex
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
-
toString
-