org.eclipse.persistence.platform.database.jdbc
Enum JDBCTypes
java.lang.Object
java.lang.Enum<JDBCTypes>
org.eclipse.persistence.platform.database.jdbc.JDBCTypes
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<JDBCTypes>, org.eclipse.persistence.internal.helper.DatabaseType, org.eclipse.persistence.internal.helper.SimpleDatabaseType, JDBCType
public enum JDBCTypes
- extends java.lang.Enum<JDBCTypes>
- implements JDBCType
PUBLIC: JDBC types
- Author:
- Mike Norman - michael.norman@oracle.com
- Since:
- Oracle TopLink 11.x.x
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 |
COMPAT_SUFFIX, TARGET_SUFFIX |
Method Summary |
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)
|
int |
computeInIndex(PLSQLargument inArg,
int newIndex,
java.util.ListIterator<PLSQLargument> i)
|
int |
computeOutIndex(PLSQLargument outArg,
int newIndex,
java.util.ListIterator<PLSQLargument> i)
|
int |
getConversionCode()
|
static org.eclipse.persistence.internal.helper.DatabaseType |
getDatabaseTypeForCode(int typeCode)
|
int |
getSqlCode()
|
java.lang.String |
getTypeName()
|
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 |
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)
|
static JDBCTypes |
valueOf(java.lang.String name)
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're declared. |
Methods inherited from class java.lang.Enum |
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
ARRAY_TYPE
public static final JDBCTypes ARRAY_TYPE
BIGINT_TYPE
public static final JDBCTypes BIGINT_TYPE
BINARY_TYPE
public static final JDBCTypes BINARY_TYPE
BIT_TYPE
public static final JDBCTypes BIT_TYPE
BLOB_TYPE
public static final JDBCTypes BLOB_TYPE
BOOLEAN_TYPE
public static final JDBCTypes BOOLEAN_TYPE
CHAR_TYPE
public static final JDBCTypes CHAR_TYPE
CLOB_TYPE
public static final JDBCTypes CLOB_TYPE
DATALINK_TYPE
public static final JDBCTypes DATALINK_TYPE
DATE_TYPE
public static final JDBCTypes DATE_TYPE
DECIMAL_TYPE
public static final JDBCTypes DECIMAL_TYPE
DISTINCT_TYPE
public static final JDBCTypes DISTINCT_TYPE
DOUBLE_TYPE
public static final JDBCTypes DOUBLE_TYPE
FLOAT_TYPE
public static final JDBCTypes FLOAT_TYPE
INTEGER_TYPE
public static final JDBCTypes INTEGER_TYPE
JAVA_OBJECT_TYPE
public static final JDBCTypes JAVA_OBJECT_TYPE
LONGVARBINARY_TYPE
public static final JDBCTypes LONGVARBINARY_TYPE
LONGVARCHAR_TYPE
public static final JDBCTypes LONGVARCHAR_TYPE
NULL_TYPE
public static final JDBCTypes NULL_TYPE
NUMERIC_TYPE
public static final JDBCTypes NUMERIC_TYPE
OTHER_TYPE
public static final JDBCTypes OTHER_TYPE
REAL_TYPE
public static final JDBCTypes REAL_TYPE
REF_TYPE
public static final JDBCTypes REF_TYPE
SMALLINT_TYPE
public static final JDBCTypes SMALLINT_TYPE
STRUCT_TYPE
public static final JDBCTypes STRUCT_TYPE
TIME_TYPE
public static final JDBCTypes TIME_TYPE
TIMESTAMP_TYPE
public static final JDBCTypes TIMESTAMP_TYPE
TINYINT_TYPE
public static final JDBCTypes TINYINT_TYPE
VARBINARY_TYPE
public static final JDBCTypes VARBINARY_TYPE
VARCHAR_TYPE
public static final JDBCTypes VARCHAR_TYPE
values
public static final JDBCTypes[] values()
- Returns an array containing the constants of this enum type, in
the order they're declared. This method may be used to iterate
over the constants as follows:
for(JDBCTypes c : JDBCTypes.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they're declared
valueOf
public static JDBCTypes 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 name
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
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
getDatabaseTypeForCode
public static org.eclipse.persistence.internal.helper.DatabaseType getDatabaseTypeForCode(int typeCode)