Enum OraclePLSQLTypes
- java.lang.Object
-
- java.lang.Enum<OraclePLSQLTypes>
-
- org.eclipse.persistence.platform.database.oracle.plsql.OraclePLSQLTypes
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<OraclePLSQLTypes>,org.eclipse.persistence.internal.helper.DatabaseType,org.eclipse.persistence.internal.helper.SimpleDatabaseType,OraclePLSQLType
public enum OraclePLSQLTypes extends java.lang.Enum<OraclePLSQLTypes> implements org.eclipse.persistence.internal.helper.SimpleDatabaseType, OraclePLSQLType
PUBLIC: Oracle PL/SQL types- Author:
- Mike Norman - michael.norman@oracle.com
- Since:
- Oracle TopLink 11.x.x
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BinaryIntegerDecIntNaturalNaturalNPLSQLBooleanPLSQLIntegerPositivePositiveNSignTypeXMLType
-
Field Summary
-
Fields inherited from interface org.eclipse.persistence.internal.helper.DatabaseType
ARGNAME_SIZE_LIMIT, COMPAT_SHORT_PREFIX, COMPAT_SUFFIX, TARGET_SHORT_PREFIX, TARGET_SUFFIX
-
Fields inherited from interface org.eclipse.persistence.platform.database.oracle.plsql.OraclePLSQLType
PLSQLBoolean_IN_CONV, PLSQLBoolean_OUT_CONV
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidbuildBeginBlock(java.lang.StringBuilder sb, PLSQLargument arg, PLSQLStoredProcedureCall call)INTERNAL: Append any code or translation required for the type.voidbuildInDeclare(java.lang.StringBuilder sb, PLSQLargument inArg)INTERNAL: Append the variable declaration for the type.voidbuildOutAssignment(java.lang.StringBuilder sb, PLSQLargument arg, PLSQLStoredProcedureCall call)INTERNAL: Append any code or translation for assigning the output value.voidbuildOutDeclare(java.lang.StringBuilder sb, PLSQLargument outArg)INTERNAL: Append the variable declaration for the type.voidbuildOutputRow(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)INTERNAL: Build the query output row from the call output row.intcomputeInIndex(PLSQLargument inArg, int newIndex, java.util.ListIterator<PLSQLargument> i)INTERNAL: Return the parameter index for the IN parameter.intcomputeOutIndex(PLSQLargument outArg, int newIndex, java.util.ListIterator<PLSQLargument> i)INTERNAL: Return the parameter index for the OUT parameter.intgetConversionCode()static org.eclipse.persistence.internal.helper.DatabaseTypegetDatabaseTypeForCode(java.lang.String typeName)intgetSqlCode()java.lang.StringgetTypeName()booleanisComplexDatabaseType()booleanisJDBCType()voidlogParameter(java.lang.StringBuilder sb, java.lang.Integer direction, PLSQLargument arg, org.eclipse.persistence.internal.sessions.AbstractRecord translationRow, DatabasePlatform platform)Deprecated.voidlogParameter(java.lang.StringBuilder sb, org.eclipse.persistence.internal.databaseaccess.DatasourceCall.ParameterType direction, PLSQLargument arg, org.eclipse.persistence.internal.sessions.AbstractRecord translationRow, DatabasePlatform platform)INTERNAL: Append the parameter for logging purposes.voidtranslate(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)INTERNAL: Translate the argument value from the query translation row to call translation row.static OraclePLSQLTypesvalueOf(java.lang.String name)Returns 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 Detail
-
BinaryInteger
public static final OraclePLSQLTypes BinaryInteger
-
Dec
public static final OraclePLSQLTypes Dec
-
Int
public static final OraclePLSQLTypes Int
-
Natural
public static final OraclePLSQLTypes Natural
-
NaturalN
public static final OraclePLSQLTypes NaturalN
-
PLSQLBoolean
public static final OraclePLSQLTypes PLSQLBoolean
-
PLSQLInteger
public static final OraclePLSQLTypes PLSQLInteger
-
Positive
public static final OraclePLSQLTypes Positive
-
PositiveN
public static final OraclePLSQLTypes PositiveN
-
SignType
public static final OraclePLSQLTypes SignType
-
XMLType
public static final OraclePLSQLTypes XMLType
-
-
Method Detail
-
values
public static OraclePLSQLTypes[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (OraclePLSQLTypes c : OraclePLSQLTypes.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static OraclePLSQLTypes valueOf(java.lang.String name)
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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
isComplexDatabaseType
public boolean isComplexDatabaseType()
- Specified by:
isComplexDatabaseTypein interfaceorg.eclipse.persistence.internal.helper.DatabaseType
-
getSqlCode
public int getSqlCode()
- Specified by:
getSqlCodein interfaceorg.eclipse.persistence.internal.helper.DatabaseType
-
getConversionCode
public int getConversionCode()
- Specified by:
getConversionCodein interfaceorg.eclipse.persistence.internal.helper.DatabaseType
-
getTypeName
public java.lang.String getTypeName()
- Specified by:
getTypeNamein interfaceorg.eclipse.persistence.internal.helper.DatabaseType
-
isJDBCType
public boolean isJDBCType()
- Specified by:
isJDBCTypein interfaceorg.eclipse.persistence.internal.helper.DatabaseType
-
computeInIndex
public int computeInIndex(PLSQLargument inArg, int newIndex, java.util.ListIterator<PLSQLargument> i)
INTERNAL: Return the parameter index for the IN parameter.- Specified by:
computeInIndexin interfaceorg.eclipse.persistence.internal.helper.DatabaseType
-
computeOutIndex
public int computeOutIndex(PLSQLargument outArg, int newIndex, java.util.ListIterator<PLSQLargument> i)
INTERNAL: Return the parameter index for the OUT parameter.- Specified by:
computeOutIndexin interfaceorg.eclipse.persistence.internal.helper.DatabaseType
-
buildInDeclare
public void buildInDeclare(java.lang.StringBuilder sb, PLSQLargument inArg)INTERNAL: Append the variable declaration for the type.- Specified by:
buildInDeclarein interfaceorg.eclipse.persistence.internal.helper.DatabaseType
-
buildOutDeclare
public void buildOutDeclare(java.lang.StringBuilder sb, PLSQLargument outArg)INTERNAL: Append the variable declaration for the type.- Specified by:
buildOutDeclarein interfaceorg.eclipse.persistence.internal.helper.DatabaseType
-
buildBeginBlock
public void buildBeginBlock(java.lang.StringBuilder sb, PLSQLargument arg, PLSQLStoredProcedureCall call)INTERNAL: Append any code or translation required for the type.- Specified by:
buildBeginBlockin interfaceorg.eclipse.persistence.internal.helper.DatabaseType
-
buildOutAssignment
public void buildOutAssignment(java.lang.StringBuilder sb, PLSQLargument arg, PLSQLStoredProcedureCall call)INTERNAL: Append any code or translation for assigning the output value.- Specified by:
buildOutAssignmentin interfaceorg.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)
INTERNAL: Translate the argument value from the query translation row to call translation row.- Specified by:
translatein interfaceorg.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)
INTERNAL: Build the query output row from the call output row.- Specified by:
buildOutputRowin interfaceorg.eclipse.persistence.internal.helper.DatabaseType
-
logParameter
@Deprecated public void logParameter(java.lang.StringBuilder sb, java.lang.Integer direction, PLSQLargument arg, org.eclipse.persistence.internal.sessions.AbstractRecord translationRow, DatabasePlatform platform)Deprecated.INTERNAL: Append the parameter for logging purposes.- Specified by:
logParameterin interfaceorg.eclipse.persistence.internal.helper.DatabaseType
-
logParameter
public void logParameter(java.lang.StringBuilder sb, org.eclipse.persistence.internal.databaseaccess.DatasourceCall.ParameterType direction, PLSQLargument arg, org.eclipse.persistence.internal.sessions.AbstractRecord translationRow, DatabasePlatform platform)INTERNAL: Append the parameter for logging purposes.- Specified by:
logParameterin interfaceorg.eclipse.persistence.internal.helper.DatabaseType
-
getDatabaseTypeForCode
public static org.eclipse.persistence.internal.helper.DatabaseType getDatabaseTypeForCode(java.lang.String typeName)
-
-