org.eclipse.persistence.platform.database.oracle.jdbc
Class OracleXMLType
java.lang.Object
org.eclipse.persistence.platform.database.oracle.jdbc.OracleXMLType
- All Implemented Interfaces:
- java.lang.Cloneable, org.eclipse.persistence.internal.helper.DatabaseType, org.eclipse.persistence.internal.helper.SimpleDatabaseType
public class OracleXMLType
- extends java.lang.Object
- implements org.eclipse.persistence.internal.helper.SimpleDatabaseType, java.lang.Cloneable
DatabaseType implementation to represent an Oracle XMLType type.
| Nested classes/interfaces inherited from interface org.eclipse.persistence.internal.helper.DatabaseType |
org.eclipse.persistence.internal.helper.DatabaseType.DatabaseTypeHelper |
| Fields inherited from interface org.eclipse.persistence.internal.helper.DatabaseType |
ARGNAME_SIZE_LIMIT, COMPAT_SHORT_PREFIX, COMPAT_SUFFIX, TARGET_SHORT_PREFIX, TARGET_SUFFIX |
|
Method Summary |
void |
buildBeginBlock(java.lang.StringBuilder sb,
PLSQLargument arg,
PLSQLStoredProcedureCall call)
|
void |
buildInDeclare(java.lang.StringBuilder sb,
PLSQLargument inArg)
|
protected void |
buildInitialDeclare(java.lang.StringBuilder sb,
PLSQLargument arg)
|
void |
buildOutAssignment(java.lang.StringBuilder sb,
PLSQLargument outArg,
PLSQLStoredProcedureCall call)
|
void |
buildOutDeclare(java.lang.StringBuilder sb,
PLSQLargument outArg)
|
void |
buildOutputRow(PLSQLargument outArg,
org.eclipse.persistence.internal.sessions.AbstractRecord outputRow,
DatabaseRecord newOutputRow,
java.util.List<org.eclipse.persistence.internal.helper.DatabaseField> outputRowFields,
java.util.List outputRowValues)
|
int |
computeInIndex(PLSQLargument inArg,
int newIndex,
java.util.ListIterator<PLSQLargument> i)
|
int |
computeOutIndex(PLSQLargument outArg,
int newIndex,
java.util.ListIterator<PLSQLargument> i)
|
int |
getConversionCode()
|
int |
getSqlCode()
|
java.lang.String |
getTypeName()
|
boolean |
isComplexDatabaseType()
|
boolean |
isJDBCType()
|
static boolean |
isXMLType(java.lang.String typeName)
Indicates if a given String equals "XMLTYPE". |
void |
logParameter(java.lang.StringBuilder sb,
java.lang.Integer direction,
PLSQLargument arg,
org.eclipse.persistence.internal.sessions.AbstractRecord translationRow,
DatabasePlatform platform)
|
void |
translate(PLSQLargument arg,
org.eclipse.persistence.internal.sessions.AbstractRecord translationRow,
org.eclipse.persistence.internal.sessions.AbstractRecord copyOfTranslationRow,
java.util.List<org.eclipse.persistence.internal.helper.DatabaseField> copyOfTranslationFields,
java.util.List<org.eclipse.persistence.internal.helper.DatabaseField> translationRowFields,
java.util.List translationRowValues,
StoredProcedureCall call)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XMLTYPE_STR
public static java.lang.String XMLTYPE_STR
typeName
public final java.lang.String typeName
OracleXMLType
public OracleXMLType()
- Default constructor.
buildInDeclare
public void buildInDeclare(java.lang.StringBuilder sb,
PLSQLargument inArg)
- Specified by:
buildInDeclare in interface org.eclipse.persistence.internal.helper.DatabaseType
buildOutDeclare
public void buildOutDeclare(java.lang.StringBuilder sb,
PLSQLargument outArg)
- Specified by:
buildOutDeclare in interface org.eclipse.persistence.internal.helper.DatabaseType
buildInitialDeclare
protected void buildInitialDeclare(java.lang.StringBuilder sb,
PLSQLargument arg)
isComplexDatabaseType
public boolean isComplexDatabaseType()
- Specified by:
isComplexDatabaseType in interface org.eclipse.persistence.internal.helper.DatabaseType
isJDBCType
public boolean isJDBCType()
- Specified by:
isJDBCType in interface org.eclipse.persistence.internal.helper.DatabaseType
getSqlCode
public int getSqlCode()
- Specified by:
getSqlCode in interface org.eclipse.persistence.internal.helper.DatabaseType
getConversionCode
public int getConversionCode()
- Specified by:
getConversionCode in interface org.eclipse.persistence.internal.helper.DatabaseType
getTypeName
public java.lang.String getTypeName()
- Specified by:
getTypeName in interface org.eclipse.persistence.internal.helper.DatabaseType
isXMLType
public static boolean isXMLType(java.lang.String typeName)
- Indicates if a given String equals "XMLTYPE". This method will
typically be used instead of performing an instanceof check to
determine if a given DatabaseType is an OracleXMLType instance.
computeInIndex
public int computeInIndex(PLSQLargument inArg,
int newIndex,
java.util.ListIterator<PLSQLargument> i)
- Specified by:
computeInIndex in interface org.eclipse.persistence.internal.helper.DatabaseType
computeOutIndex
public int computeOutIndex(PLSQLargument outArg,
int newIndex,
java.util.ListIterator<PLSQLargument> i)
- Specified by:
computeOutIndex in interface org.eclipse.persistence.internal.helper.DatabaseType
buildBeginBlock
public void buildBeginBlock(java.lang.StringBuilder sb,
PLSQLargument arg,
PLSQLStoredProcedureCall call)
- Specified by:
buildBeginBlock in interface org.eclipse.persistence.internal.helper.DatabaseType
buildOutAssignment
public void buildOutAssignment(java.lang.StringBuilder sb,
PLSQLargument outArg,
PLSQLStoredProcedureCall call)
- Specified by:
buildOutAssignment in interface org.eclipse.persistence.internal.helper.DatabaseType
translate
public void translate(PLSQLargument arg,
org.eclipse.persistence.internal.sessions.AbstractRecord translationRow,
org.eclipse.persistence.internal.sessions.AbstractRecord copyOfTranslationRow,
java.util.List<org.eclipse.persistence.internal.helper.DatabaseField> copyOfTranslationFields,
java.util.List<org.eclipse.persistence.internal.helper.DatabaseField> translationRowFields,
java.util.List translationRowValues,
StoredProcedureCall call)
- Specified by:
translate in interface org.eclipse.persistence.internal.helper.DatabaseType
buildOutputRow
public void buildOutputRow(PLSQLargument outArg,
org.eclipse.persistence.internal.sessions.AbstractRecord outputRow,
DatabaseRecord newOutputRow,
java.util.List<org.eclipse.persistence.internal.helper.DatabaseField> outputRowFields,
java.util.List outputRowValues)
- Specified by:
buildOutputRow in interface org.eclipse.persistence.internal.helper.DatabaseType
logParameter
public void logParameter(java.lang.StringBuilder sb,
java.lang.Integer direction,
PLSQLargument arg,
org.eclipse.persistence.internal.sessions.AbstractRecord translationRow,
DatabasePlatform platform)
- Specified by:
logParameter in interface org.eclipse.persistence.internal.helper.DatabaseType