com.u2d.find
Class CompositeQuery

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

public class CompositeQuery
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
static java.lang.String[] fieldOrder
           
static java.lang.Class querySpecificationsType
           
 
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
CompositeQuery()
           
CompositeQuery(ComplexType queryType)
           
 
Method Summary
 CriteriaListEO execute()
           
 CriteriaListEO Execute(CommandInfo cmdInfo)
           
 org.hibernate.Criteria getCriteria()
           
 EView getMainView()
           
 StringEO getName()
           
 CompositeList getQuerySpecifications()
           
 ComplexType getQueryType()
           
static AbstractListEO HQLQuery(CommandInfo cmdInfo, TextEO hqlText)
           
static CompositeQuery New(CommandInfo cmdInfo, ComplexType querytype)
          overload command new..
 void onCreate()
           
 void onDelete()
           
static java.lang.String pluralName()
           
 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, getState, getTabBodyView, getTransferData, getTransferDataFlavors, getTreeView, getView, iconLg, iconSm, initialize, isDataFlavorSupported, isEditableState, isEditState, isEmpty, isMeta, isNullState, isTransientState, log, makeCopy, onBeforeCreate, onBeforeSave, 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
getView
 
Methods inherited from interface com.u2d.pubsub.AppEventNotifier
addAppEventListener, fireAppEventNotification, removeAppEventListener
 
Methods inherited from interface com.u2d.persist.PersistorListener
onBeforeCreate, onBeforeSave, 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
 

Field Detail

querySpecificationsType

public static java.lang.Class querySpecificationsType

fieldOrder

public static java.lang.String[] fieldOrder
Constructor Detail

CompositeQuery

public CompositeQuery()

CompositeQuery

public CompositeQuery(ComplexType queryType)
Method Detail

pluralName

public static java.lang.String pluralName()

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)

getQuerySpecifications

public CompositeList getQuerySpecifications()

getCriteria

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

New

public static CompositeQuery New(CommandInfo cmdInfo,
                                 ComplexType querytype)
overload command new..


Execute

public CriteriaListEO Execute(CommandInfo cmdInfo)

execute

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

title

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

getMainView

public EView getMainView()
Specified by:
getMainView in interface Viewable
Overrides:
getMainView in class AbstractComplexEObject

onCreate

public void onCreate()
Specified by:
onCreate in interface PersistorListener
Overrides:
onCreate in class AbstractComplexEObject

onDelete

public void onDelete()
Specified by:
onDelete in interface PersistorListener
Overrides:
onDelete in class AbstractComplexEObject

HQLQuery

public static AbstractListEO HQLQuery(CommandInfo cmdInfo,
                                      TextEO hqlText)