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

Home (JBoss Seam API Documentation) - JBoss Seam 1.1.0 API 英文版文档


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

java.lang.Object
  extended by org.jboss.seam.core.AbstractMutable
      extended by org.jboss.seam.framework.Home<E>
All Implemented Interfaces:
Serializable, Mutable
Direct Known Subclasses:
EntityHome, HibernateEntityHome

@Scope(value=CONVERSATION)
public class Home<E>
extends AbstractMutable
implements Serializable

Manager component for an instance of any class.

Author:
Gavin King
See Also:
Serialized Form

Field Summary
protected  E instance
           
protected  Expressions.ValueBinding newInstance
           
 
Constructor Summary
Home()
           
 
Method Summary
 void create()
           
protected  void createdMessage()
           
protected  E createInstance()
           
protected  void deletedMessage()
           
protected  E find()
           
 String getCreatedMessage()
           
protected  String getCreatedMessageKey()
           
 String getDeletedMessage()
           
protected  String getDeletedMessageKey()
           
 Class<E> getEntityClass()
           
 Object getId()
           
 E getInstance()
           
protected  String getMessageKeyPrefix()
           
 Expressions.ValueBinding getNewInstance()
           
 String getUpdatedMessage()
           
protected  String getUpdatedMessageKey()
           
protected  E handleNotFound()
           
protected  void initInstance()
           
 boolean isIdDefined()
           
 void setCreatedMessage(String createdMessage)
           
 void setDeletedMessage(String deletedMessage)
           
 void setEntityClass(Class<E> entityClass)
           
 void setId(Object id)
           
 void setInstance(E instance)
           
 void setNewInstance(Expressions.ValueBinding newInstance)
           
 void setUpdatedMessage(String updatedMessage)
           
protected  void updatedMessage()
           
 
Methods inherited from class org.jboss.seam.core.AbstractMutable
clearDirty, setDirty, setDirty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

instance

protected E instance

newInstance

protected Expressions.ValueBinding newInstance
Constructor Detail

Home

public Home()
Method Detail

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)

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()