org.nakedobjects.plugins.hibernate.objectstore.metamodel.criteria
Class HibernateInstancesCriteria

java.lang.Object
  extended by org.nakedobjects.plugins.hibernate.objectstore.metamodel.criteria.HibernateInstancesCriteria
All Implemented Interfaces:
PersistenceQuery
Direct Known Subclasses:
HibernateCriteriaCriteria, HibernateQueryCriteria

public abstract class HibernateInstancesCriteria
extends java.lang.Object
implements PersistenceQuery

Superclass of all InstancesCriteria which use Hibernate to access the database.


Field Summary
static int LIST
           
static int UNIQUE_RESULT
           
 
Constructor Summary
protected HibernateInstancesCriteria()
          provided for serialization purposes only.
  HibernateInstancesCriteria(java.lang.Class<?> type, int resultType)
           
 
Method Summary
protected  java.lang.Class<?> getCls()
           
abstract  java.util.List<?> getResults()
          Return the results of executing the Hibernate query.
 int getResultType()
           
 NakedObjectSpecification getSpecification()
           
 boolean includeSubclasses()
          Not required as this will be in the Hibernate query/criteria
 boolean matches(NakedObject object)
          Not required as this will be decided by the Hibernate query/criteria
abstract  void setSession(org.hibernate.Session session)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LIST

public static final int LIST
See Also:
Constant Field Values

UNIQUE_RESULT

public static final int UNIQUE_RESULT
See Also:
Constant Field Values
Constructor Detail

HibernateInstancesCriteria

public HibernateInstancesCriteria(java.lang.Class<?> type,
                                  int resultType)

HibernateInstancesCriteria

protected HibernateInstancesCriteria()
provided for serialization purposes only.

Method Detail

getSpecification

public NakedObjectSpecification getSpecification()
Specified by:
getSpecification in interface PersistenceQuery

includeSubclasses

public boolean includeSubclasses()
Not required as this will be in the Hibernate query/criteria


matches

public boolean matches(NakedObject object)
Not required as this will be decided by the Hibernate query/criteria


getResults

public abstract java.util.List<?> getResults()
Return the results of executing the Hibernate query.

Returns:
a List of persistent Objects

setSession

public abstract void setSession(org.hibernate.Session session)

getResultType

public int getResultType()

getCls

protected java.lang.Class<?> getCls()


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