org.nakedobjects.applib.query
Interface Query<T>

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
QueryAbstract, QueryDefault

public interface Query<T>
extends java.io.Serializable

For use by repository implementations, representing the values of a query.

The implementations of these objects are be provided by the underlying persistor/object store; consult its documentation.

Note: that not every object store will necessarily support this interface. In particular, the in-memory object store does not. For this, you can use the Filter interface to similar effect, for example in DomainObjectContainer.allMatches(Class, Filter)). Note that the filtering is done within the DomainObjectContainer rather than being pushed back to the object store.


Method Summary
 java.lang.String getDescription()
          A human-readable representation of this query and its values.
 java.lang.Class<T> getResultType()
          The Class of the objects returned by this query.
 

Method Detail

getResultType

java.lang.Class<T> getResultType()
The Class of the objects returned by this query.


getDescription

java.lang.String getDescription()
A human-readable representation of this query and its values.



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