org.trails.component
Class HibernateAssociationSelect

java.lang.Object
  extended by org.apache.hivemind.impl.BaseLocatable
      extended by org.apache.tapestry.AbstractComponent
          extended by org.apache.tapestry.form.AbstractFormComponent
              extended by org.apache.tapestry.form.PropertySelection
                  extended by org.trails.component.AbstractPropertySelection
                      extended by org.trails.component.AssociationSelect
                          extended by org.trails.component.HibernateAssociationSelect
All Implemented Interfaces:
org.apache.hivemind.Locatable, org.apache.hivemind.LocationHolder, org.apache.tapestry.form.IFormComponent, org.apache.tapestry.form.ValidatableField, org.apache.tapestry.IComponent, org.apache.tapestry.IDirectEvent, org.apache.tapestry.internal.Component, org.apache.tapestry.IRender

@ComponentClass(allowBody=false,
                allowInformalParameters=true)
public abstract class HibernateAssociationSelect
extends AssociationSelect

This guy interacts with persistence service to produce a Select containing all the elements of the PropertyDescriptor's type. If a criteria is specified, it will filter the list by it.


Field Summary
 
Fields inherited from class org.apache.tapestry.AbstractComponent
_body, _bodyCount
 
Constructor Summary
HibernateAssociationSelect()
           
 
Method Summary
 org.apache.tapestry.form.IPropertySelectionModel buildSelectionModel()
           
abstract  org.hibernate.criterion.DetachedCriteria getCriteria()
           
abstract  HibernatePersistenceService getHibernatePersistenceService()
           
 HibernatePersistenceService getPersistenceService()
           
 
Methods inherited from class org.trails.component.AssociationSelect
getClassDescriptor, getDescriptorService
 
Methods inherited from class org.trails.component.AbstractPropertySelection
getIdParameter, getInstances, getModel, getNoneLabel, getOptionRenderer, getPropertyDescriptor, getValidatableFieldSupport, getValue, isAllowNone, setAllowNone, setInstances, setModel, setNoneLabel, setPropertyDescriptor, setValue
 
Methods inherited from class org.apache.tapestry.form.PropertySelection
isRequired, renderFormComponent, rewindFormComponent
 
Methods inherited from class org.apache.tapestry.form.AbstractFormComponent
generateClientId, getCanTakeFocus, getForm, getName, getRenderBodyOnRewind, peekClientId, renderComponent, renderDelegateAttributes, renderDelegatePrefix, renderDelegateSuffix, setForm, setName, setName
 
Methods inherited from class org.apache.tapestry.AbstractComponent
addAsset, addBody, addComponent, checkActiveLock, cleanupAfterRender, enterActiveState, equals, finishLoad, finishLoad, getAsset, getAssets, getBeans, getBinding, getBindingNames, getBindings, getBody, getBodyCount, getBoundId, getClientId, getComponent, getComponents, getContainedComponent, getContainedRenderers, getContainer, getEventInvoker, getExtendedId, getId, getIdPath, getInnerRenderers, getListeners, getMessages, getNamespace, getPage, getRenderWorker, getSpecification, getSpecifiedId, getTemplateTagName, hasEvents, hashCode, isInActiveState, isParameterBound, isRendering, isStateful, pageEndRender, prepareForRender, render, renderBody, renderIdAttribute, renderInformalParameters, setBinding, setClientId, setContainedComponent, setContainer, setHasEvents, setId, setNamespace, setPage, setTemplateTagName, toString, triggerEvent
 
Methods inherited from class org.apache.hivemind.impl.BaseLocatable
getLocation, setLocation
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.tapestry.form.ValidatableField
getValidators
 
Methods inherited from interface org.apache.tapestry.form.IFormComponent
getClientId, getDisplayName, getForm, getName, isDisabled, setName
 
Methods inherited from interface org.apache.tapestry.IComponent
addAsset, addBody, addComponent, enterActiveState, finishLoad, getAsset, getAssets, getBeans, getBinding, getBindingNames, getBindings, getComponent, getComponents, getContainedComponent, getContainer, getEventInvoker, getExtendedId, getId, getIdPath, getListeners, getMessages, getNamespace, getPage, getSpecification, getSpecifiedId, getTemplateTagName, isRendering, peekClientId, renderBody, setBinding, setClientId, setContainedComponent, setContainer, setId, setNamespace, setPage, setTemplateTagName
 
Methods inherited from interface org.apache.tapestry.IRender
render
 
Methods inherited from interface org.apache.hivemind.LocationHolder
setLocation
 
Methods inherited from interface org.apache.hivemind.Locatable
getLocation
 

Constructor Detail

HibernateAssociationSelect

public HibernateAssociationSelect()
Method Detail

getHibernatePersistenceService

@InjectObject(value="service:trails.hibernate.PersistenceService")
public abstract HibernatePersistenceService getHibernatePersistenceService()

getPersistenceService

public HibernatePersistenceService getPersistenceService()
Specified by:
getPersistenceService in class AssociationSelect

getCriteria

@Parameter(required=false)
public abstract org.hibernate.criterion.DetachedCriteria getCriteria()

buildSelectionModel

public org.apache.tapestry.form.IPropertySelectionModel buildSelectionModel()
Overrides:
buildSelectionModel in class AssociationSelect


Copyright © 2004-2008. All Rights Reserved.