org.nakedobjects.applib.query
Class QueryAbstract<T>

java.lang.Object
  extended by org.nakedobjects.applib.query.QueryAbstract<T>
All Implemented Interfaces:
java.io.Serializable, Query<T>
Direct Known Subclasses:
QueryDefault

public abstract class QueryAbstract<T>
extends java.lang.Object
implements Query<T>

Convenience adapter class for Query.

Handles implementation of getResultType()

See Also:
Serialized Form

Constructor Summary
QueryAbstract(java.lang.Class<T> type)
           
QueryAbstract(java.lang.String typeName)
           
 
Method Summary
 java.lang.Class<T> getResultType()
          The Class of the objects returned by this query.
 java.lang.String 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

QueryAbstract

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

QueryAbstract

public QueryAbstract(java.lang.String typeName)
Method Detail

getResultType

public java.lang.Class<T> getResultType()
Description copied from interface: Query
The Class of the objects returned by this query.

Specified by:
getResultType in interface Query<T>
Throws:
java.lang.IllegalStateException - (wrapping a ClassNotFoundException) if the class could not be determined.

getResultTypeName

public java.lang.String getResultTypeName()


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