com.samskivert.jdbc.depot
Class WhereClause
java.lang.Object
com.samskivert.jdbc.depot.clause.QueryClause
com.samskivert.jdbc.depot.WhereClause
- All Implemented Interfaces:
- SQLExpression
- Direct Known Subclasses:
- Key, MultiKey, Where
public abstract class WhereClause
- extends QueryClause
Currently only exists as a type without any functionality of its own.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WhereClause
public WhereClause()
validateQueryType
public void validateQueryType(Class<?> pClass)
- Validates that the supplied persistent record type is the type matched by this where clause.
Not all clauses will be able to perform this validation, but those that can, should do so to
help alleviate programmer error.
- Throws:
IllegalArgumentException - thrown if the supplied class is known not to by the type
matched by this where clause.
validateTypesMatch
protected void validateTypesMatch(Class<?> qClass,
Class<?> kClass)
- A helper function for implementing
validateQueryType(java.lang.Class>).
Copyright © 2000-2008 Michael Bayne.
All Rights Reserved.