org.eclipse.modisco.jee.ejbjar.EjbJar31
Interface PersistenceContextRefType


public interface PersistenceContextRefType

A representation of the model object 'Persistence Context Ref Type'. myPersistenceContext myPersistenceContext PersistenceUnit1 Extended ]]>

The following features are supported:

See Also:
EjbJar31Package.getPersistenceContextRefType()
Generated:
Model:
extendedMetaData="name='persistence-context-refType' kind='elementOnly'"

Method Summary
  getDescription()
          Returns the value of the 'Description' containment reference list.
 java.lang.String getId()
          Returns the value of the 'Id' attribute.
  getInjectionTarget()
          Returns the value of the 'Injection Target' containment reference list.
 XsdStringType getMappedName()
          Returns the value of the 'Mapped Name' containment reference.
 JndiNameType getPersistenceContextRefName()
          Returns the value of the 'Persistence Context Ref Name' containment reference.
 PersistenceContextTypeType getPersistenceContextType()
          Returns the value of the 'Persistence Context Type' containment reference.
  getPersistenceProperty()
          Returns the value of the 'Persistence Property' containment reference list.
 String getPersistenceUnitName()
          Returns the value of the 'Persistence Unit Name' containment reference.
 void setId(java.lang.String value)
          Sets the value of the 'Id' attribute.
 void setMappedName(XsdStringType value)
          Sets the value of the 'Mapped Name' containment reference.
 void setPersistenceContextRefName(JndiNameType value)
          Sets the value of the 'Persistence Context Ref Name' containment reference.
 void setPersistenceContextType(PersistenceContextTypeType value)
          Sets the value of the 'Persistence Context Type' containment reference.
 void setPersistenceUnitName(String value)
          Sets the value of the 'Persistence Unit Name' containment reference.
 

Method Detail

getDescription

 getDescription()
Returns the value of the 'Description' containment reference list. The list contents are of type DescriptionType.

If the meaning of the 'Description' containment reference list isn't clear, there really should be more of a description here...

Returns:
the value of the 'Description' containment reference list.
See Also:
EjbJar31Package.getPersistenceContextRefType_Description()
Generated:
Model:
containment="true" extendedMetaData="kind='element' name='description' namespace='http://java.sun.com/xml/ns/javaee'"

getPersistenceContextRefName

JndiNameType getPersistenceContextRefName()
Returns the value of the 'Persistence Context Ref Name' containment reference. The persistence-context-ref-name element specifies the name of a persistence context reference; its value is the environment entry name used in Deployment Component code. The name is a JNDI name relative to the java:comp/env context.

Returns:
the value of the 'Persistence Context Ref Name' containment reference.
See Also:
setPersistenceContextRefName(JndiNameType), EjbJar31Package.getPersistenceContextRefType_PersistenceContextRefName()
Generated:
Model:
containment="true" required="true" extendedMetaData="kind='element' name='persistence-context-ref-name' namespace='http://java.sun.com/xml/ns/javaee'"

setPersistenceContextRefName

void setPersistenceContextRefName(JndiNameType value)
Sets the value of the 'Persistence Context Ref Name' containment reference.

Parameters:
value - the new value of the 'Persistence Context Ref Name' containment reference.
See Also:
getPersistenceContextRefName()
Generated:

getPersistenceUnitName

String getPersistenceUnitName()
Returns the value of the 'Persistence Unit Name' containment reference. The Application Assembler(or BeanProvider) may use the following syntax to avoid the need to rename persistence units to have unique names within a Java EE application. The Application Assembler specifies the pathname of the root of the persistence.xml file for the referenced persistence unit and appends the name of the persistence unit separated from the pathname by #. The pathname is relative to the referencing application component jar file. In this manner, multiple persistence units with the same persistence unit name may be uniquely identified when the Application Assembler cannot change persistence unit names.

Returns:
the value of the 'Persistence Unit Name' containment reference.
See Also:
setPersistenceUnitName(org.eclipse.modisco.jee.ejbjar.EjbJar31.String), EjbJar31Package.getPersistenceContextRefType_PersistenceUnitName()
Generated:
Model:
containment="true" extendedMetaData="kind='element' name='persistence-unit-name' namespace='http://java.sun.com/xml/ns/javaee'"

setPersistenceUnitName

void setPersistenceUnitName(String value)
Sets the value of the 'Persistence Unit Name' containment reference.

Parameters:
value - the new value of the 'Persistence Unit Name' containment reference.
See Also:
getPersistenceUnitName()
Generated:

getPersistenceContextType

PersistenceContextTypeType getPersistenceContextType()
Returns the value of the 'Persistence Context Type' containment reference.

If the meaning of the 'Persistence Context Type' containment reference isn't clear, there really should be more of a description here...

Returns:
the value of the 'Persistence Context Type' containment reference.
See Also:
setPersistenceContextType(PersistenceContextTypeType), EjbJar31Package.getPersistenceContextRefType_PersistenceContextType()
Generated:
Model:
containment="true" extendedMetaData="kind='element' name='persistence-context-type' namespace='http://java.sun.com/xml/ns/javaee'"

setPersistenceContextType

void setPersistenceContextType(PersistenceContextTypeType value)
Sets the value of the 'Persistence Context Type' containment reference.

Parameters:
value - the new value of the 'Persistence Context Type' containment reference.
See Also:
getPersistenceContextType()
Generated:

getPersistenceProperty

 getPersistenceProperty()
Returns the value of the 'Persistence Property' containment reference list. The list contents are of type PropertyType. Used to specify properties for the container or persistence provider. Vendor-specific properties may be included in the set of properties. Properties that are not recognized by a vendor must be ignored. Entries that make use of the namespace javax.persistence and its subnamespaces must not be used for vendor-specific properties. The namespace javax.persistence is reserved for use by the specification.

Returns:
the value of the 'Persistence Property' containment reference list.
See Also:
EjbJar31Package.getPersistenceContextRefType_PersistenceProperty()
Generated:
Model:
containment="true" extendedMetaData="kind='element' name='persistence-property' namespace='http://java.sun.com/xml/ns/javaee'"

getMappedName

XsdStringType getMappedName()
Returns the value of the 'Mapped Name' containment reference. A product specific name that this resource should be mapped to. The name of this resource, as defined by the resource's name element or defaulted, is a name that is local to the application component using the resource. (It's a name in the JNDI java:comp/env namespace.) Many application servers provide a way to map these local names to names of resources known to the application server. This mapped name is often a global JNDI name, but may be a name of any form. Application servers are not required to support any particular form or type of mapped name, nor the ability to use mapped names. The mapped name is product-dependent and often installation-dependent. No use of a mapped name is portable.

Returns:
the value of the 'Mapped Name' containment reference.
See Also:
setMappedName(XsdStringType), EjbJar31Package.getPersistenceContextRefType_MappedName()
Generated:
Model:
containment="true" extendedMetaData="kind='element' name='mapped-name' namespace='http://java.sun.com/xml/ns/javaee'"

setMappedName

void setMappedName(XsdStringType value)
Sets the value of the 'Mapped Name' containment reference.

Parameters:
value - the new value of the 'Mapped Name' containment reference.
See Also:
getMappedName()
Generated:

getInjectionTarget

 getInjectionTarget()
Returns the value of the 'Injection Target' containment reference list. The list contents are of type InjectionTargetType.

If the meaning of the 'Injection Target' containment reference list isn't clear, there really should be more of a description here...

Returns:
the value of the 'Injection Target' containment reference list.
See Also:
EjbJar31Package.getPersistenceContextRefType_InjectionTarget()
Generated:
Model:
containment="true" extendedMetaData="kind='element' name='injection-target' namespace='http://java.sun.com/xml/ns/javaee'"

getId

java.lang.String getId()
Returns the value of the 'Id' attribute.

If the meaning of the 'Id' attribute isn't clear, there really should be more of a description here...

Returns:
the value of the 'Id' attribute.
See Also:
setId(String), EjbJar31Package.getPersistenceContextRefType_Id()
Generated:
Model:
id="true" dataType="org.eclipse.emf.ecore.xml.type.ID" extendedMetaData="kind='attribute' name='id'"

setId

void setId(java.lang.String value)
Sets the value of the 'Id' attribute.

Parameters:
value - the new value of the 'Id' attribute.
See Also:
getId()
Generated: