equal
deleted
inserted
replaced
26 public class Parameter { |
26 public class Parameter { |
27 |
27 |
28 /** |
28 /** |
29 * @see Types |
29 * @see Types |
30 */ |
30 */ |
31 public static final int DEFAULT_TYPE = Types.VARCHAR; |
31 public static final SQLType DEFAULT_TYPE = SQLType.VARCHAR; |
32 private Object value; |
32 private Object value; |
33 private int type; |
33 private SQLType type; |
34 |
34 |
35 public Parameter() { |
35 public Parameter() { |
36 } |
36 } |
37 |
37 |
38 public Parameter(Object value, Integer type) { |
38 public Parameter(Object value, SQLType type) { |
39 this.value = value; |
39 this.value = value; |
40 if (type == null) { |
40 if (type == null) { |
41 this.type = DEFAULT_TYPE; |
41 this.type = DEFAULT_TYPE; |
42 } else { |
42 } else { |
43 this.type = type; |
43 this.type = type; |
53 } |
53 } |
54 |
54 |
55 /** |
55 /** |
56 * @see java.sql.Types |
56 * @see java.sql.Types |
57 */ |
57 */ |
58 public int getType() { |
58 public SQLType getType() { |
59 return type; |
59 return type; |
60 } |
60 } |
61 |
61 |
62 /** |
62 /** |
63 * @see java.sql.Types |
63 * @see java.sql.Types |
64 */ |
64 */ |
65 public void setType(int type) { |
65 public void setType(SQLType type) { |
66 this.type = type; |
66 this.type = type; |
67 } |
67 } |
68 } |
68 } |