net.aditsu.depeche
public class SQLCondition extends Object implements Serializable
| Constructor and Description |
|---|
SQLCondition(String sql,
List<? extends Serializable> params)
Constructs a condition using a given SQL string and parameters
|
SQLCondition(String sql,
Serializable... params)
Constructs a condition using a given SQL string and parameters
|
| Modifier and Type | Method and Description |
|---|---|
SQLCondition |
and(SQLCondition cond)
Returns a new condition representing "this AND cond"
|
List<Serializable> |
getParams()
Returns this condition's list of parameters
|
String |
getSQL()
Returns this condition's SQL string
|
SQLCondition |
not()
Returns a new condition representing "NOT this"
|
SQLCondition |
or(SQLCondition cond)
Returns a new condition representing "this OR cond"
|
public SQLCondition(String sql, List<? extends Serializable> params)
public SQLCondition(String sql, Serializable... params)
public SQLCondition and(SQLCondition cond)
public SQLCondition or(SQLCondition cond)
public SQLCondition not()
public List<Serializable> getParams()
public String getSQL()