ShrinkWrap Descriptors Generated Java EE API 2.0.0-alpha-3

org.jboss.shrinkwrap.descriptor.api.ejbjar31
Interface EntityBeanType<T>

All Superinterfaces:
Child<T>

public interface EntityBeanType<T>
extends Child<T>

This interface defines the contract for the entity-beanType xsd type

Since:
Generation date :2012-05-09T23:45:05.33-07:00
Author:
Ralf Battenfeld, Andrew Lee Rubinger

Method Summary
 EntityBeanType<T> abstractSchemaName(String abstractSchemaName)
          Sets the abstract-schema-name element
 EntityBeanType<T> cmpVersion(CmpVersionType cmpVersion)
          Sets the cmp-version element
 EntityBeanType<T> cmpVersion(String cmpVersion)
          Sets the cmp-version element
 CmpFieldType<EntityBeanType<T>> createCmpField()
          Creates a new cmp-field element
 DataSourceType<EntityBeanType<T>> createDataSource()
          Creates a new data-source element
 EjbLocalRefType<EntityBeanType<T>> createEjbLocalRef()
          Creates a new ejb-local-ref element
 EjbRefType<EntityBeanType<T>> createEjbRef()
          Creates a new ejb-ref element
 EnvEntryType<EntityBeanType<T>> createEnvEntry()
          Creates a new env-entry element
 IconType<EntityBeanType<T>> createIcon()
          Creates a new icon element
 MessageDestinationRefType<EntityBeanType<T>> createMessageDestinationRef()
          Creates a new message-destination-ref element
 PersistenceContextRefType<EntityBeanType<T>> createPersistenceContextRef()
          Creates a new persistence-context-ref element
 PersistenceUnitRefType<EntityBeanType<T>> createPersistenceUnitRef()
          Creates a new persistence-unit-ref element
 LifecycleCallbackType<EntityBeanType<T>> createPostConstruct()
          Creates a new post-construct element
 LifecycleCallbackType<EntityBeanType<T>> createPreDestroy()
          Creates a new pre-destroy element
 QueryType<EntityBeanType<T>> createQuery()
          Creates a new query element
 ResourceEnvRefType<EntityBeanType<T>> createResourceEnvRef()
          Creates a new resource-env-ref element
 ResourceRefType<EntityBeanType<T>> createResourceRef()
          Creates a new resource-ref element
 SecurityRoleRefType<EntityBeanType<T>> createSecurityRoleRef()
          Creates a new security-role-ref element
 ServiceRefType<EntityBeanType<T>> createServiceRef()
          Creates a new service-ref element
 EntityBeanType<T> description(String... values)
          Creates for all String objects representing description elements, a new description element
 EntityBeanType<T> displayName(String... values)
          Creates for all String objects representing display-name elements, a new display-name element
 EntityBeanType<T> ejbClass(String ejbClass)
          Sets the ejb-class element
 EntityBeanType<T> ejbName(String ejbName)
          Sets the ejb-name element
 String getAbstractSchemaName()
          Returns the abstract-schema-name element
 List<CmpFieldType<EntityBeanType<T>>> getAllCmpField()
          Returns all cmp-field elements
 List<DataSourceType<EntityBeanType<T>>> getAllDataSource()
          Returns all data-source elements
 List<String> getAllDescription()
          Returns all description elements
 List<String> getAllDisplayName()
          Returns all display-name elements
 List<EjbLocalRefType<EntityBeanType<T>>> getAllEjbLocalRef()
          Returns all ejb-local-ref elements
 List<EjbRefType<EntityBeanType<T>>> getAllEjbRef()
          Returns all ejb-ref elements
 List<EnvEntryType<EntityBeanType<T>>> getAllEnvEntry()
          Returns all env-entry elements
 List<IconType<EntityBeanType<T>>> getAllIcon()
          Returns all icon elements
 List<MessageDestinationRefType<EntityBeanType<T>>> getAllMessageDestinationRef()
          Returns all message-destination-ref elements
 List<PersistenceContextRefType<EntityBeanType<T>>> getAllPersistenceContextRef()
          Returns all persistence-context-ref elements
 List<PersistenceUnitRefType<EntityBeanType<T>>> getAllPersistenceUnitRef()
          Returns all persistence-unit-ref elements
 List<LifecycleCallbackType<EntityBeanType<T>>> getAllPostConstruct()
          Returns all post-construct elements
 List<LifecycleCallbackType<EntityBeanType<T>>> getAllPreDestroy()
          Returns all pre-destroy elements
 List<QueryType<EntityBeanType<T>>> getAllQuery()
          Returns all query elements
 List<ResourceEnvRefType<EntityBeanType<T>>> getAllResourceEnvRef()
          Returns all resource-env-ref elements
 List<ResourceRefType<EntityBeanType<T>>> getAllResourceRef()
          Returns all resource-ref elements
 List<SecurityRoleRefType<EntityBeanType<T>>> getAllSecurityRoleRef()
          Returns all security-role-ref elements
 List<ServiceRefType<EntityBeanType<T>>> getAllServiceRef()
          Returns all service-ref elements
 CmpVersionType getCmpVersion()
          Returns the cmp-version element
 String getCmpVersionAsString()
          Returns the cmp-version element
 String getEjbClass()
          Returns the ejb-class element
 String getEjbName()
          Returns the ejb-name element
 String getHome()
          Returns the home element
 String getLocal()
          Returns the local element
 String getLocalHome()
          Returns the local-home element
 String getMappedName()
          Returns the mapped-name element
 CmpFieldType<EntityBeanType<T>> getOrCreateCmpField()
          If not already created, a new cmp-field element will be created and returned.
 DataSourceType<EntityBeanType<T>> getOrCreateDataSource()
          If not already created, a new data-source element will be created and returned.
 EjbLocalRefType<EntityBeanType<T>> getOrCreateEjbLocalRef()
          If not already created, a new ejb-local-ref element will be created and returned.
 EjbRefType<EntityBeanType<T>> getOrCreateEjbRef()
          If not already created, a new ejb-ref element will be created and returned.
 EnvEntryType<EntityBeanType<T>> getOrCreateEnvEntry()
          If not already created, a new env-entry element will be created and returned.
 IconType<EntityBeanType<T>> getOrCreateIcon()
          If not already created, a new icon element will be created and returned.
 MessageDestinationRefType<EntityBeanType<T>> getOrCreateMessageDestinationRef()
          If not already created, a new message-destination-ref element will be created and returned.
 PersistenceContextRefType<EntityBeanType<T>> getOrCreatePersistenceContextRef()
          If not already created, a new persistence-context-ref element will be created and returned.
 PersistenceUnitRefType<EntityBeanType<T>> getOrCreatePersistenceUnitRef()
          If not already created, a new persistence-unit-ref element will be created and returned.
 LifecycleCallbackType<EntityBeanType<T>> getOrCreatePostConstruct()
          If not already created, a new post-construct element will be created and returned.
 LifecycleCallbackType<EntityBeanType<T>> getOrCreatePreDestroy()
          If not already created, a new pre-destroy element will be created and returned.
 QueryType<EntityBeanType<T>> getOrCreateQuery()
          If not already created, a new query element will be created and returned.
 ResourceEnvRefType<EntityBeanType<T>> getOrCreateResourceEnvRef()
          If not already created, a new resource-env-ref element will be created and returned.
 ResourceRefType<EntityBeanType<T>> getOrCreateResourceRef()
          If not already created, a new resource-ref element will be created and returned.
 SecurityIdentityType<EntityBeanType<T>> getOrCreateSecurityIdentity()
          If not already created, a new security-identity element with the given value will be created.
 SecurityRoleRefType<EntityBeanType<T>> getOrCreateSecurityRoleRef()
          If not already created, a new security-role-ref element will be created and returned.
 ServiceRefType<EntityBeanType<T>> getOrCreateServiceRef()
          If not already created, a new service-ref element will be created and returned.
 PersistenceTypeType getPersistenceType()
          Returns the persistence-type element
 String getPersistenceTypeAsString()
          Returns the persistence-type element
 String getPrimKeyClass()
          Returns the prim-key-class element
 String getPrimkeyField()
          Returns the primkey-field element
 String getRemote()
          Returns the remote element
 EntityBeanType<T> home(String home)
          Sets the home element
 Boolean isReentrant()
          Returns the reentrant element
 EntityBeanType<T> local(String local)
          Sets the local element
 EntityBeanType<T> localHome(String localHome)
          Sets the local-home element
 EntityBeanType<T> mappedName(String mappedName)
          Sets the mapped-name element
 EntityBeanType<T> persistenceType(PersistenceTypeType persistenceType)
          Sets the persistence-type element
 EntityBeanType<T> persistenceType(String persistenceType)
          Sets the persistence-type element
 EntityBeanType<T> primKeyClass(String primKeyClass)
          Sets the prim-key-class element
 EntityBeanType<T> primkeyField(String primkeyField)
          Sets the primkey-field element
 EntityBeanType<T> reentrant(Boolean reentrant)
          Sets the reentrant element
 EntityBeanType<T> remote(String remote)
          Sets the remote element
 EntityBeanType<T> removeAbstractSchemaName()
          Removes the abstract-schema-name element
 EntityBeanType<T> removeAllCmpField()
          Removes all cmp-field elements
 EntityBeanType<T> removeAllDataSource()
          Removes all data-source elements
 EntityBeanType<T> removeAllDescription()
          Removes the description element
 EntityBeanType<T> removeAllDisplayName()
          Removes the display-name element
 EntityBeanType<T> removeAllEjbLocalRef()
          Removes all ejb-local-ref elements
 EntityBeanType<T> removeAllEjbRef()
          Removes all ejb-ref elements
 EntityBeanType<T> removeAllEnvEntry()
          Removes all env-entry elements
 EntityBeanType<T> removeAllIcon()
          Removes all icon elements
 EntityBeanType<T> removeAllMessageDestinationRef()
          Removes all message-destination-ref elements
 EntityBeanType<T> removeAllPersistenceContextRef()
          Removes all persistence-context-ref elements
 EntityBeanType<T> removeAllPersistenceUnitRef()
          Removes all persistence-unit-ref elements
 EntityBeanType<T> removeAllPostConstruct()
          Removes all post-construct elements
 EntityBeanType<T> removeAllPreDestroy()
          Removes all pre-destroy elements
 EntityBeanType<T> removeAllQuery()
          Removes all query elements
 EntityBeanType<T> removeAllResourceEnvRef()
          Removes all resource-env-ref elements
 EntityBeanType<T> removeAllResourceRef()
          Removes all resource-ref elements
 EntityBeanType<T> removeAllSecurityRoleRef()
          Removes all security-role-ref elements
 EntityBeanType<T> removeAllServiceRef()
          Removes all service-ref elements
 EntityBeanType<T> removeCmpVersion()
          Removes the cmp-version attribute
 EntityBeanType<T> removeEjbClass()
          Removes the ejb-class element
 EntityBeanType<T> removeEjbName()
          Removes the ejb-name element
 EntityBeanType<T> removeHome()
          Removes the home element
 EntityBeanType<T> removeLocal()
          Removes the local element
 EntityBeanType<T> removeLocalHome()
          Removes the local-home element
 EntityBeanType<T> removeMappedName()
          Removes the mapped-name element
 EntityBeanType<T> removePersistenceType()
          Removes the persistence-type attribute
 EntityBeanType<T> removePrimKeyClass()
          Removes the prim-key-class element
 EntityBeanType<T> removePrimkeyField()
          Removes the primkey-field element
 EntityBeanType<T> removeReentrant()
          Removes the reentrant element
 EntityBeanType<T> removeRemote()
          Removes the remote element
 EntityBeanType<T> removeSecurityIdentity()
          Removes the security-identity element
 
Methods inherited from interface org.jboss.shrinkwrap.descriptor.api.Child
up
 

Method Detail

description

EntityBeanType<T> description(String... values)
Creates for all String objects representing description elements, a new description element

Parameters:
values - list of description objects
Returns:
the current instance of EntityBeanType

getAllDescription

List<String> getAllDescription()
Returns all description elements

Returns:
list of description

removeAllDescription

EntityBeanType<T> removeAllDescription()
Removes the description element

Returns:
the current instance of EntityBeanType

displayName

EntityBeanType<T> displayName(String... values)
Creates for all String objects representing display-name elements, a new display-name element

Parameters:
values - list of display-name objects
Returns:
the current instance of EntityBeanType

getAllDisplayName

List<String> getAllDisplayName()
Returns all display-name elements

Returns:
list of display-name

removeAllDisplayName

EntityBeanType<T> removeAllDisplayName()
Removes the display-name element

Returns:
the current instance of EntityBeanType

getOrCreateIcon

IconType<EntityBeanType<T>> getOrCreateIcon()
If not already created, a new icon element will be created and returned. Otherwise, the first existing icon element will be returned.

Returns:
the instance defined for the element icon

createIcon

IconType<EntityBeanType<T>> createIcon()
Creates a new icon element

Returns:
the new created instance of IconType>

getAllIcon

List<IconType<EntityBeanType<T>>> getAllIcon()
Returns all icon elements

Returns:
list of icon

removeAllIcon

EntityBeanType<T> removeAllIcon()
Removes all icon elements

Returns:
the current instance of IconType>

getOrCreateEnvEntry

EnvEntryType<EntityBeanType<T>> getOrCreateEnvEntry()
If not already created, a new env-entry element will be created and returned. Otherwise, the first existing env-entry element will be returned.

Returns:
the instance defined for the element env-entry

createEnvEntry

EnvEntryType<EntityBeanType<T>> createEnvEntry()
Creates a new env-entry element

Returns:
the new created instance of EnvEntryType>

getAllEnvEntry

List<EnvEntryType<EntityBeanType<T>>> getAllEnvEntry()
Returns all env-entry elements

Returns:
list of env-entry

removeAllEnvEntry

EntityBeanType<T> removeAllEnvEntry()
Removes all env-entry elements

Returns:
the current instance of EnvEntryType>

getOrCreateEjbRef

EjbRefType<EntityBeanType<T>> getOrCreateEjbRef()
If not already created, a new ejb-ref element will be created and returned. Otherwise, the first existing ejb-ref element will be returned.

Returns:
the instance defined for the element ejb-ref

createEjbRef

EjbRefType<EntityBeanType<T>> createEjbRef()
Creates a new ejb-ref element

Returns:
the new created instance of EjbRefType>

getAllEjbRef

List<EjbRefType<EntityBeanType<T>>> getAllEjbRef()
Returns all ejb-ref elements

Returns:
list of ejb-ref

removeAllEjbRef

EntityBeanType<T> removeAllEjbRef()
Removes all ejb-ref elements

Returns:
the current instance of EjbRefType>

getOrCreateEjbLocalRef

EjbLocalRefType<EntityBeanType<T>> getOrCreateEjbLocalRef()
If not already created, a new ejb-local-ref element will be created and returned. Otherwise, the first existing ejb-local-ref element will be returned.

Returns:
the instance defined for the element ejb-local-ref

createEjbLocalRef

EjbLocalRefType<EntityBeanType<T>> createEjbLocalRef()
Creates a new ejb-local-ref element

Returns:
the new created instance of EjbLocalRefType>

getAllEjbLocalRef

List<EjbLocalRefType<EntityBeanType<T>>> getAllEjbLocalRef()
Returns all ejb-local-ref elements

Returns:
list of ejb-local-ref

removeAllEjbLocalRef

EntityBeanType<T> removeAllEjbLocalRef()
Removes all ejb-local-ref elements

Returns:
the current instance of EjbLocalRefType>

getOrCreateResourceRef

ResourceRefType<EntityBeanType<T>> getOrCreateResourceRef()
If not already created, a new resource-ref element will be created and returned. Otherwise, the first existing resource-ref element will be returned.

Returns:
the instance defined for the element resource-ref

createResourceRef

ResourceRefType<EntityBeanType<T>> createResourceRef()
Creates a new resource-ref element

Returns:
the new created instance of ResourceRefType>

getAllResourceRef

List<ResourceRefType<EntityBeanType<T>>> getAllResourceRef()
Returns all resource-ref elements

Returns:
list of resource-ref

removeAllResourceRef

EntityBeanType<T> removeAllResourceRef()
Removes all resource-ref elements

Returns:
the current instance of ResourceRefType>

getOrCreateResourceEnvRef

ResourceEnvRefType<EntityBeanType<T>> getOrCreateResourceEnvRef()
If not already created, a new resource-env-ref element will be created and returned. Otherwise, the first existing resource-env-ref element will be returned.

Returns:
the instance defined for the element resource-env-ref

createResourceEnvRef

ResourceEnvRefType<EntityBeanType<T>> createResourceEnvRef()
Creates a new resource-env-ref element

Returns:
the new created instance of ResourceEnvRefType>

getAllResourceEnvRef

List<ResourceEnvRefType<EntityBeanType<T>>> getAllResourceEnvRef()
Returns all resource-env-ref elements

Returns:
list of resource-env-ref

removeAllResourceEnvRef

EntityBeanType<T> removeAllResourceEnvRef()
Removes all resource-env-ref elements

Returns:
the current instance of ResourceEnvRefType>

getOrCreateMessageDestinationRef

MessageDestinationRefType<EntityBeanType<T>> getOrCreateMessageDestinationRef()
If not already created, a new message-destination-ref element will be created and returned. Otherwise, the first existing message-destination-ref element will be returned.

Returns:
the instance defined for the element message-destination-ref

createMessageDestinationRef

MessageDestinationRefType<EntityBeanType<T>> createMessageDestinationRef()
Creates a new message-destination-ref element

Returns:
the new created instance of MessageDestinationRefType>

getAllMessageDestinationRef

List<MessageDestinationRefType<EntityBeanType<T>>> getAllMessageDestinationRef()
Returns all message-destination-ref elements

Returns:
list of message-destination-ref

removeAllMessageDestinationRef

EntityBeanType<T> removeAllMessageDestinationRef()
Removes all message-destination-ref elements

Returns:
the current instance of MessageDestinationRefType>

getOrCreatePersistenceContextRef

PersistenceContextRefType<EntityBeanType<T>> getOrCreatePersistenceContextRef()
If not already created, a new persistence-context-ref element will be created and returned. Otherwise, the first existing persistence-context-ref element will be returned.

Returns:
the instance defined for the element persistence-context-ref

createPersistenceContextRef

PersistenceContextRefType<EntityBeanType<T>> createPersistenceContextRef()
Creates a new persistence-context-ref element

Returns:
the new created instance of PersistenceContextRefType>

getAllPersistenceContextRef

List<PersistenceContextRefType<EntityBeanType<T>>> getAllPersistenceContextRef()
Returns all persistence-context-ref elements

Returns:
list of persistence-context-ref

removeAllPersistenceContextRef

EntityBeanType<T> removeAllPersistenceContextRef()
Removes all persistence-context-ref elements

Returns:
the current instance of PersistenceContextRefType>

getOrCreatePersistenceUnitRef

PersistenceUnitRefType<EntityBeanType<T>> getOrCreatePersistenceUnitRef()
If not already created, a new persistence-unit-ref element will be created and returned. Otherwise, the first existing persistence-unit-ref element will be returned.

Returns:
the instance defined for the element persistence-unit-ref

createPersistenceUnitRef

PersistenceUnitRefType<EntityBeanType<T>> createPersistenceUnitRef()
Creates a new persistence-unit-ref element

Returns:
the new created instance of PersistenceUnitRefType>

getAllPersistenceUnitRef

List<PersistenceUnitRefType<EntityBeanType<T>>> getAllPersistenceUnitRef()
Returns all persistence-unit-ref elements

Returns:
list of persistence-unit-ref

removeAllPersistenceUnitRef

EntityBeanType<T> removeAllPersistenceUnitRef()
Removes all persistence-unit-ref elements

Returns:
the current instance of PersistenceUnitRefType>

getOrCreatePostConstruct

LifecycleCallbackType<EntityBeanType<T>> getOrCreatePostConstruct()
If not already created, a new post-construct element will be created and returned. Otherwise, the first existing post-construct element will be returned.

Returns:
the instance defined for the element post-construct

createPostConstruct

LifecycleCallbackType<EntityBeanType<T>> createPostConstruct()
Creates a new post-construct element

Returns:
the new created instance of LifecycleCallbackType>

getAllPostConstruct

List<LifecycleCallbackType<EntityBeanType<T>>> getAllPostConstruct()
Returns all post-construct elements

Returns:
list of post-construct

removeAllPostConstruct

EntityBeanType<T> removeAllPostConstruct()
Removes all post-construct elements

Returns:
the current instance of LifecycleCallbackType>

getOrCreatePreDestroy

LifecycleCallbackType<EntityBeanType<T>> getOrCreatePreDestroy()
If not already created, a new pre-destroy element will be created and returned. Otherwise, the first existing pre-destroy element will be returned.

Returns:
the instance defined for the element pre-destroy

createPreDestroy

LifecycleCallbackType<EntityBeanType<T>> createPreDestroy()
Creates a new pre-destroy element

Returns:
the new created instance of LifecycleCallbackType>

getAllPreDestroy

List<LifecycleCallbackType<EntityBeanType<T>>> getAllPreDestroy()
Returns all pre-destroy elements

Returns:
list of pre-destroy

removeAllPreDestroy

EntityBeanType<T> removeAllPreDestroy()
Removes all pre-destroy elements

Returns:
the current instance of LifecycleCallbackType>

getOrCreateDataSource

DataSourceType<EntityBeanType<T>> getOrCreateDataSource()
If not already created, a new data-source element will be created and returned. Otherwise, the first existing data-source element will be returned.

Returns:
the instance defined for the element data-source

createDataSource

DataSourceType<EntityBeanType<T>> createDataSource()
Creates a new data-source element

Returns:
the new created instance of DataSourceType>

getAllDataSource

List<DataSourceType<EntityBeanType<T>>> getAllDataSource()
Returns all data-source elements

Returns:
list of data-source

removeAllDataSource

EntityBeanType<T> removeAllDataSource()
Removes all data-source elements

Returns:
the current instance of DataSourceType>

getOrCreateServiceRef

ServiceRefType<EntityBeanType<T>> getOrCreateServiceRef()
If not already created, a new service-ref element will be created and returned. Otherwise, the first existing service-ref element will be returned.

Returns:
the instance defined for the element service-ref

createServiceRef

ServiceRefType<EntityBeanType<T>> createServiceRef()
Creates a new service-ref element

Returns:
the new created instance of ServiceRefType>

getAllServiceRef

List<ServiceRefType<EntityBeanType<T>>> getAllServiceRef()
Returns all service-ref elements

Returns:
list of service-ref

removeAllServiceRef

EntityBeanType<T> removeAllServiceRef()
Removes all service-ref elements

Returns:
the current instance of ServiceRefType>

ejbName

EntityBeanType<T> ejbName(String ejbName)
Sets the ejb-name element

Parameters:
ejbName - the value for the element ejb-name
Returns:
the current instance of EntityBeanType

getEjbName

String getEjbName()
Returns the ejb-name element

Returns:
the node defined for the element ejb-name

removeEjbName

EntityBeanType<T> removeEjbName()
Removes the ejb-name element

Returns:
the current instance of EntityBeanType

mappedName

EntityBeanType<T> mappedName(String mappedName)
Sets the mapped-name element

Parameters:
mappedName - the value for the element mapped-name
Returns:
the current instance of EntityBeanType

getMappedName

String getMappedName()
Returns the mapped-name element

Returns:
the node defined for the element mapped-name

removeMappedName

EntityBeanType<T> removeMappedName()
Removes the mapped-name element

Returns:
the current instance of EntityBeanType

home

EntityBeanType<T> home(String home)
Sets the home element

Parameters:
home - the value for the element home
Returns:
the current instance of EntityBeanType

getHome

String getHome()
Returns the home element

Returns:
the node defined for the element home

removeHome

EntityBeanType<T> removeHome()
Removes the home element

Returns:
the current instance of EntityBeanType

remote

EntityBeanType<T> remote(String remote)
Sets the remote element

Parameters:
remote - the value for the element remote
Returns:
the current instance of EntityBeanType

getRemote

String getRemote()
Returns the remote element

Returns:
the node defined for the element remote

removeRemote

EntityBeanType<T> removeRemote()
Removes the remote element

Returns:
the current instance of EntityBeanType

localHome

EntityBeanType<T> localHome(String localHome)
Sets the local-home element

Parameters:
localHome - the value for the element local-home
Returns:
the current instance of EntityBeanType

getLocalHome

String getLocalHome()
Returns the local-home element

Returns:
the node defined for the element local-home

removeLocalHome

EntityBeanType<T> removeLocalHome()
Removes the local-home element

Returns:
the current instance of EntityBeanType

local

EntityBeanType<T> local(String local)
Sets the local element

Parameters:
local - the value for the element local
Returns:
the current instance of EntityBeanType

getLocal

String getLocal()
Returns the local element

Returns:
the node defined for the element local

removeLocal

EntityBeanType<T> removeLocal()
Removes the local element

Returns:
the current instance of EntityBeanType

ejbClass

EntityBeanType<T> ejbClass(String ejbClass)
Sets the ejb-class element

Parameters:
ejbClass - the value for the element ejb-class
Returns:
the current instance of EntityBeanType

getEjbClass

String getEjbClass()
Returns the ejb-class element

Returns:
the node defined for the element ejb-class

removeEjbClass

EntityBeanType<T> removeEjbClass()
Removes the ejb-class element

Returns:
the current instance of EntityBeanType

persistenceType

EntityBeanType<T> persistenceType(PersistenceTypeType persistenceType)
Sets the persistence-type element

Parameters:
persistenceType - the value for the element persistence-type
Returns:
the current instance of EntityBeanType

persistenceType

EntityBeanType<T> persistenceType(String persistenceType)
Sets the persistence-type element

Parameters:
persistenceType - the value for the element persistence-type
Returns:
the current instance of EntityBeanType

getPersistenceType

PersistenceTypeType getPersistenceType()
Returns the persistence-type element

Returns:
the value found for the element persistence-type

getPersistenceTypeAsString

String getPersistenceTypeAsString()
Returns the persistence-type element

Returns:
the value found for the element persistence-type

removePersistenceType

EntityBeanType<T> removePersistenceType()
Removes the persistence-type attribute

Returns:
the current instance of EntityBeanType

primKeyClass

EntityBeanType<T> primKeyClass(String primKeyClass)
Sets the prim-key-class element

Parameters:
primKeyClass - the value for the element prim-key-class
Returns:
the current instance of EntityBeanType

getPrimKeyClass

String getPrimKeyClass()
Returns the prim-key-class element

Returns:
the node defined for the element prim-key-class

removePrimKeyClass

EntityBeanType<T> removePrimKeyClass()
Removes the prim-key-class element

Returns:
the current instance of EntityBeanType

reentrant

EntityBeanType<T> reentrant(Boolean reentrant)
Sets the reentrant element

Parameters:
reentrant - the value for the element reentrant
Returns:
the current instance of EntityBeanType

isReentrant

Boolean isReentrant()
Returns the reentrant element

Returns:
the node defined for the element reentrant

removeReentrant

EntityBeanType<T> removeReentrant()
Removes the reentrant element

Returns:
the current instance of EntityBeanType

cmpVersion

EntityBeanType<T> cmpVersion(CmpVersionType cmpVersion)
Sets the cmp-version element

Parameters:
cmpVersion - the value for the element cmp-version
Returns:
the current instance of EntityBeanType

cmpVersion

EntityBeanType<T> cmpVersion(String cmpVersion)
Sets the cmp-version element

Parameters:
cmpVersion - the value for the element cmp-version
Returns:
the current instance of EntityBeanType

getCmpVersion

CmpVersionType getCmpVersion()
Returns the cmp-version element

Returns:
the value found for the element cmp-version

getCmpVersionAsString

String getCmpVersionAsString()
Returns the cmp-version element

Returns:
the value found for the element cmp-version

removeCmpVersion

EntityBeanType<T> removeCmpVersion()
Removes the cmp-version attribute

Returns:
the current instance of EntityBeanType

abstractSchemaName

EntityBeanType<T> abstractSchemaName(String abstractSchemaName)
Sets the abstract-schema-name element

Parameters:
abstractSchemaName - the value for the element abstract-schema-name
Returns:
the current instance of EntityBeanType

getAbstractSchemaName

String getAbstractSchemaName()
Returns the abstract-schema-name element

Returns:
the node defined for the element abstract-schema-name

removeAbstractSchemaName

EntityBeanType<T> removeAbstractSchemaName()
Removes the abstract-schema-name element

Returns:
the current instance of EntityBeanType

getOrCreateCmpField

CmpFieldType<EntityBeanType<T>> getOrCreateCmpField()
If not already created, a new cmp-field element will be created and returned. Otherwise, the first existing cmp-field element will be returned.

Returns:
the instance defined for the element cmp-field

createCmpField

CmpFieldType<EntityBeanType<T>> createCmpField()
Creates a new cmp-field element

Returns:
the new created instance of CmpFieldType>

getAllCmpField

List<CmpFieldType<EntityBeanType<T>>> getAllCmpField()
Returns all cmp-field elements

Returns:
list of cmp-field

removeAllCmpField

EntityBeanType<T> removeAllCmpField()
Removes all cmp-field elements

Returns:
the current instance of CmpFieldType>

primkeyField

EntityBeanType<T> primkeyField(String primkeyField)
Sets the primkey-field element

Parameters:
primkeyField - the value for the element primkey-field
Returns:
the current instance of EntityBeanType

getPrimkeyField

String getPrimkeyField()
Returns the primkey-field element

Returns:
the node defined for the element primkey-field

removePrimkeyField

EntityBeanType<T> removePrimkeyField()
Removes the primkey-field element

Returns:
the current instance of EntityBeanType

getOrCreateSecurityRoleRef

SecurityRoleRefType<EntityBeanType<T>> getOrCreateSecurityRoleRef()
If not already created, a new security-role-ref element will be created and returned. Otherwise, the first existing security-role-ref element will be returned.

Returns:
the instance defined for the element security-role-ref

createSecurityRoleRef

SecurityRoleRefType<EntityBeanType<T>> createSecurityRoleRef()
Creates a new security-role-ref element

Returns:
the new created instance of SecurityRoleRefType>

getAllSecurityRoleRef

List<SecurityRoleRefType<EntityBeanType<T>>> getAllSecurityRoleRef()
Returns all security-role-ref elements

Returns:
list of security-role-ref

removeAllSecurityRoleRef

EntityBeanType<T> removeAllSecurityRoleRef()
Removes all security-role-ref elements

Returns:
the current instance of SecurityRoleRefType>

getOrCreateSecurityIdentity

SecurityIdentityType<EntityBeanType<T>> getOrCreateSecurityIdentity()
If not already created, a new security-identity element with the given value will be created. Otherwise, the existing security-identity element will be returned.

Returns:
a new or existing instance of SecurityIdentityType>

removeSecurityIdentity

EntityBeanType<T> removeSecurityIdentity()
Removes the security-identity element

Returns:
the current instance of EntityBeanType

getOrCreateQuery

QueryType<EntityBeanType<T>> getOrCreateQuery()
If not already created, a new query element will be created and returned. Otherwise, the first existing query element will be returned.

Returns:
the instance defined for the element query

createQuery

QueryType<EntityBeanType<T>> createQuery()
Creates a new query element

Returns:
the new created instance of QueryType>

getAllQuery

List<QueryType<EntityBeanType<T>>> getAllQuery()
Returns all query elements

Returns:
list of query

removeAllQuery

EntityBeanType<T> removeAllQuery()
Removes all query elements

Returns:
the current instance of QueryType>

ShrinkWrap Descriptors Generated Java EE API 2.0.0-alpha-3

Copyright © 2012 JBoss by Red Hat. All Rights Reserved.