Enum JDBCTypes
- All Implemented Interfaces:
Serializable
,Comparable<JDBCTypes>
,org.eclipse.persistence.internal.helper.DatabaseType
,org.eclipse.persistence.internal.helper.SimpleDatabaseType
,JDBCType
PUBLIC: JDBC types
- Author:
- Mike Norman - michael.norman@oracle.com
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.persistence.internal.helper.DatabaseType
org.eclipse.persistence.internal.helper.DatabaseType.DatabaseTypeHelper
-
Enum Constant Summary
Enum 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_SUFFIX
-
Method Summary
Modifier and TypeMethodDescriptionvoid
buildBeginBlock
(StringBuilder sb, PLSQLargument arg, PLSQLStoredProcedureCall call) void
buildInDeclare
(StringBuilder sb, PLSQLargument inArg) void
buildOutAssignment
(StringBuilder sb, PLSQLargument outArg, PLSQLStoredProcedureCall call) void
buildOutDeclare
(StringBuilder sb, PLSQLargument outArg) void
buildOutputRow
(PLSQLargument outArg, org.eclipse.persistence.internal.sessions.AbstractRecord outputRow, DatabaseRecord newOutputRow, List<org.eclipse.persistence.internal.helper.DatabaseField> outputRowFields, List outputRowValues) int
computeInIndex
(PLSQLargument inArg, int newIndex, ListIterator<PLSQLargument> i) int
computeOutIndex
(PLSQLargument outArg, int newIndex, ListIterator<PLSQLargument> i) static Class<?>
getClassForCode
(int typeCode) int
static org.eclipse.persistence.internal.helper.DatabaseType
getDatabaseTypeForCode
(int typeCode) int
boolean
boolean
void
logParameter
(StringBuilder sb, Integer direction, PLSQLargument arg, org.eclipse.persistence.internal.sessions.AbstractRecord translationRow, DatabasePlatform platform) Deprecated.void
logParameter
(StringBuilder sb, org.eclipse.persistence.internal.databaseaccess.DatasourceCall.ParameterType 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, List<org.eclipse.persistence.internal.helper.DatabaseField> copyOfTranslationFields, List<org.eclipse.persistence.internal.helper.DatabaseField> translationRowFields, List translationRowValues, StoredProcedureCall call) static JDBCTypes
Returns the enum constant of this type with the specified name.static JDBCTypes[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
ARRAY_TYPE
-
BIGINT_TYPE
-
BINARY_TYPE
-
BIT_TYPE
-
BLOB_TYPE
-
BOOLEAN_TYPE
-
CHAR_TYPE
-
NCHAR_TYPE
-
CLOB_TYPE
-
DATALINK_TYPE
-
DATE_TYPE
-
DECIMAL_TYPE
-
DISTINCT_TYPE
-
DOUBLE_TYPE
-
FLOAT_TYPE
-
INTEGER_TYPE
-
JAVA_OBJECT_TYPE
-
LONGVARBINARY_TYPE
-
LONGVARCHAR_TYPE
-
NULL_TYPE
-
NUMERIC_TYPE
-
OTHER_TYPE
-
REAL_TYPE
-
REF_TYPE
-
SMALLINT_TYPE
-
STRUCT_TYPE
-
TIME_TYPE
-
TIMESTAMP_TYPE
-
TINYINT_TYPE
-
VARBINARY_TYPE
-
VARCHAR_TYPE
-
NVARCHAR_TYPE
-
NVARCHAR2_TYPE
-
-
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:
isComplexDatabaseType
in interfaceorg.eclipse.persistence.internal.helper.DatabaseType
-
isJDBCType
public boolean isJDBCType()- Specified by:
isJDBCType
in interfaceorg.eclipse.persistence.internal.helper.DatabaseType
-
getSqlCode
public int getSqlCode()- Specified by:
getSqlCode
in interfaceorg.eclipse.persistence.internal.helper.DatabaseType
-
getConversionCode
public int getConversionCode()- Specified by:
getConversionCode
in interfaceorg.eclipse.persistence.internal.helper.DatabaseType
-
getTypeName
- Specified by:
getTypeName
in interfaceorg.eclipse.persistence.internal.helper.DatabaseType
-
computeInIndex
- Specified by:
computeInIndex
in interfaceorg.eclipse.persistence.internal.helper.DatabaseType
-
computeOutIndex
- Specified by:
computeOutIndex
in interfaceorg.eclipse.persistence.internal.helper.DatabaseType
-
buildInDeclare
- Specified by:
buildInDeclare
in interfaceorg.eclipse.persistence.internal.helper.DatabaseType
-
buildOutDeclare
- Specified by:
buildOutDeclare
in interfaceorg.eclipse.persistence.internal.helper.DatabaseType
-
buildBeginBlock
- Specified by:
buildBeginBlock
in interfaceorg.eclipse.persistence.internal.helper.DatabaseType
-
buildOutAssignment
public void buildOutAssignment(StringBuilder sb, PLSQLargument outArg, PLSQLStoredProcedureCall call) - Specified by:
buildOutAssignment
in 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, List<org.eclipse.persistence.internal.helper.DatabaseField> copyOfTranslationFields, List<org.eclipse.persistence.internal.helper.DatabaseField> translationRowFields, List translationRowValues, StoredProcedureCall call) - Specified by:
translate
in interfaceorg.eclipse.persistence.internal.helper.DatabaseType
-
buildOutputRow
public void buildOutputRow(PLSQLargument outArg, org.eclipse.persistence.internal.sessions.AbstractRecord outputRow, DatabaseRecord newOutputRow, List<org.eclipse.persistence.internal.helper.DatabaseField> outputRowFields, List outputRowValues) - Specified by:
buildOutputRow
in interfaceorg.eclipse.persistence.internal.helper.DatabaseType
-
logParameter
@Deprecated public void logParameter(StringBuilder sb, Integer direction, PLSQLargument arg, org.eclipse.persistence.internal.sessions.AbstractRecord translationRow, DatabasePlatform platform) Deprecated.- Specified by:
logParameter
in interfaceorg.eclipse.persistence.internal.helper.DatabaseType
-
logParameter
public void logParameter(StringBuilder sb, org.eclipse.persistence.internal.databaseaccess.DatasourceCall.ParameterType direction, PLSQLargument arg, org.eclipse.persistence.internal.sessions.AbstractRecord translationRow, DatabasePlatform platform) - Specified by:
logParameter
in interfaceorg.eclipse.persistence.internal.helper.DatabaseType
-
getDatabaseTypeForCode
public static org.eclipse.persistence.internal.helper.DatabaseType getDatabaseTypeForCode(int typeCode) -
getClassForCode
-