当前页面:
在线文档首页 >
JBoss Seam 1.2.0 patch1 API 英文版文档
Home (JBoss Seam API Documentation) - JBoss Seam 1.2.0 patch1 API 英文版文档
org.jboss.seam.framework
Class Home<T,E>
java.lang.Object
org.jboss.seam.framework.Controller
org.jboss.seam.framework.PersistenceController<T>
org.jboss.seam.framework.MutableController<T>
org.jboss.seam.framework.Home<T,E>
- All Implemented Interfaces:
- Serializable, Mutable
- Direct Known Subclasses:
- EntityHome, HibernateEntityHome
@Scope(value=CONVERSATION)
public abstract class Home<T,E>
- extends MutableController<T>
Base class for components which provide persistence
operations to a managed entity instance. This class
may be reused by either configuration or extension,
and may be bound directly to a view, or accessed by
some intermediate Seam component.
- Author:
- Gavin King
- See Also:
- Serialized Form
Constructor Summary |
Home()
|
Methods inherited from class org.jboss.seam.framework.Controller |
addCookie, addFacesMessage, addFacesMessageFromResourceBundle, debug, debug, error, error, failValidation, fatal, fatal, getApplicationContext, getBusinessProcessContext, getComponentInstance, getComponentInstance, getConversation, getConversationContext, getCookie, getEventContext, getEvents, getFacesContext, getFacesMessages, getIdentity, getLog, getMessages, getMethodContext, getPageContext, getRedirect, getSessionContext, 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 |
instance
protected E instance
newInstance
protected Expressions.ValueBinding newInstance
Home
public Home()
updatedMessage
protected void updatedMessage()
deletedMessage
protected void deletedMessage()
createdMessage
protected void createdMessage()
create
@Create
public void create()
getInstance
@Transactional
public E getInstance()
initInstance
protected void initInstance()
find
protected E find()
handleNotFound
protected E handleNotFound()
createInstance
protected E createInstance()
getEntityClass
public Class<E> getEntityClass()
setEntityClass
public void setEntityClass(Class<E> entityClass)
getId
public Object getId()
setId
public void setId(Object id)
assignId
protected void assignId(Object id)
isIdDefined
public boolean isIdDefined()
setInstance
public void setInstance(E instance)
getNewInstance
public Expressions.ValueBinding getNewInstance()
setNewInstance
public void setNewInstance(Expressions.ValueBinding newInstance)
getCreatedMessage
public String getCreatedMessage()
setCreatedMessage
public void setCreatedMessage(String createdMessage)
getDeletedMessage
public String getDeletedMessage()
setDeletedMessage
public void setDeletedMessage(String deletedMessage)
getUpdatedMessage
public String getUpdatedMessage()
setUpdatedMessage
public void setUpdatedMessage(String updatedMessage)
getMessageKeyPrefix
protected String getMessageKeyPrefix()
getCreatedMessageKey
protected String getCreatedMessageKey()
getUpdatedMessageKey
protected String getUpdatedMessageKey()
getDeletedMessageKey
protected String getDeletedMessageKey()