|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.farrago.jdbc.engine.FarragoJdbcEngineParamDef
class FarragoJdbcEngineParamDef
Enforces constraints on parameters. The constraints are:
TODO: Actually enfore these constraints.
Field Summary | |
---|---|
(package private) FarragoJdbcParamDef |
param
|
(package private) RelDataType |
type
|
Constructor Summary | |
---|---|
FarragoJdbcEngineParamDef(FarragoJdbcParamDef param,
RelDataType type)
|
Method Summary | |
---|---|
String |
getParamName()
Returns the name of this parameter. |
RelDataType |
getParamType()
Returns the RelDataType of this parameter. |
Object |
scrubValue(Object x)
Checks the type of a value, and throws an error if it is invalid or cannot be converted to an acceptable type. |
Object |
scrubValue(Object x,
Calendar cal)
Checks the type of a value, and throws an error if it is invalid or cannot be converted to an acceptable type. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
final FarragoJdbcParamDef param
final RelDataType type
Constructor Detail |
---|
FarragoJdbcEngineParamDef(FarragoJdbcParamDef param, RelDataType type)
Method Detail |
---|
public String getParamName()
FarragoSessionStmtParamDef
getParamName
in interface FarragoSessionStmtParamDef
public RelDataType getParamType()
FarragoSessionStmtParamDef
RelDataType
of this parameter.
getParamType
in interface FarragoSessionStmtParamDef
RelDataType
of this parameter.public Object scrubValue(Object x)
FarragoSessionStmtParamDef
scrubValue
in interface FarragoSessionStmtParamDef
public Object scrubValue(Object x, Calendar cal)
FarragoSessionStmtParamDef
scrubValue
in interface FarragoSessionStmtParamDef
cal
- Calendar to use
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |