org.nakedobjects.applib.query
Class QueryAbstract<T>
java.lang.Object
org.nakedobjects.applib.query.QueryAbstract<T>
- All Implemented Interfaces:
- Serializable, Query<T>
- Direct Known Subclasses:
- QueryDefault
public abstract class QueryAbstract<T>
- extends Object
- implements Query<T>
Convenience adapter class for Query.
Handles implementation of getResultType()
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
QueryAbstract
public QueryAbstract(Class<T> type)
QueryAbstract
public QueryAbstract(String typeName)
getResultType
public 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:
IllegalStateException - (wrapping a ClassNotFoundException) if the class
could not be determined.
getResultTypeName
public String getResultTypeName()
Copyright © 2001-2009 Naked Objects Group Ltd.. All Rights Reserved.