org.eclipse.persistence.platform.database.oracle
Class PLSQLrecord
java.lang.Object
org.eclipse.persistence.platform.database.oracle.PLSQLrecord
- All Implemented Interfaces:
- java.lang.Cloneable, org.eclipse.persistence.internal.helper.ComplexDatabaseType, org.eclipse.persistence.internal.helper.DatabaseType, org.eclipse.persistence.internal.helper.SimpleDatabaseType, OraclePLSQLType
public class PLSQLrecord
- extends java.lang.Object
- implements org.eclipse.persistence.internal.helper.ComplexDatabaseType, OraclePLSQLType, java.lang.Cloneable
PUBLIC: describe an Oracle PL/SQL Record type
- Author:
- Mike Norman - michael.norman@oracle.com
- Since:
- Oracle TopLink 11.x.x
Method Summary |
void |
addField(java.lang.String fieldName,
org.eclipse.persistence.internal.helper.DatabaseType databaseType)
|
void |
addField(java.lang.String fieldName,
org.eclipse.persistence.internal.helper.DatabaseType databaseType,
int length)
|
void |
addField(java.lang.String fieldName,
org.eclipse.persistence.internal.helper.DatabaseType databaseType,
int precision,
int scale)
|
void |
buildBeginBlock(java.lang.StringBuilder sb,
PLSQLargument arg)
|
void |
buildInDeclare(java.lang.StringBuilder sb,
PLSQLargument inArg)
|
void |
buildOutAssignment(java.lang.StringBuilder sb,
PLSQLargument outArg)
|
void |
buildOutDeclare(java.lang.StringBuilder sb,
PLSQLargument outArg)
|
void |
buildOutputRow(PLSQLargument outArg,
org.eclipse.persistence.internal.sessions.AbstractRecord outputRow,
DatabaseRecord newOutputRow,
java.util.Vector outputRowFields,
java.util.Vector outputRowValues)
|
PLSQLrecord |
clone()
|
int |
computeInIndex(PLSQLargument inArg,
int newIndex,
java.util.ListIterator<PLSQLargument> i)
|
int |
computeOutIndex(PLSQLargument outArg,
int newIndex,
java.util.ListIterator<PLSQLargument> i)
|
PLSQLStoredProcedureCall |
getCall()
|
java.lang.String |
getCompatibleType()
|
int |
getConversionCode()
|
java.lang.String |
getRecordName()
|
int |
getSqlCode()
|
java.lang.String |
getTypeName()
|
boolean |
hasCompatibleType()
|
boolean |
isComplexDatabaseType()
|
boolean |
isJDBCType()
|
void |
logParameter(java.lang.StringBuilder sb,
java.lang.Integer direction,
PLSQLargument arg,
org.eclipse.persistence.internal.sessions.AbstractRecord translationRow,
DatabasePlatform platform)
|
void |
setCall(PLSQLStoredProcedureCall call)
|
void |
setCompatibleType(java.lang.String compatibleType)
|
void |
setHasCompatibleType(boolean hasCompatibleType)
|
void |
setRecordName(java.lang.String name)
|
void |
setTypeName(java.lang.String typeName)
|
void |
translate(PLSQLargument arg,
org.eclipse.persistence.internal.sessions.AbstractRecord translationRow,
org.eclipse.persistence.internal.sessions.AbstractRecord copyOfTranslationRow,
java.util.Vector copyOfTranslationFields,
java.util.Vector translationRowFields,
java.util.Vector translationRowValues)
|
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
recordName
protected java.lang.String recordName
typeName
protected java.lang.String typeName
compatibleType
protected java.lang.String compatibleType
fields
protected java.util.List<PLSQLargument> fields
call
protected PLSQLStoredProcedureCall call
PLSQLrecord
public PLSQLrecord()
clone
public PLSQLrecord clone()
- Specified by:
clone
in interface org.eclipse.persistence.internal.helper.ComplexDatabaseType
- Overrides:
clone
in class java.lang.Object
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
getRecordName
public java.lang.String getRecordName()
setRecordName
public void setRecordName(java.lang.String name)
getTypeName
public java.lang.String getTypeName()
- Specified by:
getTypeName
in interface org.eclipse.persistence.internal.helper.DatabaseType
setTypeName
public void setTypeName(java.lang.String typeName)
hasCompatibleType
public boolean hasCompatibleType()
- Specified by:
hasCompatibleType
in interface org.eclipse.persistence.internal.helper.ComplexDatabaseType
setHasCompatibleType
public void setHasCompatibleType(boolean hasCompatibleType)
getCompatibleType
public java.lang.String getCompatibleType()
- Specified by:
getCompatibleType
in interface org.eclipse.persistence.internal.helper.ComplexDatabaseType
setCompatibleType
public void setCompatibleType(java.lang.String compatibleType)
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
getCall
public PLSQLStoredProcedureCall getCall()
setCall
public void setCall(PLSQLStoredProcedureCall call)
- Specified by:
setCall
in interface org.eclipse.persistence.internal.helper.ComplexDatabaseType
addField
public void addField(java.lang.String fieldName,
org.eclipse.persistence.internal.helper.DatabaseType databaseType)
addField
public void addField(java.lang.String fieldName,
org.eclipse.persistence.internal.helper.DatabaseType databaseType,
int precision,
int scale)
addField
public void addField(java.lang.String fieldName,
org.eclipse.persistence.internal.helper.DatabaseType databaseType,
int length)
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
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
buildBeginBlock
public void buildBeginBlock(java.lang.StringBuilder sb,
PLSQLargument arg)
- Specified by:
buildBeginBlock
in interface org.eclipse.persistence.internal.helper.DatabaseType
buildOutAssignment
public void buildOutAssignment(java.lang.StringBuilder sb,
PLSQLargument outArg)
- 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.Vector copyOfTranslationFields,
java.util.Vector translationRowFields,
java.util.Vector translationRowValues)
- 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.Vector outputRowFields,
java.util.Vector 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