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
-
Method Summary
Modifier and TypeMethodDescriptionint
getCode()
static DBType
getTypeByCode
(int code) static DBType
getTypeByKeyword
(String keyword) void
readValue
(org.eclipse.net4j.util.io.ExtendedDataInput in, PreparedStatement statement, int column, boolean canBeNull) Reads a value from the giveninput
and puts it into the givenstatement
.abstract Object
readValueWithResult
(org.eclipse.net4j.util.io.ExtendedDataInput in, PreparedStatement statement, int column, boolean canBeNull) Reads a value from the giveninput
and puts it into the givenstatement
.toString()
static DBType
Returns 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.void
writeValue
(org.eclipse.net4j.util.io.ExtendedDataOutput out, ResultSet resultSet, int column, boolean canBeNull) Writes a value that is taken out of the givenresult set
to the givenoutput
.abstract Object
writeValueWithResult
(org.eclipse.net4j.util.io.ExtendedDataOutput out, ResultSet resultSet, int column, boolean canBeNull) Writes a value that is taken out of the givenresult set
to 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 set
to the givenoutput
.- Throws:
SQLException
IOException
- 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 set
to the givenoutput
.- Throws:
SQLException
IOException
- 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 giveninput
and puts it into the givenstatement
.- Throws:
SQLException
IOException
- 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 giveninput
and puts it into the givenstatement
.- Throws:
SQLException
IOException
- Since:
- 4.1
-
getTypeByKeyword
- Since:
- 3.0
-
getTypeByCode
- Since:
- 4.2
-