Package org.eclipse.net4j.db
Enum Class DBType
- All Implemented Interfaces:
Serializable,Comparable<DBType>,Constable
Enumerates the SQL data types that are compatible with the DB framework.
- Author:
- Eike Stepper
- No Extend
- This interface is not intended to be extended by clients.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionintgetCode()static DBTypegetTypeByCode(int code) static DBTypegetTypeByKeyword(String keyword) voidreadValue(org.eclipse.net4j.util.io.ExtendedDataInput in, PreparedStatement statement, int column, boolean canBeNull) Reads a value from the giveninputand puts it into the givenstatement.abstract ObjectreadValueWithResult(org.eclipse.net4j.util.io.ExtendedDataInput in, PreparedStatement statement, int column, boolean canBeNull) Reads a value from the giveninputand puts it into the givenstatement.toString()static DBTypeReturns the enum constant of this class with the specified name.static DBType[]values()Returns an array containing the constants of this enum class, in the order they are declared.voidwriteValue(org.eclipse.net4j.util.io.ExtendedDataOutput out, ResultSet resultSet, int column, boolean canBeNull) Writes a value that is taken out of the givenresult setto the givenoutput.abstract ObjectwriteValueWithResult(org.eclipse.net4j.util.io.ExtendedDataOutput out, ResultSet resultSet, int column, boolean canBeNull) Writes a value that is taken out of the givenresult setto the givenoutput.
-
Enum Constant Details
-
BOOLEAN
-
BIT
-
TINYINT
-
SMALLINT
-
INTEGER
-
BIGINT
-
FLOAT
-
REAL
-
DOUBLE
-
NUMERIC
-
DECIMAL
-
CHAR
-
VARCHAR
-
LONGVARCHAR
-
CLOB
-
DATE
-
TIME
-
TIMESTAMP
-
BINARY
-
VARBINARY
-
LONGVARBINARY
-
BLOB
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
getCode
public int getCode() -
getKeyword
-
toString
-
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 givenresult setto the givenoutput.- Throws:
SQLExceptionIOException- Since:
- 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 givenresult setto the givenoutput.- Throws:
SQLExceptionIOException- Since:
- 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 giveninputand puts it into the givenstatement.- Throws:
SQLExceptionIOException- Since:
- 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 giveninputand puts it into the givenstatement.- Throws:
SQLExceptionIOException- Since:
- 4.1
-
getTypeByKeyword
- Since:
- 3.0
-
getTypeByCode
- Since:
- 4.2
-