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>, 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
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,
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 DatabaseType |
getDatabaseTypeForCode(int typeCode)
|
int |
getSqlCode()
|
java.lang.String |
getTypeName()
|
boolean |
isComplexDatabaseType()
|
void |
logParameter(java.lang.StringBuilder sb,
java.lang.Integer direction,
PLSQLargument arg,
AbstractRecord translationRow,
DatabasePlatform platform)
|
void |
translate(PLSQLargument arg,
AbstractRecord translationRow,
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()
getSqlCode
public int getSqlCode()
getConversionCode
public int getConversionCode()
getTypeName
public java.lang.String getTypeName()
computeInIndex
public int computeInIndex(PLSQLargument inArg,
int newIndex,
java.util.ListIterator<PLSQLargument> i)
computeOutIndex
public int computeOutIndex(PLSQLargument outArg,
int newIndex,
java.util.ListIterator<PLSQLargument> i)
buildInDeclare
public void buildInDeclare(java.lang.StringBuilder sb,
PLSQLargument inArg)
buildOutDeclare
public void buildOutDeclare(java.lang.StringBuilder sb,
PLSQLargument outArg)
buildBeginBlock
public void buildBeginBlock(java.lang.StringBuilder sb,
PLSQLargument arg)
buildOutAssignment
public void buildOutAssignment(java.lang.StringBuilder sb,
PLSQLargument outArg)
translate
public void translate(PLSQLargument arg,
AbstractRecord translationRow,
AbstractRecord copyOfTranslationRow,
java.util.Vector copyOfTranslationFields,
java.util.Vector translationRowFields,
java.util.Vector translationRowValues)
buildOutputRow
public void buildOutputRow(PLSQLargument outArg,
AbstractRecord outputRow,
DatabaseRecord newOutputRow,
java.util.Vector outputRowFields,
java.util.Vector outputRowValues)
logParameter
public void logParameter(java.lang.StringBuilder sb,
java.lang.Integer direction,
PLSQLargument arg,
AbstractRecord translationRow,
DatabasePlatform platform)
getDatabaseTypeForCode
public static DatabaseType getDatabaseTypeForCode(int typeCode)