org.jboss.seam.framework
public class HibernateEntityHome<E> extends Home<org.hibernate.Session,E>
instance, newInstance| Constructor and Description |
|---|
HibernateEntityHome() |
| Modifier and Type | Method and Description |
|---|---|
void |
create()
Run on
Home instantiation to check the Home component is in a
valid state. |
E |
find()
Hook method called by
Home.initInstance() to allow the implementation
to load the entity from the Persistence Context. |
protected String |
getEntityName()
Hook method to get the name of the managed entity
|
protected String |
getPersistenceContextName() |
org.hibernate.Session |
getSession() |
boolean |
isManaged() |
protected void |
joinTransaction()
Hook method called to allow the implementation to join the current
transaction when necessary.
|
protected E |
loadInstance() |
String |
persist() |
String |
remove() |
void |
setSession(org.hibernate.Session session) |
String |
update() |
assignId, clearInstance, createdMessage, createInstance, deletedMessage, getCreatedMessage, getCreatedMessageKey, getDeletedMessage, getDeletedMessageKey, getEntityClass, getId, getInstance, getMessageKeyPrefix, getNewInstance, getSimpleEntityName, getUpdatedMessage, getUpdatedMessageKey, handleNotFound, initDefaultMessages, initInstance, isIdDefined, raiseAfterTransactionSuccessEvent, setCreatedMessage, setDeletedMessage, setEntityClass, setId, setInstance, setNewInstance, setUpdatedMessage, updatedMessageclearDirty, setDirty, setDirtygetPersistenceContext, setPersistenceContextaddCookie, 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, warnpublic void create()
HomeHome instantiation to check the Home component is in a
valid state.
@Transactional public boolean isManaged()
@Transactional public String update()
@Transactional public String persist()
@Transactional public String remove()
@Transactional public E find()
HomeHome.initInstance() to allow the implementation
to load the entity from the Persistence Context.protected E loadInstance()
protected void joinTransaction()
HomejoinTransaction in class Home<org.hibernate.Session,E>public org.hibernate.Session getSession()
public void setSession(org.hibernate.Session session)
protected String getPersistenceContextName()
getPersistenceContextName in class PersistenceController<org.hibernate.Session>protected String getEntityName()
HomegetEntityName in class Home<org.hibernate.Session,E>Copyright © 2015 Seam Framework. All Rights Reserved.