站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss Seam 1.2.0 API 英文版文档

EntityHome (JBoss Seam API Documentation) - JBoss Seam 1.2.0 API 英文版文档


org.jboss.seam.framework
Class EntityHome<E>

java.lang.Object
  extended by org.jboss.seam.framework.Controller
      extended by org.jboss.seam.framework.PersistenceController<T>
          extended by org.jboss.seam.framework.MutableController<T>
              extended by org.jboss.seam.framework.Home<javax.persistence.EntityManager,E>
                  extended by org.jboss.seam.framework.EntityHome<E>
All Implemented Interfaces:
Serializable, Mutable

public class EntityHome<E>
extends Home<javax.persistence.EntityManager,E>

Base class for Home objects of JPA entities.

Author:
Gavin King
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.jboss.seam.framework.Home
instance, newInstance
 
Constructor Summary
EntityHome()
           
 
Method Summary
 void create()
           
 E find()
           
 javax.persistence.EntityManager getEntityManager()
           
protected  String getPersistenceContextName()
           
 boolean isManaged()
           
 String persist()
           
 String remove()
           
 void setEntityManager(javax.persistence.EntityManager entityManager)
           
 String update()
           
 
Methods inherited from class org.jboss.seam.framework.Home
assignId, createdMessage, createInstance, deletedMessage, getCreatedMessage, getCreatedMessageKey, getDeletedMessage, getDeletedMessageKey, getEntityClass, getId, getInstance, getMessageKeyPrefix, getNewInstance, getUpdatedMessage, getUpdatedMessageKey, handleNotFound, initInstance, isIdDefined, setCreatedMessage, setDeletedMessage, setEntityClass, setId, setInstance, setNewInstance, setUpdatedMessage, updatedMessage
 
Methods inherited from class org.jboss.seam.framework.MutableController
clearDirty, setDirty, setDirty
 
Methods inherited from class org.jboss.seam.framework.PersistenceController
getPersistenceContext, setPersistenceContext
 
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
 

Constructor Detail

EntityHome

public EntityHome()
Method Detail

create

public void create()
Overrides:
create in class Home<javax.persistence.EntityManager,E>

isManaged

@Transactional
public boolean isManaged()

update

@Transactional
public String update()

persist

@Transactional
public String persist()

remove

@Transactional
public String remove()

find

@Transactional
public E find()
Overrides:
find in class Home<javax.persistence.EntityManager,E>

getEntityManager

public javax.persistence.EntityManager getEntityManager()

setEntityManager

public void setEntityManager(javax.persistence.EntityManager entityManager)

getPersistenceContextName

protected String getPersistenceContextName()
Specified by:
getPersistenceContextName in class PersistenceController<javax.persistence.EntityManager>