| |
|
| java.lang.Object org.mandarax.jdbc.server.sql.SQLObject org.mandarax.jdbc.server.sql.Condition org.mandarax.jdbc.server.sql.SimpleCondition
SimpleCondition | public class SimpleCondition extends Condition implements ColumnTermContext(Code) | | Represents a simple condition used in a WHERE clause, e.g. a condition
that compares two column terms.
author: Jens Dietrich version: 3.3.2 <29 December 2004> since: 3.0 |
EQUALS | final public static int EQUALS(Code) | | |
GREATER_THAN | final public static int GREATER_THAN(Code) | | |
GREATER_THAN_OR_EQUALS | final public static int GREATER_THAN_OR_EQUALS(Code) | | |
LESS_THAN | final public static int LESS_THAN(Code) | | |
LESS_THAN_OR_EQUALS | final public static int LESS_THAN_OR_EQUALS(Code) | | |
LIKE | final public static int LIKE(Code) | | |
NOT_EQUALS | final public static int NOT_EQUALS(Code) | | |
SimpleCondition | public SimpleCondition(int connective, ColumnTerm col1, ColumnTerm col2)(Code) | | Constructor.
Parameters: connective - the connective (see the respective class constants) Parameters: condition1 - the first sub condition Parameters: condition2 - the second subcondition |
SimpleCondition | public SimpleCondition(int connective, String colName, String value)(Code) | | Constructor.
Parameters: connective - the connective (see the respective class constants) Parameters: colName - a column name Parameters: value - a column value |
SimpleCondition | public SimpleCondition(int connective)(Code) | | Constructor.
Parameters: connective - the connective (see the respective class constants) |
SimpleCondition | public SimpleCondition()(Code) | | Constructor.
|
add | public void add(ColumnTerm term)(Code) | | Add a column term to this context.
Parameters: term - a column term |
bindColumnTerm | Object bindColumnTerm(Map values, int termNumber) throws InferenceException(Code) | | Bind the column terms. Functions (like the SQL UPPER function) are not yet supported.
Parameters: values - an association column names -> values Parameters: termNumber - the term number a value |
getColumnTerm | ColumnTerm getColumnTerm(int position)(Code) | | Get a column term for a certain index.
a column term Parameters: position - an index |
getConnective | public int getConnective()(Code) | | Get the connective.
the connective |
isCondition4Column | boolean isCondition4Column(String name)(Code) | | Indicates whether this is a condition for a column with a given name.
a boolean Parameters: name - a column name |
normalize | public void normalize(Map typesByColumn)(Code) | | Normalize the object.
Parameters: typesByColumn - associations between column names and (SQL) types |
prepare | public void prepare(java.util.List variables)(Code) | | Gather the host variables.
Parameters: variables - the list used to collect the variables |
print | public void print(StringBuffer out)(Code) | | Print the object on a buffer in order to display the parsed SQL.
Parameters: out - a string bufer to print on |
sameAs | public boolean sameAs(Object obj)(Code) | | Compares objects.
Parameters: obj - another object. a boolean |
setConnective | public void setConnective(int connective)(Code) | | Sets the connective.
Parameters: connective - The connective to set |
setVariablesByName | void setVariablesByName(Map variablesByName)(Code) | | Set variable names / variable associations.
Parameters: variablesByNames - a map containing variable name -> variable term associations |
|
|
|