org.apache.openejb.jee.oejb2
Class EntityBeanType

java.lang.Object
  extended by org.apache.openejb.jee.oejb2.EntityBeanType
All Implemented Interfaces:
EnterpriseBean, RpcBean

public class EntityBeanType
extends java.lang.Object
implements EnterpriseBean, RpcBean

Java class for entity-beanType complex type.

The following schema fragment specifies the expected content contained within this class.

 <complexType name="entity-beanType">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element name="ejb-name" type="{http://www.w3.org/2001/XMLSchema}string"/>
         <element name="jndi-name" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/>
         <element name="local-jndi-name" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/>
         <group ref="{http://openejb.apache.org/xml/ns/openejb-jar-2.2}tssGroup" minOccurs="0"/>
         <sequence minOccurs="0">
           <element name="table-name" type="{http://www.w3.org/2001/XMLSchema}string"/>
           <element name="static-sql" type="{http://geronimo.apache.org/xml/ns/deployment-1.2}emptyType" minOccurs="0"/>
           <element name="cmp-field-mapping" maxOccurs="unbounded">
             <complexType>
               <complexContent>
                 <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
                   <sequence>
                     <element name="cmp-field-name" type="{http://www.w3.org/2001/XMLSchema}string"/>
                     <element name="cmp-field-class" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
                     <element name="table-column" type="{http://www.w3.org/2001/XMLSchema}string"/>
                     <element name="sql-type" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
                     <element name="type-converter" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
                   </sequence>
                 </restriction>
               </complexContent>
             </complexType>
           </element>
           <element name="primkey-field" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
           <element ref="{http://openejb.apache.org/xml/ns/pkgen-2.1}key-generator" minOccurs="0"/>
           <element name="prefetch-group" minOccurs="0">
             <complexType>
               <complexContent>
                 <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
                   <sequence>
                     <element name="group" type="{http://openejb.apache.org/xml/ns/openejb-jar-2.2}groupType" maxOccurs="unbounded" minOccurs="0"/>
                     <element name="entity-group-mapping" type="{http://openejb.apache.org/xml/ns/openejb-jar-2.2}entity-group-mappingType" minOccurs="0"/>
                     <element name="cmp-field-group-mapping" type="{http://openejb.apache.org/xml/ns/openejb-jar-2.2}cmp-field-group-mappingType" maxOccurs="unbounded" minOccurs="0"/>
                     <element name="cmr-field-group-mapping" type="{http://openejb.apache.org/xml/ns/openejb-jar-2.2}cmr-field-group-mappingType" maxOccurs="unbounded" minOccurs="0"/>
                   </sequence>
                 </restriction>
               </complexContent>
             </complexType>
           </element>
           <element name="select-for-update" type="{http://geronimo.apache.org/xml/ns/deployment-1.2}emptyType" minOccurs="0"/>
         </sequence>
         <element name="cache" minOccurs="0">
           <complexType>
             <complexContent>
               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
                 <sequence>
                   <element name="isolation-level">
                     <simpleType>
                       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
                         <enumeration value="read-uncommitted"/>
                         <enumeration value="read-committed"/>
                         <enumeration value="repeatable-read"/>
                       </restriction>
                     </simpleType>
                   </element>
                   <element name="size" type="{http://www.w3.org/2001/XMLSchema}int"/>
                 </sequence>
               </restriction>
             </complexContent>
           </complexType>
         </element>
         <group ref="{http://geronimo.apache.org/xml/ns/naming-1.2}jndiEnvironmentRefsGroup"/>
         <element name="query" type="{http://openejb.apache.org/xml/ns/openejb-jar-2.2}queryType" maxOccurs="unbounded" minOccurs="0"/>
       </sequence>
       <attribute name="id" type="{http://www.w3.org/2001/XMLSchema}ID" />
     </restriction>
   </complexContent>
 </complexType>
 


Nested Class Summary
static class EntityBeanType.Cache
          Java class for anonymous complex type.
static class EntityBeanType.CmpFieldMapping
          Java class for anonymous complex type.
static class EntityBeanType.PrefetchGroup
          Java class for anonymous complex type.
 
Field Summary
protected  java.util.List<javax.xml.bind.JAXBElement<? extends AbstractNamingEntryType>> abstractNamingEntry
           
protected  EntityBeanType.Cache cache
           
protected  java.util.List<EntityBeanType.CmpFieldMapping> cmpFieldMapping
           
protected  java.util.List<EjbLocalRefType> ejbLocalRef
           
protected  java.lang.String ejbName
           
protected  java.util.List<EjbRefType> ejbRef
           
protected  java.lang.String id
           
protected  java.util.List<Jndi> jndi
           
protected  java.util.List<java.lang.String> jndiName
           
protected  KeyGeneratorType keyGenerator
           
protected  java.util.List<java.lang.String> localJndiName
           
protected  java.util.List<PersistenceContextRefType> persistenceContextRef
           
protected  java.util.List<PersistenceUnitRefType> persistenceUnitRef
           
protected  EntityBeanType.PrefetchGroup prefetchGroup
           
protected  java.lang.String primkeyField
           
protected  java.util.Properties properties
           
protected  java.util.List<QueryType> query
           
protected  java.util.List<ResourceEnvRefType> resourceEnvRef
           
protected  java.util.List<ResourceRefType> resourceRef
           
protected  EmptyType selectForUpdate
           
protected  java.util.List<ServiceRefType> serviceRef
           
protected  EmptyType staticSql
           
protected  java.lang.String tableName
           
protected  PatternType tss
           
protected  java.lang.String tssLink
           
 
Constructor Summary
EntityBeanType()
           
 
Method Summary
 java.util.List<javax.xml.bind.JAXBElement<? extends AbstractNamingEntryType>> getAbstractNamingEntry()
          Gets the value of the abstractNamingEntry property.
 EntityBeanType.Cache getCache()
          Gets the value of the cache property.
 java.util.List<EntityBeanType.CmpFieldMapping> getCmpFieldMapping()
          Gets the value of the cmpFieldMapping property.
 java.util.List<EjbLocalRefType> getEjbLocalRef()
          Gets the value of the ejbLocalRef property.
 java.lang.String getEjbName()
          Gets the value of the ejbName property.
 java.util.List<EjbRefType> getEjbRef()
          Gets the value of the ejbRef property.
 java.lang.String getId()
          Gets the value of the id property.
 java.util.List<Jndi> getJndi()
           
 java.util.List<java.lang.String> getJndiName()
          Gets the value of the jndiName property.
 KeyGeneratorType getKeyGenerator()
          Gets the value of the keyGenerator property.
 java.util.List<java.lang.String> getLocalJndiName()
          Gets the value of the localJndiName property.
 java.util.List<PersistenceContextRefType> getPersistenceContextRef()
           
 java.util.List<PersistenceUnitRefType> getPersistenceUnitRef()
           
 EntityBeanType.PrefetchGroup getPrefetchGroup()
          Gets the value of the prefetchGroup property.
 java.lang.String getPrimkeyField()
          Gets the value of the primkeyField property.
 java.util.Properties getProperties()
           
 java.util.List<QueryType> getQuery()
          Gets the value of the query property.
 java.util.List<ResourceEnvRefType> getResourceEnvRef()
          Gets the value of the resourceEnvRef property.
 java.util.List<ResourceRefType> getResourceRef()
          Gets the value of the resourceRef property.
 java.util.List<ServiceRefType> getServiceRef()
          Gets the value of the serviceRef property.
 java.lang.String getTableName()
          Gets the value of the tableName property.
 PatternType getTss()
          Gets the value of the tss property.
 java.lang.String getTssLink()
          Gets the value of the tssLink property.
 boolean isSelectForUpdate()
          Gets the value of the selectForUpdate property.
 boolean isStaticSql()
          Gets the value of the staticSql property.
 void setCache(EntityBeanType.Cache value)
          Sets the value of the cache property.
 void setEjbName(java.lang.String value)
          Sets the value of the ejbName property.
 void setId(java.lang.String value)
          Sets the value of the id property.
 void setKeyGenerator(KeyGeneratorType value)
          Sets the value of the keyGenerator property.
 void setPrefetchGroup(EntityBeanType.PrefetchGroup value)
          Sets the value of the prefetchGroup property.
 void setPrimkeyField(java.lang.String value)
          Sets the value of the primkeyField property.
 void setSelectForUpdate(boolean value)
          Sets the value of the selectForUpdate property.
 void setStaticSql(boolean value)
          Sets the value of the staticSql property.
 void setTableName(java.lang.String value)
          Sets the value of the tableName property.
 void setTss(PatternType value)
          Sets the value of the tss property.
 void setTssLink(java.lang.String value)
          Sets the value of the tssLink property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ejbName

protected java.lang.String ejbName

jndiName

protected java.util.List<java.lang.String> jndiName

localJndiName

protected java.util.List<java.lang.String> localJndiName

jndi

protected java.util.List<Jndi> jndi

tssLink

protected java.lang.String tssLink

tss

protected PatternType tss

tableName

protected java.lang.String tableName

staticSql

protected EmptyType staticSql

cmpFieldMapping

protected java.util.List<EntityBeanType.CmpFieldMapping> cmpFieldMapping

primkeyField

protected java.lang.String primkeyField

keyGenerator

protected KeyGeneratorType keyGenerator

prefetchGroup

protected EntityBeanType.PrefetchGroup prefetchGroup

selectForUpdate

protected EmptyType selectForUpdate

cache

protected EntityBeanType.Cache cache

abstractNamingEntry

protected java.util.List<javax.xml.bind.JAXBElement<? extends AbstractNamingEntryType>> abstractNamingEntry

persistenceContextRef

protected java.util.List<PersistenceContextRefType> persistenceContextRef

persistenceUnitRef

protected java.util.List<PersistenceUnitRefType> persistenceUnitRef

ejbRef

protected java.util.List<EjbRefType> ejbRef

ejbLocalRef

protected java.util.List<EjbLocalRefType> ejbLocalRef

serviceRef

protected java.util.List<ServiceRefType> serviceRef

resourceRef

protected java.util.List<ResourceRefType> resourceRef

resourceEnvRef

protected java.util.List<ResourceEnvRefType> resourceEnvRef

query

protected java.util.List<QueryType> query

properties

protected java.util.Properties properties

id

protected java.lang.String id
Constructor Detail

EntityBeanType

public EntityBeanType()
Method Detail

getEjbName

public java.lang.String getEjbName()
Gets the value of the ejbName property.

Specified by:
getEjbName in interface EnterpriseBean
Returns:
possible object is String

setEjbName

public void setEjbName(java.lang.String value)
Sets the value of the ejbName property.

Specified by:
setEjbName in interface EnterpriseBean
Parameters:
value - allowed object is String

getJndiName

public java.util.List<java.lang.String> getJndiName()
Gets the value of the jndiName property.

This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the jndiName property.

For example, to add a new item, do as follows:

    getJndiName().add(newItem);
 

Objects of the following type(s) are allowed in the list String

Specified by:
getJndiName in interface EnterpriseBean
Specified by:
getJndiName in interface RpcBean

getLocalJndiName

public java.util.List<java.lang.String> getLocalJndiName()
Gets the value of the localJndiName property.

This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the localJndiName property.

For example, to add a new item, do as follows:

    getLocalJndiName().add(newItem);
 

Objects of the following type(s) are allowed in the list String

Specified by:
getLocalJndiName in interface EnterpriseBean
Specified by:
getLocalJndiName in interface RpcBean

getJndi

public java.util.List<Jndi> getJndi()
Specified by:
getJndi in interface EnterpriseBean

getTssLink

public java.lang.String getTssLink()
Gets the value of the tssLink property.

Specified by:
getTssLink in interface RpcBean
Returns:
possible object is String

setTssLink

public void setTssLink(java.lang.String value)
Sets the value of the tssLink property.

Specified by:
setTssLink in interface RpcBean
Parameters:
value - allowed object is String

getTss

public PatternType getTss()
Gets the value of the tss property.

Specified by:
getTss in interface RpcBean
Returns:
possible object is PatternType

setTss

public void setTss(PatternType value)
Sets the value of the tss property.

Specified by:
setTss in interface RpcBean
Parameters:
value - allowed object is PatternType

getTableName

public java.lang.String getTableName()
Gets the value of the tableName property.

Returns:
possible object is String

setTableName

public void setTableName(java.lang.String value)
Sets the value of the tableName property.

Parameters:
value - allowed object is String

isStaticSql

public boolean isStaticSql()
Gets the value of the staticSql property.

Returns:
possible object is boolean

setStaticSql

public void setStaticSql(boolean value)
Sets the value of the staticSql property.

Parameters:
value - allowed object is boolean

getCmpFieldMapping

public java.util.List<EntityBeanType.CmpFieldMapping> getCmpFieldMapping()
Gets the value of the cmpFieldMapping property.

This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the cmpFieldMapping property.

For example, to add a new item, do as follows:

    getCmpFieldMapping().add(newItem);
 

Objects of the following type(s) are allowed in the list EntityBeanType.CmpFieldMapping


getPrimkeyField

public java.lang.String getPrimkeyField()
Gets the value of the primkeyField property.

Returns:
possible object is String

setPrimkeyField

public void setPrimkeyField(java.lang.String value)
Sets the value of the primkeyField property.

Parameters:
value - allowed object is String

getKeyGenerator

public KeyGeneratorType getKeyGenerator()
Gets the value of the keyGenerator property.

Returns:
possible object is KeyGeneratorType

setKeyGenerator

public void setKeyGenerator(KeyGeneratorType value)
Sets the value of the keyGenerator property.

Parameters:
value - allowed object is KeyGeneratorType

getPrefetchGroup

public EntityBeanType.PrefetchGroup getPrefetchGroup()
Gets the value of the prefetchGroup property.

Returns:
possible object is EntityBeanType.PrefetchGroup

setPrefetchGroup

public void setPrefetchGroup(EntityBeanType.PrefetchGroup value)
Sets the value of the prefetchGroup property.

Parameters:
value - allowed object is EntityBeanType.PrefetchGroup

isSelectForUpdate

public boolean isSelectForUpdate()
Gets the value of the selectForUpdate property.

Returns:
possible object is boolean

setSelectForUpdate

public void setSelectForUpdate(boolean value)
Sets the value of the selectForUpdate property.

Parameters:
value - allowed object is boolean

getCache

public EntityBeanType.Cache getCache()
Gets the value of the cache property.

Returns:
possible object is EntityBeanType.Cache

setCache

public void setCache(EntityBeanType.Cache value)
Sets the value of the cache property.

Parameters:
value - allowed object is EntityBeanType.Cache

getAbstractNamingEntry

public java.util.List<javax.xml.bind.JAXBElement<? extends AbstractNamingEntryType>> getAbstractNamingEntry()
Gets the value of the abstractNamingEntry property.

This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the abstractNamingEntry property.

For example, to add a new item, do as follows:

    getAbstractNamingEntry().add(newItem);
 

Objects of the following type(s) are allowed in the list JAXBElement<AbstractNamingEntryType> JAXBElement<PersistenceContextRefType> JAXBElement<PersistenceUnitRefType> JAXBElement<GbeanRefType>

Specified by:
getAbstractNamingEntry in interface EnterpriseBean

getPersistenceContextRef

public java.util.List<PersistenceContextRefType> getPersistenceContextRef()
Specified by:
getPersistenceContextRef in interface EnterpriseBean

getPersistenceUnitRef

public java.util.List<PersistenceUnitRefType> getPersistenceUnitRef()
Specified by:
getPersistenceUnitRef in interface EnterpriseBean

getEjbRef

public java.util.List<EjbRefType> getEjbRef()
Gets the value of the ejbRef property.

This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the ejbRef property.

For example, to add a new item, do as follows:

    getEjbRef().add(newItem);
 

Objects of the following type(s) are allowed in the list EjbRefType

Specified by:
getEjbRef in interface EnterpriseBean

getEjbLocalRef

public java.util.List<EjbLocalRefType> getEjbLocalRef()
Gets the value of the ejbLocalRef property.

This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the ejbLocalRef property.

For example, to add a new item, do as follows:

    getEjbLocalRef().add(newItem);
 

Objects of the following type(s) are allowed in the list EjbLocalRefType

Specified by:
getEjbLocalRef in interface EnterpriseBean

getServiceRef

public java.util.List<ServiceRefType> getServiceRef()
Gets the value of the serviceRef property.

This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the serviceRef property.

For example, to add a new item, do as follows:

    getServiceRef().add(newItem);
 

Objects of the following type(s) are allowed in the list ServiceRefType

Specified by:
getServiceRef in interface EnterpriseBean

getResourceRef

public java.util.List<ResourceRefType> getResourceRef()
Gets the value of the resourceRef property.

This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the resourceRef property.

For example, to add a new item, do as follows:

    getResourceRef().add(newItem);
 

Objects of the following type(s) are allowed in the list ResourceRefType

Specified by:
getResourceRef in interface EnterpriseBean

getResourceEnvRef

public java.util.List<ResourceEnvRefType> getResourceEnvRef()
Gets the value of the resourceEnvRef property.

This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the resourceEnvRef property.

For example, to add a new item, do as follows:

    getResourceEnvRef().add(newItem);
 

Objects of the following type(s) are allowed in the list ResourceEnvRefType

Specified by:
getResourceEnvRef in interface EnterpriseBean

getQuery

public java.util.List<QueryType> getQuery()
Gets the value of the query property.

This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the query property.

For example, to add a new item, do as follows:

    getQuery().add(newItem);
 

Objects of the following type(s) are allowed in the list QueryType


getId

public java.lang.String getId()
Gets the value of the id property.

Returns:
possible object is String

setId

public void setId(java.lang.String value)
Sets the value of the id property.

Parameters:
value - allowed object is String

getProperties

public java.util.Properties getProperties()
Specified by:
getProperties in interface EnterpriseBean


Copyright © 1999-2011 The Apache OpenEJB development community. All Rights Reserved.