| java.lang.Object org.mandarax.kernel.AbstractPropertiesSupport org.mandarax.sql.SQLClauseSet
Field Summary | |
final public static int | NO_CACHE |
NO_CACHE | final public static int NO_CACHE(Code) | | |
SQLClauseSet | public SQLClauseSet()(Code) | | Constructor.
|
SQLClauseSet | public SQLClauseSet(SQLPredicate p, String where)(Code) | | Constructor.
Parameters: p - a predicate Parameters: where - a where clause |
SQLClauseSet | public SQLClauseSet(SQLPredicate p, long timeout)(Code) | | Constructor.
Parameters: p - a predicate Parameters: timeout - the timeout after which the cache expires, if NO_CACHE , no caching is done |
SQLClauseSet | public SQLClauseSet(SQLPredicate p, String where, long timeout)(Code) | | Constructor.
Parameters: p - a predicate Parameters: where - a where clause Parameters: timeout - the timeout after which the cache expires, if NO_CACHE , no caching is done |
addClauseSetChangeListener | public void addClauseSetChangeListener(ClauseSetChangeListener l)(Code) | | Add a clause set listener.
Parameters: l - the listener |
clauses | public org.mandarax.util.ClauseIterator clauses(Clause query, Object additionalParameter) throws ClauseSetException(Code) | | Get an iterator for clauses. The clause passed represents a query
which can be used to restrict the clause set. E.g., if the clause
iterator is built from database objects, and some of the variables
in the query clause are already replaced by constants, these constants
might be used to form a WHERE clause restricting the set of database objects
used to establish the clauses. The additional parameter provides a general
purpose interface to pass additional information, e.g. to sort the clause
set.
a clause iterator Parameters: query - the query clause Parameters: additionalParameter - an optional additional parameter throws: ClauseSetException - |
equals | public boolean equals(Object obj)(Code) | | Compare objects.
Parameters: obj - another object a boolean |
getCacheTimeout | public long getCacheTimeout()(Code) | | Get the cache time out. The cache expires after this time.
a timeout in milli seconds, NO_CACHE indicates that there is no caching |
getPredicate | public Predicate getPredicate()(Code) | | Get the predicate.
a predicate |
getQuery | public String getQuery()(Code) | | Get the query build from the SELECT statement from the predicate
plus the additional WHERE clause set here.
a query |
getWhereClause | public String getWhereClause()(Code) | | Get the where clause
the where clause |
hashCode | public int hashCode()(Code) | | Get the hashcode of the object.
the hash code of the object |
isCloseConnection | public boolean isCloseConnection()(Code) | | Indicates whether to close the connection at the end.
a boolean |
predicates | public Iterator predicates()(Code) | | Get an iterator iterating over the predicates contained in this clause set.
an iterator |
removeClauseSetChangeListener | public void removeClauseSetChangeListener(ClauseSetChangeListener l)(Code) | | Remove a clause set listener.
Parameters: l - the listener |
setCacheTimeout | public void setCacheTimeout(long timeout)(Code) | | Set the cache time out. The cache expires after this time.
Parameters: a - timeout in milli seconds, use NO_CACHE in order to switch caching off |
setCloseConnection | public void setCloseConnection(boolean closeConnection)(Code) | | Sets whether to close the connection at the end.
Parameters: closeConnection - a boolean |
setPredicate | public void setPredicate(Predicate p)(Code) | | Set a predicate.
Parameters: p - a predicate |
setSQLPredicate | public void setSQLPredicate(SQLPredicate p)(Code) | | Set an SQL predicate.
Parameters: p - a predicate |
setWhereClause | public void setWhereClause(String c)(Code) | | Set a WHERE clause.
Parameters: p - a predicate |
|
|