java.lang.Object
java.lang.Enum<JDBCTypes>
org.eclipse.persistence.platform.database.jdbc.JDBCTypes
All Implemented Interfaces:
Serializable, Comparable<JDBCTypes>, org.eclipse.persistence.internal.helper.DatabaseType, org.eclipse.persistence.internal.helper.SimpleDatabaseType, JDBCType

public enum JDBCTypes extends Enum<JDBCTypes> implements JDBCType
PUBLIC: JDBC types
Author:
Mike Norman - michael.norman@oracle.com
  • Enum Constant Details

    • 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
    • NCHAR_TYPE

      public static final JDBCTypes NCHAR_TYPE
    • CLOB_TYPE

      public static final JDBCTypes CLOB_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
    • NVARCHAR_TYPE

      public static final JDBCTypes NVARCHAR_TYPE
    • NVARCHAR2_TYPE

      public static final JDBCTypes NVARCHAR2_TYPE
  • Method Details

    • values

      public static JDBCTypes[] 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

      public static JDBCTypes valueOf(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:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • 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 String getTypeName()
      Specified by:
      getTypeName in interface org.eclipse.persistence.internal.helper.DatabaseType
    • computeInIndex

      public int computeInIndex(PLSQLargument inArg, int newIndex, ListIterator<PLSQLargument> i)
      Specified by:
      computeInIndex in interface org.eclipse.persistence.internal.helper.DatabaseType
    • computeOutIndex

      public int computeOutIndex(PLSQLargument outArg, int newIndex, ListIterator<PLSQLargument> i)
      Specified by:
      computeOutIndex in interface org.eclipse.persistence.internal.helper.DatabaseType
    • buildInDeclare

      public void buildInDeclare(StringBuilder sb, PLSQLargument inArg)
      Specified by:
      buildInDeclare in interface org.eclipse.persistence.internal.helper.DatabaseType
    • buildOutDeclare

      public void buildOutDeclare(StringBuilder sb, PLSQLargument outArg)
      Specified by:
      buildOutDeclare in interface org.eclipse.persistence.internal.helper.DatabaseType
    • buildBeginBlock

      public void buildBeginBlock(StringBuilder sb, PLSQLargument arg, PLSQLStoredProcedureCall call)
      Specified by:
      buildBeginBlock in interface org.eclipse.persistence.internal.helper.DatabaseType
    • buildOutAssignment

      public void buildOutAssignment(StringBuilder sb, PLSQLargument outArg, PLSQLStoredProcedureCall call)
      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, List<org.eclipse.persistence.internal.helper.DatabaseField> copyOfTranslationFields, List<org.eclipse.persistence.internal.helper.DatabaseField> translationRowFields, List translationRowValues, StoredProcedureCall call)
      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, List<org.eclipse.persistence.internal.helper.DatabaseField> outputRowFields, List outputRowValues)
      Specified by:
      buildOutputRow in interface org.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 interface org.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 interface org.eclipse.persistence.internal.helper.DatabaseType
    • getDatabaseTypeForCode

      public static org.eclipse.persistence.internal.helper.DatabaseType getDatabaseTypeForCode(int typeCode)
    • getClassForCode

      public static Class<?> getClassForCode(int typeCode)