java.lang.Objectorg.objectweb.telosys.dal.sql.Criterion
Constructor Summary | |
Criterion(java.lang.String sSqlExpression,
int iType)
Creates a new Criterion object |
|
Criterion(java.lang.String sSqlExpression,
int iType,
java.lang.String sParamName)
Creates a new Criterion object |
Method Summary | |
void |
doNotUse()
Declare this criterion as not to be used |
java.lang.String |
getParamName()
Returns the name of the parameter associated with this criterion |
int |
getParamType()
Returns the type of the parameter associated with this criterion See the constants in "ParamType" |
java.lang.Object |
getParamValueAsObject()
Returns the parameter value associated with this criterion |
java.lang.String |
getParamValueAsString()
Returns the parameter value associated with this criterion |
java.lang.String |
getSqlExpression()
Returns the SQL expression of this criterion ( eg : "agency = ?" |
boolean |
isUsed()
Returns true if this criterion is used in the SQL request |
void |
useWithValue(java.lang.String sParamVal)
Declares this criterion as to be used with the given parameter value |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Criterion(java.lang.String sSqlExpression, int iType)
sSqlExpression
- the SQL criterion expression ( eg : "agency = ?", "code > ?", ... )iType
- the criterion parameter type ( eg : STRING, INTEGER, ... ) ( see "ParamType" )public Criterion(java.lang.String sSqlExpression, int iType, java.lang.String sParamName)
sSqlExpression
- the SQL criterion expression ( eg : "agency = ?", "code > ?", ... )iType
- the criterion parameter type ( eg : STRING, INTEGER, ... ) ( see "ParamType" )sParamName
- the name of the parameter associated with the criterionMethod Detail |
public java.lang.String getSqlExpression()
public int getParamType()
public java.lang.String getParamName()
public java.lang.String getParamValueAsString()
public java.lang.Object getParamValueAsObject()
public void useWithValue(java.lang.String sParamVal)
sParamVal
- public void doNotUse()
public boolean isUsed()