org.jboss.metadata.ejb.jboss
Class JBossEntityBeanMetaData

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.jboss.JBossEnterpriseBeanMetaData
                  extended by org.jboss.metadata.ejb.jboss.JBossEntityBeanMetaData
All Implemented Interfaces:
Serializable, Cloneable, IEnterpriseBeanMetaData<JBossAssemblyDescriptorMetaData,JBossEnterpriseBeansMetaData,JBossEnterpriseBeanMetaData,JBossMetaData>, Environment, RemoteEnvironment, IdMetaData, MappableMetaData
Direct Known Subclasses:
JbossEntityPolicyDecorator

public class JBossEntityBeanMetaData
extends JBossEnterpriseBeanMetaData

EntityBeanMetaData.

Version:
$Revision: 84989 $
Author:
Adrian Brock, Scott.Stark@jboss.org
See Also:
Serialized Form

Constructor Summary
JBossEntityBeanMetaData()
          Create a new EntityBeanMetaData.
 
Method Summary
 CacheInvalidationConfigMetaData determineCacheInvalidationConfig()
          Get the cacheInvalidationConfig.
 ClusterConfigMetaData determineClusterConfig()
          Determine the clusterConfig.
 String determineJndiName()
          Deprecated. JBMETA-68
 String determineLocalJndiName()
          Deprecated. JBMETA-68
 String getAbstractSchemaName()
          Get the abstractSchemaName.
 CacheInvalidationConfigMetaData getCacheInvalidationConfig()
          Get the cacheInvalidationConfig.
 ClusterConfigMetaData getClusterConfig()
          Get the clusterConfig.
 CMPFieldsMetaData getCmpFields()
          Get the cmpFields.
 String getCmpVersion()
          Get the cmpVersion.
 String getContainerObjectNameJndiName()
          Determine the container jndi name used in the object name.
 String getDefaultConfigurationName()
          Get the default configuration name
protected  String getDefaultInvokerJndiName()
          Determine the jndi name for invoker bindings that come from the container configuration
 String getDefaultInvokerName()
          Get the default invokers
 String getHome()
          Get the home.
 String getJndiName()
          Get the jndiName.
 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 isCacheInvalidation()
          Get the cacheInvalidation.
 boolean isCallByValue()
          Get the callByValue.
 boolean isClustered()
          Get the clustered.
 boolean isCMP()
          Is this container managed persistence
 boolean isCMP1x()
          Whether it is CMP1x
 boolean isEntity()
          Whether this is an entity bean
 boolean isReadOnly()
          Get the readOnly.
 boolean isReentrant()
          Get the reentrant.
 void merge(JBossEnterpriseBeanMetaData override, EnterpriseBeanMetaData original, String overridenFile, String overrideFile, boolean mustOverride)
           
 void merge(JBossEnterpriseBeanMetaData overrideEjb, JBossEnterpriseBeanMetaData originalEjb)
           
protected  void merge(JBossGenericBeanMetaData generic)
           
 void setAbstractSchemaName(String abstractSchemaName)
          Set the abstractSchemaName.
 void setCacheInvalidation(boolean cacheInvalidation)
          Set the cacheInvalidation.
 void setCacheInvalidationConfig(CacheInvalidationConfigMetaData cacheInvalidationConfig)
          Set the cacheInvalidationConfig.
 void setCallByValue(boolean callByValue)
          Set the callByValue.
 void setClusterConfig(ClusterConfigMetaData clusterConfig)
          Set the clusterConfig.
 void setClustered(boolean clustered)
          Set the clustered.
 void setCmpFields(CMPFieldsMetaData cmpFields)
          Set the cmpFields.
 void setCmpVersion(String cmpVersion)
          Set the cmpVersion.
 void setHome(String home)
          Set the home.
 void setJndiName(String jndiName)
          Set the jndiName.
 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 setReadOnly(boolean readOnly)
          Set the readOnly.
 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.jboss.JBossEnterpriseBeanMetaData
checkValid, createPolicy, determineAllDepends, determineConfigurationName, determineContainerConfiguration, determineContainerName, determineInvokerBinding, determineInvokerBindings, determineResolvedJndiName, determineResolvedJndiName, getAnnotatedEjbReferences, getAnnotations, getAopDomainName, getAssemblyDescriptor, getConfigurationName, getContainerName, getContainerTransactions, getDefaultInvokers, getDepends, getEjbClass, getEjbJarMetaData, getEjbLocalReferenceByName, getEjbLocalReferences, getEjbName, getEjbReferenceByName, getEjbReferences, getEnterpriseBeansMetaData, getEnvironmentEntries, getEnvironmentEntryByName, getExcludeList, getGeneratedContainerName, getIgnoreDependency, getInvokerBindings, getIorSecurityConfig, getJBossMetaData, getJBossMetaDataWithCheck, getJndiBindingPolicy, getJndiEnvironmentRefsGroup, getJndiRefs, getLocalJndiName, getMappedName, getMessageDestinationReferenceByName, getMessageDestinationReferences, getMethodAttributes, getMethodPermissions, getMethodPermissions, getMethodTransactionTimeout, getMethodTransactionTimeout, getMethodTransactionType, getMethodTransactionType, getPersistenceContextReferenceByName, getPersistenceContextRefs, getPersistenceUnitReferenceByName, getPersistenceUnitRefs, getPoolConfig, getPostConstructs, getPreDestroys, getResourceEnvironmentReferenceByName, getResourceEnvironmentReferences, getResourceReferenceByName, getResourceReferences, getSecurityDomain, getSecurityIdentity, getSecurityProxy, getSecurityRole, getSecurityRolePrincipals, getSecurityRolesPrincipalVersusRolesMap, getServiceReferenceByName, getServiceReferences, getTransactionType, hasMethodPermissions, isBMT, isCMT, isConsumer, isExceptionOnRollback, isGeneric, isMessageDriven, isMethodReadOnly, isMethodReadOnly, isService, isSession, isTimerPersistence, merge, merge, newBean, newBean, setAnnotations, setAopDomainName, setConfigurationName, setContainerName, setDepends, setEjbClass, setEjbName, setEnterpriseBeansMetaData, setEnvironmentRefsGroup, setExceptionOnRollback, setGeneratedContainerName, setIgnoreDependency, setInvokerBindings, setIorSecurityConfig, setJndiBindingPolicy, setJndiEnvironmentRefsGroup, setJndiRefs, setLocalJndiName, setMappedName, setMethodAttributes, setPoolConfig, setSecurityDomain, setSecurityIdentity, setSecurityProxy, setTimerPersistence, setTransactionType
 
Methods inherited from class org.jboss.metadata.javaee.support.NamedMetaDataWithDescriptionGroup
getDescriptionGroup, 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

JBossEntityBeanMetaData

public JBossEntityBeanMetaData()
Create a new EntityBeanMetaData.

Method Detail

isEntity

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

Specified by:
isEntity in interface IEnterpriseBeanMetaData<JBossAssemblyDescriptorMetaData,JBossEnterpriseBeansMetaData,JBossEnterpriseBeanMetaData,JBossMetaData>
Overrides:
isEntity in class JBossEnterpriseBeanMetaData
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.

Overrides:
getSecurityRoleRefs in class JBossEnterpriseBeanMetaData
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

getDefaultConfigurationName

public String getDefaultConfigurationName()
Description copied from class: JBossEnterpriseBeanMetaData
Get the default configuration name

Specified by:
getDefaultConfigurationName in class JBossEnterpriseBeanMetaData
Returns:
the default name

getDefaultInvokerName

public String getDefaultInvokerName()
Description copied from class: JBossEnterpriseBeanMetaData
Get the default invokers

Specified by:
getDefaultInvokerName in class JBossEnterpriseBeanMetaData
Returns:
the default invokers

getJndiName

public String getJndiName()
Get the jndiName.

Returns:
the jndiName.

setJndiName

public void setJndiName(String jndiName)
Set the jndiName.

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

determineJndiName

@Deprecated
public String determineJndiName()
Deprecated. JBMETA-68

Determine the jndi name

Specified by:
determineJndiName in class JBossEnterpriseBeanMetaData
Returns:
the jndi name

determineLocalJndiName

@Deprecated
public String determineLocalJndiName()
Deprecated. JBMETA-68

Determine the localJndiName.

Overrides:
determineLocalJndiName in class JBossEnterpriseBeanMetaData
Returns:
the localJndiName.

getContainerObjectNameJndiName

public String getContainerObjectNameJndiName()
Description copied from class: JBossEnterpriseBeanMetaData
Determine the container jndi name used in the object name. This is really obsolete as there is no need for jmx names.

Overrides:
getContainerObjectNameJndiName in class JBossEnterpriseBeanMetaData
Returns:
the jndi name suitable for use in the object name

getDefaultInvokerJndiName

protected String getDefaultInvokerJndiName()
Description copied from class: JBossEnterpriseBeanMetaData
Determine the jndi name for invoker bindings that come from the container configuration

Overrides:
getDefaultInvokerJndiName in class JBossEnterpriseBeanMetaData
Returns:
the jndi name suitable for use on the default invoker

isCallByValue

public boolean isCallByValue()
Get the callByValue.

Returns:
the callByValue.

setCallByValue

public void setCallByValue(boolean callByValue)
Set the callByValue.

Parameters:
callByValue - the callByValue.

isClustered

public boolean isClustered()
Get the clustered.

Returns:
the clustered.

setClustered

public void setClustered(boolean clustered)
Set the clustered.

Parameters:
clustered - the clustered.

isReadOnly

public boolean isReadOnly()
Get the readOnly.

Returns:
the readOnly.

setReadOnly

public void setReadOnly(boolean readOnly)
Set the readOnly.

Parameters:
readOnly - the readOnly.

getClusterConfig

public ClusterConfigMetaData getClusterConfig()
Get the clusterConfig.

Returns:
the clusterConfig.

determineClusterConfig

public ClusterConfigMetaData determineClusterConfig()
Determine the clusterConfig.

Returns:
the clusterConfig.

setClusterConfig

public void setClusterConfig(ClusterConfigMetaData clusterConfig)
Set the clusterConfig.

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

isCacheInvalidation

public boolean isCacheInvalidation()
Get the cacheInvalidation.

Returns:
the cacheInvalidation.

setCacheInvalidation

public void setCacheInvalidation(boolean cacheInvalidation)
Set the cacheInvalidation.

Parameters:
cacheInvalidation - the cacheInvalidation.

getCacheInvalidationConfig

public CacheInvalidationConfigMetaData getCacheInvalidationConfig()
Get the cacheInvalidationConfig.

Returns:
the cacheInvalidationConfig.

determineCacheInvalidationConfig

public CacheInvalidationConfigMetaData determineCacheInvalidationConfig()
Get the cacheInvalidationConfig.

Returns:
the cacheInvalidationConfig.

setCacheInvalidationConfig

public void setCacheInvalidationConfig(CacheInvalidationConfigMetaData cacheInvalidationConfig)
Set the cacheInvalidationConfig.

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

merge

public void merge(JBossEnterpriseBeanMetaData override,
                  EnterpriseBeanMetaData original,
                  String overridenFile,
                  String overrideFile,
                  boolean mustOverride)
Overrides:
merge in class JBossEnterpriseBeanMetaData

merge

public void merge(JBossEnterpriseBeanMetaData overrideEjb,
                  JBossEnterpriseBeanMetaData originalEjb)
Overrides:
merge in class JBossEnterpriseBeanMetaData

merge

protected void merge(JBossGenericBeanMetaData generic)
Overrides:
merge in class JBossEnterpriseBeanMetaData


Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.