org.jboss.metadata.ejb.spec
Class EntityBeanMetaData

java.lang.Object
  extended by org.jboss.metadata.javaee.support.IdMetaDataImpl
      extended by org.jboss.metadata.javaee.support.NamedMetaData
          extended by org.jboss.metadata.javaee.support.NamedMetaDataWithDescriptionGroup
              extended by org.jboss.metadata.ejb.spec.EnterpriseBeanMetaData
                  extended by org.jboss.metadata.ejb.spec.EntityBeanMetaData
All Implemented Interfaces:
Serializable, Cloneable, IEnterpriseBeanMetaData<AssemblyDescriptorMetaData,EnterpriseBeansMetaData,EnterpriseBeanMetaData,EjbJarMetaData>, Environment, RemoteEnvironment, IdMetaData, MappableMetaData

public class EntityBeanMetaData
extends EnterpriseBeanMetaData

EntityBeanMetaData.

Version:
$Revision: 1.1 $
Author:
Adrian Brock
See Also:
Serialized Form

Constructor Summary
EntityBeanMetaData()
          Create a new EntityBeanMetaData.
 
Method Summary
 String getAbstractSchemaName()
          Get the abstractSchemaName.
 CMPFieldsMetaData getCmpFields()
          Get the cmpFields.
 String getCmpVersion()
          Get the cmpVersion.
 String getHome()
          Get the home.
 String getLocal()
          Get the local.
 String getLocalHome()
          Get the localHome.
 PersistenceType getPersistenceType()
          Get the persistenceType.
 String getPrimKeyClass()
          Get the primKeyClass.
 String getPrimKeyField()
          Get the primKeyField.
 QueriesMetaData getQueries()
          Get the queries.
 String getRemote()
          Get the remote.
 SecurityRoleRefsMetaData getSecurityRoleRefs()
          Get the securityRoleRefs.
 boolean isBMP()
          Is this bean managed persistence
 boolean isCMP()
          Is this container managed persistence
 boolean isCMP1x()
          Whether it is CMP1x
 boolean isEntity()
          Whether this is an entity bean
 boolean isReentrant()
          Get the reentrant.
 void setAbstractSchemaName(String abstractSchemaName)
          Set the abstractSchemaName.
 void setCmpFields(CMPFieldsMetaData cmpFields)
          Set the cmpFields.
 void setCmpVersion(String cmpVersion)
          Set the cmpVersion.
 void setHome(String home)
          Set the home.
 void setLocal(String local)
          Set the local.
 void setLocalHome(String localHome)
          Set the localHome.
 void setPersistenceType(PersistenceType persistenceType)
          Set the persistenceType.
 void setPrimKeyClass(String primKeyClass)
          Set the primKeyClass.
 void setPrimKeyField(String primKeyField)
          Set the primKeyField.
 void setQueries(QueriesMetaData queries)
          Set the queries.
 void setReentrant(boolean reentrant)
          Set the reentrant.
 void setRemote(String remote)
          Set the remote.
 void setSecurityRoleRefs(SecurityRoleRefsMetaData securityRoleRefs)
          Set the securityRoleRefs.
 
Methods inherited from class org.jboss.metadata.ejb.spec.EnterpriseBeanMetaData
getAnnotatedEjbReferences, getAssemblyDescriptor, getContainerTransactions, getEjbClass, getEjbJarMetaData, getEjbLocalReferenceByName, getEjbLocalReferences, getEjbName, getEjbReferenceByName, getEjbReferences, getEnterpriseBeansMetaData, getEnvironmentEntries, getEnvironmentEntryByName, getExcludeList, getJndiEnvironmentRefsGroup, getMappedName, getMessageDestinationReferenceByName, getMessageDestinationReferences, getMethodPermissions, getMethodTransactionType, getMethodTransactionType, getPersistenceContextReferenceByName, getPersistenceContextRefs, getPersistenceUnitReferenceByName, getPersistenceUnitRefs, getPostConstructs, getPreDestroys, getResourceEnvironmentReferenceByName, getResourceEnvironmentReferences, getResourceReferenceByName, getResourceReferences, getSecurityIdentity, getServiceReferenceByName, getServiceReferences, getTransactionType, isBMT, isCMT, isMessageDriven, isSession, merge, newBean, setEjbClass, setEjbName, setEnterpriseBeansMetaData, setEnvironmentRefsGroup, setJndiEnvironmentRefsGroup, setMappedName, setSecurityIdentity
 
Methods inherited from class org.jboss.metadata.javaee.support.NamedMetaDataWithDescriptionGroup
getDescriptionGroup, merge, setDescriptionGroup
 
Methods inherited from class org.jboss.metadata.javaee.support.NamedMetaData
equals, getKey, getName, hashCode, setName, toString
 
Methods inherited from class org.jboss.metadata.javaee.support.IdMetaDataImpl
clone, getId, merge, merge, setId
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jboss.metadata.common.ejb.IEnterpriseBeanMetaData
getDescriptionGroup, getId, setDescriptionGroup
 
Methods inherited from interface org.jboss.metadata.javaee.support.MappableMetaData
getKey
 

Constructor Detail

EntityBeanMetaData

public EntityBeanMetaData()
Create a new EntityBeanMetaData.

Method Detail

isEntity

public boolean isEntity()
Description copied from class: EnterpriseBeanMetaData
Whether this is an entity bean

Specified by:
isEntity in interface IEnterpriseBeanMetaData<AssemblyDescriptorMetaData,EnterpriseBeansMetaData,EnterpriseBeanMetaData,EjbJarMetaData>
Overrides:
isEntity in class EnterpriseBeanMetaData
Returns:
true when an entity bean

getHome

public String getHome()
Get the home.

Returns:
the home.

setHome

public void setHome(String home)
Set the home.

Parameters:
home - the home.
Throws:
IllegalArgumentException - for a null home

getRemote

public String getRemote()
Get the remote.

Returns:
the remote.

setRemote

public void setRemote(String remote)
Set the remote.

Parameters:
remote - the remote.
Throws:
IllegalArgumentException - for a null remote

getLocalHome

public String getLocalHome()
Get the localHome.

Returns:
the localHome.

setLocalHome

public void setLocalHome(String localHome)
Set the localHome.

Parameters:
localHome - the localHome.
Throws:
IllegalArgumentException - for a null localHome

getLocal

public String getLocal()
Get the local.

Returns:
the local.

setLocal

public void setLocal(String local)
Set the local.

Parameters:
local - the local.
Throws:
IllegalArgumentException - for a null local

isCMP

public boolean isCMP()
Is this container managed persistence

Returns:
true for cmp

isBMP

public boolean isBMP()
Is this bean managed persistence

Returns:
true for bmp

getPersistenceType

public PersistenceType getPersistenceType()
Get the persistenceType.

Returns:
the persistenceType.

setPersistenceType

public void setPersistenceType(PersistenceType persistenceType)
Set the persistenceType.

Parameters:
persistenceType - the persistenceType.
Throws:
IllegalArgumentException - for a null persistenceType

getPrimKeyClass

public String getPrimKeyClass()
Get the primKeyClass.

Returns:
the primKeyClass.

setPrimKeyClass

public void setPrimKeyClass(String primKeyClass)
Set the primKeyClass.

Parameters:
primKeyClass - the primKeyClass.
Throws:
IllegalArgumentException - for a null primKeyClass

isReentrant

public boolean isReentrant()
Get the reentrant.

Returns:
the reentrant.

setReentrant

public void setReentrant(boolean reentrant)
Set the reentrant.

Parameters:
reentrant - the reentrant.

isCMP1x

public boolean isCMP1x()
Whether it is CMP1x

Returns:
true for cmp1x

getCmpVersion

public String getCmpVersion()
Get the cmpVersion.

Returns:
the cmpVersion.

setCmpVersion

public void setCmpVersion(String cmpVersion)
Set the cmpVersion.

Parameters:
cmpVersion - the cmpVersion.
Throws:
IllegalArgumentException - for a null cmpVersion

getAbstractSchemaName

public String getAbstractSchemaName()
Get the abstractSchemaName.

Returns:
the abstractSchemaName.

setAbstractSchemaName

public void setAbstractSchemaName(String abstractSchemaName)
Set the abstractSchemaName.

Parameters:
abstractSchemaName - the abstractSchemaName.
Throws:
IllegalArgumentException - for a null abstractSchemaName

getPrimKeyField

public String getPrimKeyField()
Get the primKeyField.

Returns:
the primKeyField.

setPrimKeyField

public void setPrimKeyField(String primKeyField)
Set the primKeyField.

Parameters:
primKeyField - the primKeyField.
Throws:
IllegalArgumentException - for a null primKeyField

getCmpFields

public CMPFieldsMetaData getCmpFields()
Get the cmpFields.

Returns:
the cmpFields.

setCmpFields

public void setCmpFields(CMPFieldsMetaData cmpFields)
Set the cmpFields.

Parameters:
cmpFields - the cmpFields.
Throws:
IllegalArgumentException - for a null cmpFields

getSecurityRoleRefs

public SecurityRoleRefsMetaData getSecurityRoleRefs()
Get the securityRoleRefs.

Returns:
the securityRoleRefs.

setSecurityRoleRefs

public void setSecurityRoleRefs(SecurityRoleRefsMetaData securityRoleRefs)
Set the securityRoleRefs.

Parameters:
securityRoleRefs - the securityRoleRefs.
Throws:
IllegalArgumentException - for a null securityRoleRefs

getQueries

public QueriesMetaData getQueries()
Get the queries.

Returns:
the queries.

setQueries

public void setQueries(QueriesMetaData queries)
Set the queries.

Parameters:
queries - the queries.
Throws:
IllegalArgumentException - for a null queries


Copyright © 2009 JBoss Inc.. All Rights Reserved.