java/sql-dk/src/info/globalcode/sql/dk/Parameter.java
branchv_0
changeset 68 574cd7fbb5b2
parent 16 5b8fcd35d4d6
child 155 eb3676c6929b
--- a/java/sql-dk/src/info/globalcode/sql/dk/Parameter.java	Thu Dec 26 01:53:15 2013 +0100
+++ b/java/sql-dk/src/info/globalcode/sql/dk/Parameter.java	Thu Dec 26 11:58:14 2013 +0100
@@ -28,14 +28,14 @@
 	/**
 	 * @see Types
 	 */
-	public static final int DEFAULT_TYPE = Types.VARCHAR;
+	public static final SQLType DEFAULT_TYPE = SQLType.VARCHAR;
 	private Object value;
-	private int type;
+	private SQLType type;
 
 	public Parameter() {
 	}
 
-	public Parameter(Object value, Integer type) {
+	public Parameter(Object value, SQLType type) {
 		this.value = value;
 		if (type == null) {
 			this.type = DEFAULT_TYPE;
@@ -55,14 +55,14 @@
 	/**
 	 * @see java.sql.Types
 	 */
-	public int getType() {
+	public SQLType getType() {
 		return type;
 	}
 
 	/**
 	 * @see java.sql.Types
 	 */
-	public void setType(int type) {
+	public void setType(SQLType type) {
 		this.type = type;
 	}
 }