Module org.eclipse.persistence.core
Enum OraclePLSQLTypes
java.lang.Object
java.lang.Enum<OraclePLSQLTypes>
org.eclipse.persistence.platform.database.oracle.plsql.OraclePLSQLTypes
- All Implemented Interfaces:
Serializable,Comparable<OraclePLSQLTypes>,java.lang.constant.Constable,DatabaseType,SimpleDatabaseType,OraclePLSQLType
public enum OraclePLSQLTypes
extends Enum<OraclePLSQLTypes>
implements SimpleDatabaseType, OraclePLSQLType
PUBLIC: Oracle PL/SQL types
- Since:
- Oracle TopLink 11.x.x
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>Nested classes/interfaces inherited from interface org.eclipse.persistence.internal.helper.DatabaseType
DatabaseType.DatabaseTypeHelper -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Field Summary
Fields inherited from interface org.eclipse.persistence.internal.helper.DatabaseType
ARGNAME_SIZE_LIMIT, COMPAT_SHORT_PREFIX, COMPAT_SUFFIX, TARGET_SHORT_PREFIX, TARGET_SUFFIXFields inherited from interface org.eclipse.persistence.platform.database.oracle.plsql.OraclePLSQLType
PLSQLBoolean_IN_CONV, PLSQLBoolean_OUT_CONV -
Method Summary
Modifier and TypeMethodDescriptionvoidbuildBeginBlock(StringBuilder sb, PLSQLargument arg, PLSQLStoredProcedureCall call) INTERNAL: Append any code or translation required for the type.voidbuildInDeclare(StringBuilder sb, PLSQLargument inArg) INTERNAL: Append the variable declaration for the type.voidbuildOutAssignment(StringBuilder sb, PLSQLargument arg, PLSQLStoredProcedureCall call) INTERNAL: Append any code or translation for assigning the output value.voidbuildOutDeclare(StringBuilder sb, PLSQLargument outArg) INTERNAL: Append the variable declaration for the type.voidbuildOutputRow(PLSQLargument outArg, AbstractRecord outputRow, DatabaseRecord newOutputRow, List<DatabaseField> outputRowFields, List outputRowValues) INTERNAL: Build the query output row from the call output row.intcomputeInIndex(PLSQLargument inArg, int newIndex, ListIterator<PLSQLargument> i) INTERNAL: Return the parameter index for the IN parameter.intcomputeOutIndex(PLSQLargument outArg, int newIndex, ListIterator<PLSQLargument> i) INTERNAL: Return the parameter index for the OUT parameter.intstatic DatabaseTypegetDatabaseTypeForCode(String typeName) intbooleanbooleanvoidlogParameter(StringBuilder sb, DatasourceCall.ParameterType direction, PLSQLargument arg, AbstractRecord translationRow, DatabasePlatform platform) INTERNAL: Append the parameter for logging purposes.voidtranslate(PLSQLargument arg, AbstractRecord translationRow, AbstractRecord copyOfTranslationRow, List<DatabaseField> copyOfTranslationFields, List<DatabaseField> translationRowFields, List translationRowValues, StoredProcedureCall call) INTERNAL: Translate the argument value from the query translation row to call translation row.static OraclePLSQLTypesReturns the enum constant of this type with the specified name.static OraclePLSQLTypes[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
BinaryInteger
-
Dec
-
Int
-
Natural
-
NaturalN
-
PLSQLBoolean
-
PLSQLInteger
-
Positive
-
PositiveN
-
SignType
-
XMLType
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
isComplexDatabaseType
public boolean isComplexDatabaseType()- Specified by:
isComplexDatabaseTypein interfaceDatabaseType
-
getSqlCode
public int getSqlCode()- Specified by:
getSqlCodein interfaceDatabaseType
-
getConversionCode
public int getConversionCode()- Specified by:
getConversionCodein interfaceDatabaseType
-
getTypeName
- Specified by:
getTypeNamein interfaceDatabaseType
-
isJDBCType
public boolean isJDBCType()- Specified by:
isJDBCTypein interfaceDatabaseType
-
computeInIndex
INTERNAL: Return the parameter index for the IN parameter.- Specified by:
computeInIndexin interfaceDatabaseType
-
computeOutIndex
INTERNAL: Return the parameter index for the OUT parameter.- Specified by:
computeOutIndexin interfaceDatabaseType
-
buildInDeclare
INTERNAL: Append the variable declaration for the type.- Specified by:
buildInDeclarein interfaceDatabaseType
-
buildOutDeclare
INTERNAL: Append the variable declaration for the type.- Specified by:
buildOutDeclarein interfaceDatabaseType
-
buildBeginBlock
INTERNAL: Append any code or translation required for the type.- Specified by:
buildBeginBlockin interfaceDatabaseType
-
buildOutAssignment
INTERNAL: Append any code or translation for assigning the output value.- Specified by:
buildOutAssignmentin interfaceDatabaseType
-
translate
public void translate(PLSQLargument arg, AbstractRecord translationRow, AbstractRecord copyOfTranslationRow, List<DatabaseField> copyOfTranslationFields, List<DatabaseField> translationRowFields, List translationRowValues, StoredProcedureCall call) INTERNAL: Translate the argument value from the query translation row to call translation row.- Specified by:
translatein interfaceDatabaseType
-
buildOutputRow
public void buildOutputRow(PLSQLargument outArg, AbstractRecord outputRow, DatabaseRecord newOutputRow, List<DatabaseField> outputRowFields, List outputRowValues) INTERNAL: Build the query output row from the call output row.- Specified by:
buildOutputRowin interfaceDatabaseType
-
logParameter
public void logParameter(StringBuilder sb, DatasourceCall.ParameterType direction, PLSQLargument arg, AbstractRecord translationRow, DatabasePlatform platform) INTERNAL: Append the parameter for logging purposes.- Specified by:
logParameterin interfaceDatabaseType
-
getDatabaseTypeForCode
-