Package org.eclipse.net4j.db
Enum DBType
- java.lang.Object
- 
- java.lang.Enum<DBType>
- 
- org.eclipse.net4j.db.DBType
 
 
- 
- 
Method SummaryAll Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description intgetCode()java.lang.StringgetKeyword()static DBTypegetTypeByCode(int code)static DBTypegetTypeByKeyword(java.lang.String keyword)voidreadValue(org.eclipse.net4j.util.io.ExtendedDataInput in, java.sql.PreparedStatement statement, int column, boolean canBeNull)abstract java.lang.ObjectreadValueWithResult(org.eclipse.net4j.util.io.ExtendedDataInput in, java.sql.PreparedStatement statement, int column, boolean canBeNull)java.lang.StringtoString()static DBTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static DBType[]values()Returns an array containing the constants of this enum type, in the order they are declared.voidwriteValue(org.eclipse.net4j.util.io.ExtendedDataOutput out, java.sql.ResultSet resultSet, int column, boolean canBeNull)abstract java.lang.ObjectwriteValueWithResult(org.eclipse.net4j.util.io.ExtendedDataOutput out, java.sql.ResultSet resultSet, int column, boolean canBeNull)
 
- 
- 
- 
Enum Constant Detail- 
BOOLEANpublic static final DBType BOOLEAN 
 - 
BITpublic static final DBType BIT 
 - 
TINYINTpublic static final DBType TINYINT 
 - 
SMALLINTpublic static final DBType SMALLINT 
 - 
INTEGERpublic static final DBType INTEGER 
 - 
BIGINTpublic static final DBType BIGINT 
 - 
FLOATpublic static final DBType FLOAT 
 - 
REALpublic static final DBType REAL 
 - 
DOUBLEpublic static final DBType DOUBLE 
 - 
NUMERICpublic static final DBType NUMERIC 
 - 
DECIMALpublic static final DBType DECIMAL 
 - 
CHARpublic static final DBType CHAR 
 - 
VARCHARpublic static final DBType VARCHAR 
 - 
LONGVARCHARpublic static final DBType LONGVARCHAR 
 - 
CLOBpublic static final DBType CLOB 
 - 
DATEpublic static final DBType DATE 
 - 
TIMEpublic static final DBType TIME 
 - 
TIMESTAMPpublic static final DBType TIMESTAMP 
 - 
BINARYpublic static final DBType BINARY 
 - 
VARBINARYpublic static final DBType VARBINARY 
 - 
LONGVARBINARYpublic static final DBType LONGVARBINARY 
 - 
BLOBpublic static final DBType BLOB 
 
- 
 - 
Method Detail- 
valuespublic static DBType[] 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 (DBType c : DBType.values()) System.out.println(c); - Returns:
- an array containing the constants of this enum type, in the order they are declared
 
 - 
valueOfpublic static DBType 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
 
 - 
getCodepublic int getCode() 
 - 
getKeywordpublic java.lang.String getKeyword() 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- java.lang.Enum<DBType>
 
 - 
writeValuepublic void writeValue(org.eclipse.net4j.util.io.ExtendedDataOutput out, java.sql.ResultSet resultSet, int column, boolean canBeNull) throws java.sql.SQLException, java.io.IOException- Throws:
- java.sql.SQLException
- java.io.IOException
- Since:
- 3.0
 
 - 
writeValueWithResultpublic abstract java.lang.Object writeValueWithResult(org.eclipse.net4j.util.io.ExtendedDataOutput out, java.sql.ResultSet resultSet, int column, boolean canBeNull) throws java.sql.SQLException, java.io.IOException- Throws:
- java.sql.SQLException
- java.io.IOException
- Since:
- 4.1
 
 - 
readValuepublic void readValue(org.eclipse.net4j.util.io.ExtendedDataInput in, java.sql.PreparedStatement statement, int column, boolean canBeNull) throws java.sql.SQLException, java.io.IOException- Throws:
- java.sql.SQLException
- java.io.IOException
- Since:
- 3.0
 
 - 
readValueWithResultpublic abstract java.lang.Object readValueWithResult(org.eclipse.net4j.util.io.ExtendedDataInput in, java.sql.PreparedStatement statement, int column, boolean canBeNull) throws java.sql.SQLException, java.io.IOException- Throws:
- java.sql.SQLException
- java.io.IOException
- Since:
- 4.1
 
 - 
getTypeByKeywordpublic static DBType getTypeByKeyword(java.lang.String keyword) - Since:
- 3.0
 
 - 
getTypeByCodepublic static DBType getTypeByCode(int code) - Since:
- 4.2
 
 
- 
 
-