org.jboss.seam
Class Entity

java.lang.Object
  extended by org.jboss.seam.Model
      extended by org.jboss.seam.Entity

public class Entity
extends Model

Metamodel class for entity classes. A class will be identified as an entity class if it has an @Entity annotation.

Author:
Gavin King

Constructor Summary
Entity(Class<?> beanClass)
           
 
Method Summary
static Entity forClass(Class clazz)
           
 Object getIdentifier(Object entity)
           
 Field getIdentifierField()
           
 Method getIdentifierGetter()
           
 String getName()
           
 Method getPostLoadMethod()
           
 Method getPrePersistMethod()
           
 Method getPreRemoveMethod()
           
 Method getPreUpdateMethod()
           
 Object getVersion(Object entity)
           
 Field getVersionField()
           
 Method getVersionGetter()
           
 
Methods inherited from class org.jboss.seam.Model
getBeanClass
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Entity

public Entity(Class<?> beanClass)
Method Detail

getPostLoadMethod

public Method getPostLoadMethod()

getPrePersistMethod

public Method getPrePersistMethod()

getPreRemoveMethod

public Method getPreRemoveMethod()

getPreUpdateMethod

public Method getPreUpdateMethod()

getIdentifierField

public Field getIdentifierField()

getIdentifierGetter

public Method getIdentifierGetter()

getVersionField

public Field getVersionField()

getVersionGetter

public Method getVersionGetter()

getIdentifier

public Object getIdentifier(Object entity)

getVersion

public Object getVersion(Object entity)

getName

public String getName()

forClass

public static Entity forClass(Class clazz)