Enum 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
    • Enum Constant Detail

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

        public static final JDBCTypes NVARCHAR_TYPE
      • NVARCHAR2_TYPE

        public static final JDBCTypes NVARCHAR2_TYPE
    • Method Detail

      • values

        public static JDBCTypes[] 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 (JDBCTypes c : JDBCTypes.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are 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
        java.lang.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 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,
                                    PLSQLStoredProcedureCall call)
        Specified by:
        buildBeginBlock in interface org.eclipse.persistence.internal.helper.DatabaseType
      • buildOutAssignment

        public void buildOutAssignment​(java.lang.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,
                              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)
        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.List<org.eclipse.persistence.internal.helper.DatabaseField> outputRowFields,
                                   java.util.List outputRowValues)
        Specified by:
        buildOutputRow in interface org.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.
        Specified by:
        logParameter in interface org.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)
        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 java.lang.Class<?> getClassForCode​(int typeCode)