1.1 --- a/java/sql-dk/src/info/globalcode/sql/dk/SQLType.java Sat Dec 28 20:24:51 2013 +0100
1.2 +++ b/java/sql-dk/src/info/globalcode/sql/dk/SQLType.java Sat Dec 28 20:36:29 2013 +0100
1.3 @@ -25,13 +25,43 @@
1.4 */
1.5 public enum SQLType {
1.6
1.7 + BIT(Types.BIT),
1.8 + TINYINT(Types.TINYINT),
1.9 + SMALLINT(Types.SMALLINT),
1.10 + INTEGER(Types.INTEGER),
1.11 + BIGINT(Types.BIGINT),
1.12 + FLOAT(Types.FLOAT),
1.13 + REAL(Types.REAL),
1.14 + DOUBLE(Types.DOUBLE),
1.15 + NUMERIC(Types.NUMERIC),
1.16 + DECIMAL(Types.DECIMAL),
1.17 + CHAR(Types.CHAR),
1.18 VARCHAR(Types.VARCHAR),
1.19 + LONGVARCHAR(Types.LONGVARCHAR),
1.20 + DATE(Types.DATE),
1.21 + TIME(Types.TIME),
1.22 + TIMESTAMP(Types.TIMESTAMP),
1.23 + BINARY(Types.BINARY),
1.24 + VARBINARY(Types.VARBINARY),
1.25 + LONGVARBINARY(Types.LONGVARBINARY),
1.26 + NULL(Types.NULL),
1.27 + OTHER(Types.OTHER),
1.28 + JAVA_OBJECT(Types.JAVA_OBJECT),
1.29 + DISTINCT(Types.DISTINCT),
1.30 + STRUCT(Types.STRUCT),
1.31 + ARRAY(Types.ARRAY),
1.32 + BLOB(Types.BLOB),
1.33 + CLOB(Types.CLOB),
1.34 + REF(Types.REF),
1.35 + DATALINK(Types.DATALINK),
1.36 BOOLEAN(Types.BOOLEAN),
1.37 - INTEGER(Types.INTEGER),
1.38 - DECIMAL(Types.DECIMAL);
1.39 - /**
1.40 - * TODO: more types
1.41 - */
1.42 + ROWID(Types.ROWID),
1.43 + NCHAR(Types.NCHAR),
1.44 + NVARCHAR(Types.NVARCHAR),
1.45 + LONGNVARCHAR(Types.LONGNVARCHAR),
1.46 + NCLOB(Types.NCLOB),
1.47 + SQLXML(Types.SQLXML);
1.48 + /** value from java.sql.Types */
1.49 private int code;
1.50
1.51 private SQLType(int code) {