org.nakedobjects.metamodel.services.container.query
Class QueryBuiltInAbstract<T>

java.lang.Object
  extended by org.nakedobjects.applib.query.QueryAbstract<T>
      extended by org.nakedobjects.metamodel.services.container.query.QueryBuiltInAbstract<T>
All Implemented Interfaces:
java.io.Serializable, Query<T>
Direct Known Subclasses:
QueryFindAllInstances, QueryFindByPattern, QueryFindByTitle

public abstract class QueryBuiltInAbstract<T>
extends QueryAbstract<T>

Although (through this class) the subclasses implements Query and thus are meant to be Serializable, this isn't actually required of the built-in queries because they are all converted into corresponding PersistenceQuery in the runtime for remoting purposes.

The principle reason for this is to reduce the size of the API from the DomainObjectContainer to RuntimeContext, as well as possibly to the embedded viewer's EmbeddedContext. It also means that the requirements for writing an object store are more easily expressed: support the three built-in queries, plus any others.

Note also that the QueryFindByPattern isn't actually serializable (because it references an arbitrary pojo).

See Also:
Serialized Form

Constructor Summary
QueryBuiltInAbstract(java.lang.Class<T> type)
           
QueryBuiltInAbstract(NakedObjectSpecification noSpec)
           
QueryBuiltInAbstract(java.lang.String typeName)
           
 
Method Summary
 
Methods inherited from class org.nakedobjects.applib.query.QueryAbstract
getResultType, getResultTypeName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.nakedobjects.applib.query.Query
getDescription
 

Constructor Detail

QueryBuiltInAbstract

public QueryBuiltInAbstract(java.lang.Class<T> type)

QueryBuiltInAbstract

public QueryBuiltInAbstract(java.lang.String typeName)

QueryBuiltInAbstract

public QueryBuiltInAbstract(NakedObjectSpecification noSpec)


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