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
FieldsModifier and TypeFieldDescriptionprotected Stringprotected Class<?> Defines the Java class that the complex type maps to.protected Stringprotected StringFields 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 -
Method Summary
Modifier and TypeMethodDescriptionvoidbuildBeginBlock(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, AbstractRecord outputRow, DatabaseRecord newOutputRow, List<DatabaseField> outputRowFields, List outputRowValues) clone()intcomputeInIndex(PLSQLargument inArg, int newIndex, ListIterator<PLSQLargument> i) intcomputeOutIndex(PLSQLargument outArg, int newIndex, ListIterator<PLSQLargument> i) intClass<?> Return the Java class that the complex type maps to.booleanbooleanisArray()booleanbooleanbooleanisCursor()Indicates if a given subclass represents a PL/SQL cursor.booleanbooleanisRecord()booleanisStruct()voidlogParameter(StringBuilder sb, DatasourceCall.ParameterType direction, PLSQLargument arg, AbstractRecord translationRow, DatabasePlatform platform) voidsetCompatibleType(String compatibleType) voidsetJavaType(Class<?> javaType) Set the Java class that the complex type maps to.voidsetJavaTypeName(String javaTypeName) voidsetTypeName(String typeName) toString()voidtranslate(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, waitMethods 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:
getConversionCodein interfaceDatabaseType
-
isComplexDatabaseType
public boolean isComplexDatabaseType()- Specified by:
isComplexDatabaseTypein interfaceDatabaseType
-
isJDBCType
public boolean isJDBCType()- Specified by:
isJDBCTypein interfaceDatabaseType
-
hasCompatibleType
public boolean hasCompatibleType() -
getCompatibleType
-
setCompatibleType
-
getTypeName
- Specified by:
getTypeNamein 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:
buildInDeclarein interfaceDatabaseType
-
buildOutDeclare
- Specified by:
buildOutDeclarein interfaceDatabaseType
-
buildBeginBlock
- Specified by:
buildBeginBlockin interfaceDatabaseType
-
buildOutAssignment
public void buildOutAssignment(StringBuilder sb, PLSQLargument outArg, PLSQLStoredProcedureCall call) - Specified by:
buildOutAssignmentin interfaceDatabaseType
-
buildOutputRow
public void buildOutputRow(PLSQLargument outArg, AbstractRecord outputRow, DatabaseRecord newOutputRow, List<DatabaseField> outputRowFields, List outputRowValues) - Specified by:
buildOutputRowin interfaceDatabaseType
-
computeInIndex
- Specified by:
computeInIndexin interfaceDatabaseType
-
computeOutIndex
- Specified by:
computeOutIndexin interfaceDatabaseType
-
logParameter
public void logParameter(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, List<DatabaseField> copyOfTranslationFields, List<DatabaseField> translationRowFields, List translationRowValues, StoredProcedureCall call) - Specified by:
translatein interfaceDatabaseType
-
toString
-