1.1 --- a/java/sql-dk/src/info/globalcode/sql/dk/Parameter.java Thu Dec 26 01:53:15 2013 +0100
1.2 +++ b/java/sql-dk/src/info/globalcode/sql/dk/Parameter.java Thu Dec 26 11:58:14 2013 +0100
1.3 @@ -28,14 +28,14 @@
1.4 /**
1.5 * @see Types
1.6 */
1.7 - public static final int DEFAULT_TYPE = Types.VARCHAR;
1.8 + public static final SQLType DEFAULT_TYPE = SQLType.VARCHAR;
1.9 private Object value;
1.10 - private int type;
1.11 + private SQLType type;
1.12
1.13 public Parameter() {
1.14 }
1.15
1.16 - public Parameter(Object value, Integer type) {
1.17 + public Parameter(Object value, SQLType type) {
1.18 this.value = value;
1.19 if (type == null) {
1.20 this.type = DEFAULT_TYPE;
1.21 @@ -55,14 +55,14 @@
1.22 /**
1.23 * @see java.sql.Types
1.24 */
1.25 - public int getType() {
1.26 + public SQLType getType() {
1.27 return type;
1.28 }
1.29
1.30 /**
1.31 * @see java.sql.Types
1.32 */
1.33 - public void setType(int type) {
1.34 + public void setType(SQLType type) {
1.35 this.type = type;
1.36 }
1.37 }