sharding support

This commit is contained in:
wenshao
2012-11-26 13:20:56 +08:00
parent 9361ff49f1
commit 246fede0d5
10 changed files with 2361 additions and 38 deletions
@@ -32,12 +32,18 @@ public class JdbcParameter {
private final Object value;
private final long length;
private final Calendar calendar;
private final int scaleOrLength;
public JdbcParameter(int sqlType, Object value, long length, Calendar calendar){
public JdbcParameter(int sqlType, Object value, long length, Calendar calendar, int scaleOrLength){
this.sqlType = sqlType;
this.value = value;
this.length = length;
this.calendar = calendar;
this.scaleOrLength = scaleOrLength;
}
public JdbcParameter(int sqlType, Object value, long length, Calendar calendar){
this(sqlType, value, -1, null, -1);
}
public JdbcParameter(int sqlType, Object value){
@@ -52,6 +58,10 @@ public class JdbcParameter {
this(sqlType, value, -1, calendar);
}
public int getScaleOrLength() {
return scaleOrLength;
}
public Object getValue() {
return value;
}