com.samskivert.jdbc.depot
Class WhereClause

java.lang.Object
  extended by com.samskivert.jdbc.depot.clause.QueryClause
      extended by 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.


Constructor Summary
WhereClause()
           
 
Method Summary
 void validateQueryType(Class<?> pClass)
          Validates that the supplied persistent record type is the type matched by this where clause.
protected  void validateTypesMatch(Class<?> qClass, Class<?> kClass)
          A helper function for implementing validateQueryType(java.lang.Class).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.samskivert.jdbc.depot.expression.SQLExpression
accept, addClasses
 

Constructor Detail

WhereClause

public WhereClause()
Method Detail

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.