net.sf.farrago.jdbc.param
Class FarragoJdbcFennelTupleParamDef
java.lang.Object
net.sf.farrago.jdbc.param.FarragoJdbcParamDef
net.sf.farrago.jdbc.param.FarragoJdbcFennelTupleParamDef
public class FarragoJdbcFennelTupleParamDef
- extends FarragoJdbcParamDef
FarragoJdbcFennelTupleParamDef represents a parameter associated with a
FennelTupleDatum. It handles data converstions to the target type. This class
is JDK 1.4 compatible.
- Since:
- March 3, 2006
- Version:
- $Id: //open/dev/farrago/src/net/sf/farrago/jdbc/param/FarragoJdbcFennelTupleParamDef.java#12 $
- Author:
- Angel Chang
Method Summary |
Object |
scrubValue(Object obj)
|
Object |
scrubValue(Object obj,
Calendar cal)
|
void |
setBigDecimal(FennelTupleDatum datum,
BigDecimal val)
|
void |
setBoolean(FennelTupleDatum datum,
boolean b)
|
void |
setByte(FennelTupleDatum datum,
byte val)
|
void |
setBytes(FennelTupleDatum datum,
byte[] val)
|
void |
setDate(FennelTupleDatum datum,
ZonelessDate val)
|
void |
setDouble(FennelTupleDatum datum,
double val)
|
private void |
setDouble(FennelTupleDatum datum,
double val,
boolean isFloat)
|
void |
setFloat(FennelTupleDatum datum,
float val)
|
void |
setInt(FennelTupleDatum datum,
int val)
|
void |
setLong(FennelTupleDatum datum,
long val)
|
private void |
setLong(FennelTupleDatum datum,
long val,
Class clazz)
|
void |
setNull(FennelTupleDatum datum)
|
void |
setObject(FennelTupleDatum datum,
Object val)
|
void |
setShort(FennelTupleDatum datum,
short val)
|
private void |
setString(boolean pad,
FennelTupleDatum datum,
String val,
Class clazz)
|
void |
setString(FennelTupleDatum datum,
String val)
|
void |
setTime(FennelTupleDatum datum,
ZonelessTime val)
|
void |
setTimestamp(FennelTupleDatum datum,
ZonelessTimestamp val)
|
Methods inherited from class net.sf.farrago.jdbc.param.FarragoJdbcParamDef |
checkNullable, checkRange, checkRange, checkRange, getParamMetaData, getParamName, newInvalidFormat, newInvalidType, newNotNullable, newValueOutOfRange, newValueTooLong |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
defaultParamDef
private FarragoJdbcParamDef defaultParamDef
min
protected Number min
max
protected Number max
FarragoJdbcFennelTupleParamDef
public FarragoJdbcFennelTupleParamDef(String paramName,
FarragoParamFieldMetaData param,
FarragoJdbcParamDef paramDef)
scrubValue
public Object scrubValue(Object obj)
- Overrides:
scrubValue
in class FarragoJdbcParamDef
scrubValue
public Object scrubValue(Object obj,
Calendar cal)
- Overrides:
scrubValue
in class FarragoJdbcParamDef
setNull
public void setNull(FennelTupleDatum datum)
setBoolean
public void setBoolean(FennelTupleDatum datum,
boolean b)
setByte
public void setByte(FennelTupleDatum datum,
byte val)
setShort
public void setShort(FennelTupleDatum datum,
short val)
setInt
public void setInt(FennelTupleDatum datum,
int val)
setLong
public void setLong(FennelTupleDatum datum,
long val)
setLong
private void setLong(FennelTupleDatum datum,
long val,
Class clazz)
setFloat
public void setFloat(FennelTupleDatum datum,
float val)
setDouble
public void setDouble(FennelTupleDatum datum,
double val)
setDouble
private void setDouble(FennelTupleDatum datum,
double val,
boolean isFloat)
setBigDecimal
public void setBigDecimal(FennelTupleDatum datum,
BigDecimal val)
setString
private void setString(boolean pad,
FennelTupleDatum datum,
String val,
Class clazz)
setString
public void setString(FennelTupleDatum datum,
String val)
setDate
public void setDate(FennelTupleDatum datum,
ZonelessDate val)
setTime
public void setTime(FennelTupleDatum datum,
ZonelessTime val)
setTimestamp
public void setTimestamp(FennelTupleDatum datum,
ZonelessTimestamp val)
setBytes
public void setBytes(FennelTupleDatum datum,
byte[] val)
setObject
public void setObject(FennelTupleDatum datum,
Object val)