org.jboss.seam.ui
Class HibernateEntityLoader

java.lang.Object
  extended by org.jboss.seam.framework.Controller
      extended by org.jboss.seam.framework.PersistenceController<T>
          extended by org.jboss.seam.ui.AbstractEntityLoader<org.hibernate.Session>
              extended by org.jboss.seam.ui.HibernateEntityLoader
All Implemented Interfaces:
Serializable

@Name(value="org.jboss.seam.ui.entityLoader")
@Install(precedence=10,
         classDependencies="org.hibernate.Session",
         value=false)
@Scope(value=STATELESS)
public class HibernateEntityLoader
extends AbstractEntityLoader<org.hibernate.Session>

Stores entity identifiers under a key, which can be used on a page

Author:
Pete Muir
See Also:
Serialized Form

Constructor Summary
HibernateEntityLoader()
           
 
Method Summary
protected  org.jboss.seam.framework.Identifier createIdentifier(Object entity)
           
protected  String getPersistenceContextName()
           
 org.hibernate.Session getSession()
           
 void setSession(org.hibernate.Session session)
           
 void validate()
           
 
Methods inherited from class org.jboss.seam.ui.AbstractEntityLoader
get, instance, put
 
Methods inherited from class org.jboss.seam.framework.PersistenceController
getPersistenceContext, setPersistenceContext
 
Methods inherited from class org.jboss.seam.framework.Controller
addCookie, addFacesMessage, addFacesMessageFromResourceBundle, createValueExpression, createValueExpression, debug, debug, error, error, evaluateValueExpression, evaluateValueExpression, failValidation, fatal, fatal, getApplicationContext, getBusinessProcessContext, getComponentInstance, getComponentInstance, getConversation, getConversationContext, getCookie, getEventContext, getEvents, getFacesContext, getFacesMessages, getIdentity, getLog, getMessages, getMethodContext, getPageContext, getRedirect, getSessionContext, getStatusMessages, getValidator, getValidator, info, info, interpolate, invalidateSession, isTransactionMarkedRollback, raiseAsynchronousEvent, raiseEvent, raiseTransactionSuccessEvent, render, sendHttpError, sendHttpError, trace, trace, validationFailed, validationSucceeded, warn, warn
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HibernateEntityLoader

public HibernateEntityLoader()
Method Detail

createIdentifier

protected org.jboss.seam.framework.Identifier createIdentifier(Object entity)
Specified by:
createIdentifier in class AbstractEntityLoader<org.hibernate.Session>

getPersistenceContextName

protected String getPersistenceContextName()
Specified by:
getPersistenceContextName in class org.jboss.seam.framework.PersistenceController<org.hibernate.Session>

validate

public void validate()
Specified by:
validate in class AbstractEntityLoader<org.hibernate.Session>

getSession

public org.hibernate.Session getSession()

setSession

public void setSession(org.hibernate.Session session)


Copyright © 2011 Seam Framework. All Rights Reserved.