Enum-Klasse DBType

java.lang.Object
java.lang.Enum<DBType>
org.eclipse.net4j.db.DBType
Alle implementierten Schnittstellen:
Serializable, Comparable<DBType>, Constable

public enum DBType extends Enum<DBType>
Enumerates the SQL data types that are compatible with the DB framework.
Autor:
Eike Stepper
No Extend
This interface is not intended to be extended by clients.
  • Enum-Konstanten - Details

    • BOOLEAN

      public static final DBType BOOLEAN
    • BIT

      public static final DBType BIT
    • TINYINT

      public static final DBType TINYINT
    • SMALLINT

      public static final DBType SMALLINT
    • INTEGER

      public static final DBType INTEGER
    • BIGINT

      public static final DBType BIGINT
    • FLOAT

      public static final DBType FLOAT
    • REAL

      public static final DBType REAL
    • DOUBLE

      public static final DBType DOUBLE
    • NUMERIC

      public static final DBType NUMERIC
    • DECIMAL

      public static final DBType DECIMAL
    • CHAR

      public static final DBType CHAR
    • VARCHAR

      public static final DBType VARCHAR
    • LONGVARCHAR

      public static final DBType LONGVARCHAR
    • CLOB

      public static final DBType CLOB
    • DATE

      public static final DBType DATE
    • TIME

      public static final DBType TIME
    • TIMESTAMP

      public static final DBType TIMESTAMP
    • BINARY

      public static final DBType BINARY
    • VARBINARY

      public static final DBType VARBINARY
    • LONGVARBINARY

      public static final DBType LONGVARBINARY
    • BLOB

      public static final DBType BLOB
  • Methodendetails

    • values

      public static DBType[] values()
      Gibt ein Array mit den Konstanten dieser Enum-Klasse in der Reihenfolge ihrer Deklaration zurück.
      Gibt zurück:
      ein Array mit den Konstanten dieser Enum-Klasse in der Reihenfolge ihrer Deklaration
    • valueOf

      public static DBType valueOf(String name)
      Gibt die Enum-Konstante dieser Klasse mit dem angegebenen Namen zurück. Die Zeichenfolge muss exakt mit einer ID übereinstimmen, mit der eine Enum-Konstante in dieser Klasse deklariert wird. (Zusätzliche Leerzeichen sind nicht zulässig.)
      Parameter:
      name - Name der zurückzugebenden Enumerationskonstante.
      Gibt zurück:
      Enumerationskonstante mit dem angegebenen Namen
      Löst aus:
      IllegalArgumentException - wenn diese Enum-Klasse keine Konstante mit dem angegebenen Namen enthält
      NullPointerException - wenn das Argument nicht angegeben wird
    • getCode

      public int getCode()
    • getKeyword

      public String getKeyword()
    • toString

      public String toString()
      Setzt außer Kraft:
      toString in Klasse Enum<DBType>
    • writeValue

      public void writeValue(org.eclipse.net4j.util.io.ExtendedDataOutput out, ResultSet resultSet, int column, boolean canBeNull) throws SQLException, IOException
      Writes a value that is taken out of the given result set to the given output.
      Löst aus:
      SQLException
      IOException
      Seit:
      3.0
    • writeValueWithResult

      public abstract Object writeValueWithResult(org.eclipse.net4j.util.io.ExtendedDataOutput out, ResultSet resultSet, int column, boolean canBeNull) throws SQLException, IOException
      Writes a value that is taken out of the given result set to the given output.
      Löst aus:
      SQLException
      IOException
      Seit:
      4.1
    • readValue

      public void readValue(org.eclipse.net4j.util.io.ExtendedDataInput in, PreparedStatement statement, int column, boolean canBeNull) throws SQLException, IOException
      Reads a value from the given input and puts it into the given statement.
      Löst aus:
      SQLException
      IOException
      Seit:
      3.0
    • readValueWithResult

      public abstract Object readValueWithResult(org.eclipse.net4j.util.io.ExtendedDataInput in, PreparedStatement statement, int column, boolean canBeNull) throws SQLException, IOException
      Reads a value from the given input and puts it into the given statement.
      Löst aus:
      SQLException
      IOException
      Seit:
      4.1
    • getTypeByKeyword

      public static DBType getTypeByKeyword(String keyword)
      Seit:
      3.0
    • getTypeByCode

      public static DBType getTypeByCode(int code)
      Seit:
      4.2