com.u2d.find
Class SimpleQuery

java.lang.Object
  extended by com.u2d.model.AbstractEObject
      extended by com.u2d.model.AbstractComplexEObject
          extended by com.u2d.find.SimpleQuery
All Implemented Interfaces:
Query, Searchable, ChangeNotifier, ComplexEObject, EObject, PostChangeNotifier, PropertyChangeNotifier, Typed, Viewable, PersistorListener, AppEventNotifier, ValidationNotifier, java.awt.datatransfer.Transferable, java.io.Serializable

public class SimpleQuery
extends AbstractComplexEObject
implements Query

Author:
Eitan Suez
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class com.u2d.model.AbstractComplexEObject
AbstractComplexEObject.EditState, AbstractComplexEObject.NullState, AbstractComplexEObject.ReadState, AbstractComplexEObject.TransientState
 
Field Summary
 
Fields inherited from class com.u2d.model.AbstractComplexEObject
_associations, _changeSupport, _createdOn, _currentState, _editState, _nullState, _readState, _stateMap, _transientState, _type, commandOrderEditState, commandOrderReadState, commandOrderTransientState, readOnly
 
Fields inherited from class com.u2d.model.AbstractEObject
_listenerList, _postListeners, _validationEvent, _validationListenerList, changeEvent
 
Constructor Summary
SimpleQuery(ComplexType type)
           
SimpleQuery(ComplexType type, QuerySpecification spec)
           
 
Method Summary
 CriteriaListEO execute()
           
 CriteriaListEO Execute(CommandInfo cmdInfo)
           
 org.hibernate.Criteria getCriteria()
           
 org.hibernate.Criteria getCriteria(org.hibernate.Session s)
           
 StringEO getName()
           
 QuerySpecification getQuerySpecification()
           
 ComplexType getQueryType()
           
 void setQueryType(ComplexType type)
           
 Title title()
           
 
Methods inherited from class com.u2d.model.AbstractComplexEObject
addAppEventListener, addPropertyChangeListener, addPropertyChangeListener, association, cancelTransition, childFields, cleanCGILibEnhancer, clearEditor, command, command, commands, createInstance, defaultCommand, defaultCommandName, delete, doSave, equals, field, fieldSublist, fireAppEventNotification, fireAppEventNotification, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getCreatedOn, getDeleted, getDeletedOn, getExpandableView, getFormView, getIconView, getID, getInequalities, getListItemView, getMainView, getState, getTabBodyView, getTransferData, getTransferDataFlavors, getTreeView, getView, iconLg, iconSm, initialize, isDataFlavorSupported, isEditableState, isEditState, isEmpty, isMeta, isNullState, isTransientState, log, makeCopy, onBeforeCreate, onBeforeSave, onCreate, onDelete, onLoad, onSave, popState, pushState, removeAppEventListener, removePropertyChangeListener, removePropertyChangeListener, restoreCopy, restoredState, restoreState, save, saveCopy, setEditor, setEditState, setID, setNullState, setReadState, setStartState, setState, setState, setTransientState, setValue, setValue, startState, toString, treeModel, type, validate
 
Methods inherited from class com.u2d.model.AbstractEObject
addChangeListener, addPostChangeListener, addValidationListener, currentUser, field, fireStateChanged, fireValidationException, fireValidationException, hbmPersistor, parentObject, persistor, removeChangeListener, removePostChangeListener, removeValidationListener, setField, vmech
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.u2d.model.ComplexEObject
association, cancelTransition, childFields, clearEditor, command, defaultCommand, defaultCommandName, delete, doSave, field, getCreatedOn, getExpandableView, getFormView, getIconView, getID, getListItemView, getState, getTabBodyView, getTreeView, initialize, isEditableState, isEditState, isMeta, isNullState, isTransientState, restoreState, save, setEditor, setEditState, setID, setNullState, setReadState, setStartState, setState, setTransientState, setValue, treeModel, type
 
Methods inherited from interface com.u2d.model.EObject
commands, field, iconLg, iconSm, isEmpty, makeCopy, parentObject, setField, setValue, validate
 
Methods inherited from interface com.u2d.validation.ValidationNotifier
addValidationListener, fireValidationException, fireValidationException, removeValidationListener
 
Methods inherited from interface com.u2d.model.ChangeNotifier
addChangeListener, fireStateChanged, removeChangeListener
 
Methods inherited from interface com.u2d.model.Viewable
getMainView, getView
 
Methods inherited from interface com.u2d.pubsub.AppEventNotifier
addAppEventListener, fireAppEventNotification, removeAppEventListener
 
Methods inherited from interface com.u2d.persist.PersistorListener
onBeforeCreate, onBeforeSave, onCreate, onDelete, onLoad, onSave
 
Methods inherited from interface com.u2d.find.Searchable
getInequalities
 
Methods inherited from interface java.awt.datatransfer.Transferable
getTransferData, getTransferDataFlavors, isDataFlavorSupported
 
Methods inherited from interface com.u2d.model.PropertyChangeNotifier
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, removePropertyChangeListener, removePropertyChangeListener
 
Methods inherited from interface com.u2d.model.PostChangeNotifier
addPostChangeListener, fireStateChanged, removePostChangeListener
 

Constructor Detail

SimpleQuery

public SimpleQuery(ComplexType type)

SimpleQuery

public SimpleQuery(ComplexType type,
                   QuerySpecification spec)
Method Detail

getName

public StringEO getName()
Specified by:
getName in interface Query

getQueryType

public ComplexType getQueryType()
Specified by:
getQueryType in interface Query

setQueryType

public void setQueryType(ComplexType type)

getQuerySpecification

public QuerySpecification getQuerySpecification()

Execute

public CriteriaListEO Execute(CommandInfo cmdInfo)

execute

public CriteriaListEO execute()
Specified by:
execute in interface Query

getCriteria

public org.hibernate.Criteria getCriteria()
Specified by:
getCriteria in interface Query

getCriteria

public org.hibernate.Criteria getCriteria(org.hibernate.Session s)

title

public Title title()
Specified by:
title in interface EObject
Specified by:
title in class AbstractComplexEObject