org.nakedobjects.runtime.persistence.query
Class PersistenceQueryFindByTitle

java.lang.Object
  extended by org.nakedobjects.runtime.persistence.query.PersistenceQueryAbstract
      extended by org.nakedobjects.runtime.persistence.query.PersistenceQueryBuiltInAbstract
          extended by org.nakedobjects.runtime.persistence.query.PersistenceQueryFindByTitle
All Implemented Interfaces:
Encodable, PersistenceQuery, PersistenceQueryBuiltIn

public class PersistenceQueryFindByTitle
extends PersistenceQueryBuiltInAbstract

Corresponds to QueryFindByTitle.


Constructor Summary
PersistenceQueryFindByTitle(NakedObjectSpecification specification, java.lang.String title)
           
 
Method Summary
 java.lang.String getTitle()
           
 boolean matches(NakedObject object)
          The built-in queries iterate over all instances.
 boolean matches(java.lang.String titleString)
           
 java.lang.String toString()
           
 
Methods inherited from class org.nakedobjects.runtime.persistence.query.PersistenceQueryAbstract
encode, equals, getSpecification, getSpecificationLoader, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.nakedobjects.runtime.persistence.query.PersistenceQuery
getSpecification
 

Constructor Detail

PersistenceQueryFindByTitle

public PersistenceQueryFindByTitle(NakedObjectSpecification specification,
                                   java.lang.String title)
Method Detail

getTitle

public java.lang.String getTitle()

matches

public boolean matches(NakedObject object)
Description copied from interface: PersistenceQueryBuiltIn
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.


matches

public boolean matches(java.lang.String titleString)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


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