org.nakedobjects.runtime.persistence.query
Interface PersistenceQueryBuiltIn

All Superinterfaces:
PersistenceQuery
All Known Implementing Classes:
PersistenceQueryBuiltInAbstract, PersistenceQueryFindAllInstances, PersistenceQueryFindByPattern, PersistenceQueryFindByTitle

public interface PersistenceQueryBuiltIn
extends PersistenceQuery


Method Summary
 boolean matches(NakedObject object)
          The built-in queries iterate over all instances.
 
Methods inherited from interface org.nakedobjects.runtime.persistence.query.PersistenceQuery
getSpecification
 

Method Detail

matches

boolean matches(NakedObject object)
The built-in queries iterate over all instances.

This is similar to the Filter interface in the applib, except the filtering is done within the object store as opposed to be the DomainObjectContainer.

Object store implementations do not necessarily need to rely on this method. For example, an RDBMS-based implementation may use an alternative mechanism to determine the matching results, for example using a WHERE clause in some SQL query.



Copyright © 2001-2009 Naked Objects Group Ltd.. All Rights Reserved.