org.eclipse.jpt.core.resource.persistence
Class XmlPersistenceUnit

java.lang.Object
  extended by org.eclipse.emf.common.notify.impl.BasicNotifierImpl
      extended by org.eclipse.emf.ecore.impl.BasicEObjectImpl
          extended by org.eclipse.emf.ecore.impl.EObjectImpl
              extended by org.eclipse.jpt.core.resource.common.AbstractJpaEObject
                  extended by org.eclipse.jpt.core.resource.persistence.XmlPersistenceUnit
All Implemented Interfaces:
org.eclipse.emf.common.notify.Notifier, org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.InternalEObject, JpaEObject

public class XmlPersistenceUnit
extends AbstractJpaEObject
implements JpaEObject

A representation of the model object 'Unit'. Provisional API: This interface is part of an interim API that is still under development and expected to change significantly before reaching stability. It is available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.

The following features are supported:

See Also:
PersistencePackage.getXmlPersistenceUnit()

Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl
org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EAdapterList<E extends java.lang.Object & org.eclipse.emf.common.notify.Adapter>
 
Nested classes/interfaces inherited from interface org.eclipse.emf.ecore.InternalEObject
org.eclipse.emf.ecore.InternalEObject.EStore
 
Field Summary
 
Fields inherited from class org.eclipse.emf.ecore.impl.EObjectImpl
ELAST_EOBJECT_FLAG
 
Fields inherited from interface org.eclipse.emf.ecore.InternalEObject
EOPPOSITE_FEATURE_BASE
 
Method Summary
 org.eclipse.emf.common.notify.NotificationChain basicSetProperties(XmlProperties newProperties, org.eclipse.emf.common.notify.NotificationChain msgs)
           
 java.lang.Object eGet(int featureID, boolean resolve, boolean coreType)
           
 org.eclipse.emf.common.notify.NotificationChain eInverseRemove(org.eclipse.emf.ecore.InternalEObject otherEnd, int featureID, org.eclipse.emf.common.notify.NotificationChain msgs)
           
 boolean eIsSet(int featureID)
           
 void eSet(int featureID, java.lang.Object newValue)
           
 void eUnset(int featureID)
           
 org.eclipse.emf.common.util.EList<XmlJavaClassRef> getClasses()
          Returns the value of the 'Classes' containment reference list.
 java.lang.String getDescription()
          Returns the value of the 'Description' attribute.
 java.lang.Boolean getExcludeUnlistedClasses()
          Returns the value of the 'Exclude Unlisted Classes' attribute.
 org.eclipse.emf.common.util.EList<java.lang.String> getJarFiles()
          Returns the value of the 'Jar Files' attribute list.
 java.lang.String getJtaDataSource()
          Returns the value of the 'Jta Data Source' attribute.
 org.eclipse.emf.common.util.EList<XmlMappingFileRef> getMappingFiles()
          Returns the value of the 'Mapping Files' containment reference list.
 java.lang.String getName()
          Returns the value of the 'Name' attribute.
 java.lang.String getNonJtaDataSource()
          Returns the value of the 'Non Jta Data Source' attribute.
 XmlProperties getProperties()
          Returns the value of the 'Properties' containment reference.
 java.lang.String getProvider()
          Returns the value of the 'Provider' attribute.
 XmlPersistenceUnitTransactionType getTransactionType()
          Returns the value of the 'Transaction Type' attribute.
 void setDescription(java.lang.String newDescription)
          Sets the value of the 'Description' attribute.
 void setExcludeUnlistedClasses(java.lang.Boolean newExcludeUnlistedClasses)
          Sets the value of the 'Exclude Unlisted Classes' attribute.
 void setJtaDataSource(java.lang.String newJtaDataSource)
          Sets the value of the 'Jta Data Source' attribute.
 void setName(java.lang.String newName)
          Sets the value of the 'Name' attribute.
 void setNonJtaDataSource(java.lang.String newNonJtaDataSource)
          Sets the value of the 'Non Jta Data Source' attribute.
 void setProperties(XmlProperties newProperties)
          Sets the value of the 'Properties' containment reference.
 void setProvider(java.lang.String newProvider)
          Sets the value of the 'Provider' attribute.
 void setTransactionType(XmlPersistenceUnitTransactionType newTransactionType)
          Sets the value of the 'Transaction Type' attribute.
 java.lang.String toString()
           
 
Methods inherited from class org.eclipse.jpt.core.resource.common.AbstractJpaEObject
containsOffset, eAdapters, eNotify, getFullTextRange, getNode, getPlatformResource, getResource, getRoot, getSelectionTextRange, getValidationTextRange, isAllFeaturesUnset
 
Methods inherited from class org.eclipse.emf.ecore.impl.EObjectImpl
eClass, eContainerFeatureID, eDeliver, eInternalContainer, eIsProxy, eSetClass, eSetDeliver, eSetProxyURI
 
Methods inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
eAllContents, eBaseStructuralFeatureID, eBasicRemoveFromContainer, eBasicRemoveFromContainerFeature, eBasicSetContainer, eContainer, eContainingFeature, eContainmentFeature, eContains, eContents, eCrossReferences, eDerivedStructuralFeatureID, eDerivedStructuralFeatureID, eDirectResource, eDynamicBasicRemoveFromContainer, eDynamicGet, eDynamicGet, eDynamicInverseAdd, eDynamicInverseRemove, eDynamicIsSet, eDynamicIsSet, eDynamicSet, eDynamicSet, eDynamicUnset, eDynamicUnset, eGet, eGet, eGet, eInternalResource, eInverseAdd, eInverseAdd, eInverseRemove, eIsSet, eObjectForURIFragmentSegment, eOpenGet, eOpenIsSet, eOpenSet, eOpenUnset, eProxyURI, eResolveProxy, eResource, eSet, eSetResource, eSetStore, eSetting, eStore, eUnset, eURIFragmentSegment, eVirtualGet, eVirtualGet, eVirtualIsSet, eVirtualSet, eVirtualUnset
 
Methods inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl
eNotificationRequired
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.jpt.core.resource.common.JpaEObject
containsOffset, getPlatformResource, getResource, getRoot, getSelectionTextRange, getValidationTextRange, isAllFeaturesUnset
 
Methods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eIsProxy, eIsSet, eResource, eSet, eUnset
 
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
 
Methods inherited from interface org.eclipse.emf.ecore.InternalEObject
eNotificationRequired
 

Method Detail

getName

public java.lang.String getName()
Returns the value of the 'Name' attribute.

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

Returns:
the value of the 'Name' attribute.
See Also:
setName(String), PersistencePackage.getXmlPersistenceUnit_Name()

setName

public void setName(java.lang.String newName)
Sets the value of the 'Name' attribute.

Parameters:
value - the new value of the 'Name' attribute.
See Also:
getName()

getTransactionType

public XmlPersistenceUnitTransactionType getTransactionType()
Returns the value of the 'Transaction Type' attribute. The default value is "JTA". The literals are from the enumeration XmlPersistenceUnitTransactionType.

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

Returns:
the value of the 'Transaction Type' attribute.
See Also:
XmlPersistenceUnitTransactionType, setTransactionType(XmlPersistenceUnitTransactionType), PersistencePackage.getXmlPersistenceUnit_TransactionType()

setTransactionType

public void setTransactionType(XmlPersistenceUnitTransactionType newTransactionType)
Sets the value of the 'Transaction Type' attribute.

Parameters:
value - the new value of the 'Transaction Type' attribute.
See Also:
XmlPersistenceUnitTransactionType, getTransactionType()

getDescription

public java.lang.String getDescription()
Returns the value of the 'Description' attribute.

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

Returns:
the value of the 'Description' attribute.
See Also:
setDescription(String), PersistencePackage.getXmlPersistenceUnit_Description()

setDescription

public void setDescription(java.lang.String newDescription)
Sets the value of the 'Description' attribute.

Parameters:
value - the new value of the 'Description' attribute.
See Also:
getDescription()

getProvider

public java.lang.String getProvider()
Returns the value of the 'Provider' attribute.

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

Returns:
the value of the 'Provider' attribute.
See Also:
setProvider(String), PersistencePackage.getXmlPersistenceUnit_Provider()

setProvider

public void setProvider(java.lang.String newProvider)
Sets the value of the 'Provider' attribute.

Parameters:
value - the new value of the 'Provider' attribute.
See Also:
getProvider()

getJtaDataSource

public java.lang.String getJtaDataSource()
Returns the value of the 'Jta Data Source' attribute.

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

Returns:
the value of the 'Jta Data Source' attribute.
See Also:
setJtaDataSource(String), PersistencePackage.getXmlPersistenceUnit_JtaDataSource()

setJtaDataSource

public void setJtaDataSource(java.lang.String newJtaDataSource)
Sets the value of the 'Jta Data Source' attribute.

Parameters:
value - the new value of the 'Jta Data Source' attribute.
See Also:
getJtaDataSource()

getNonJtaDataSource

public java.lang.String getNonJtaDataSource()
Returns the value of the 'Non Jta Data Source' attribute.

If the meaning of the 'Non Jta Data Source' attribute isn't clear, there really should be more of a description here...

Returns:
the value of the 'Non Jta Data Source' attribute.
See Also:
setNonJtaDataSource(String), PersistencePackage.getXmlPersistenceUnit_NonJtaDataSource()

setNonJtaDataSource

public void setNonJtaDataSource(java.lang.String newNonJtaDataSource)
Sets the value of the 'Non Jta Data Source' attribute.

Parameters:
value - the new value of the 'Non Jta Data Source' attribute.
See Also:
getNonJtaDataSource()

getMappingFiles

public org.eclipse.emf.common.util.EList<XmlMappingFileRef> getMappingFiles()
Returns the value of the 'Mapping Files' containment reference list. The list contents are of type XmlMappingFileRef.

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

Returns:
the value of the 'Mapping Files' containment reference list.
See Also:
PersistencePackage.getXmlPersistenceUnit_MappingFiles()

getJarFiles

public org.eclipse.emf.common.util.EList<java.lang.String> getJarFiles()
Returns the value of the 'Jar Files' attribute list. The list contents are of type String.

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

Returns:
the value of the 'Jar Files' attribute list.
See Also:
PersistencePackage.getXmlPersistenceUnit_JarFiles()

getClasses

public org.eclipse.emf.common.util.EList<XmlJavaClassRef> getClasses()
Returns the value of the 'Classes' containment reference list. The list contents are of type XmlJavaClassRef.

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

Returns:
the value of the 'Classes' containment reference list.
See Also:
PersistencePackage.getXmlPersistenceUnit_Classes()

getExcludeUnlistedClasses

public java.lang.Boolean getExcludeUnlistedClasses()
Returns the value of the 'Exclude Unlisted Classes' attribute.

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

Returns:
the value of the 'Exclude Unlisted Classes' attribute.
See Also:
setExcludeUnlistedClasses(Boolean), PersistencePackage.getXmlPersistenceUnit_ExcludeUnlistedClasses()

setExcludeUnlistedClasses

public void setExcludeUnlistedClasses(java.lang.Boolean newExcludeUnlistedClasses)
Sets the value of the 'Exclude Unlisted Classes' attribute.

Parameters:
value - the new value of the 'Exclude Unlisted Classes' attribute.
See Also:
getExcludeUnlistedClasses()

getProperties

public XmlProperties getProperties()
Returns the value of the 'Properties' containment reference.

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

Returns:
the value of the 'Properties' containment reference.
See Also:
setProperties(XmlProperties), PersistencePackage.getXmlPersistenceUnit_Properties()

basicSetProperties

public org.eclipse.emf.common.notify.NotificationChain basicSetProperties(XmlProperties newProperties,
                                                                          org.eclipse.emf.common.notify.NotificationChain msgs)


setProperties

public void setProperties(XmlProperties newProperties)
Sets the value of the 'Properties' containment reference.

Parameters:
value - the new value of the 'Properties' containment reference.
See Also:
getProperties()

eInverseRemove

public org.eclipse.emf.common.notify.NotificationChain eInverseRemove(org.eclipse.emf.ecore.InternalEObject otherEnd,
                                                                      int featureID,
                                                                      org.eclipse.emf.common.notify.NotificationChain msgs)

Overrides:
eInverseRemove in class org.eclipse.emf.ecore.impl.BasicEObjectImpl

eGet

public java.lang.Object eGet(int featureID,
                             boolean resolve,
                             boolean coreType)

Specified by:
eGet in interface org.eclipse.emf.ecore.InternalEObject
Overrides:
eGet in class org.eclipse.emf.ecore.impl.BasicEObjectImpl

eSet

public void eSet(int featureID,
                 java.lang.Object newValue)

Specified by:
eSet in interface org.eclipse.emf.ecore.InternalEObject
Overrides:
eSet in class org.eclipse.emf.ecore.impl.BasicEObjectImpl

eUnset

public void eUnset(int featureID)

Specified by:
eUnset in interface org.eclipse.emf.ecore.InternalEObject
Overrides:
eUnset in class org.eclipse.emf.ecore.impl.BasicEObjectImpl

eIsSet

public boolean eIsSet(int featureID)

Specified by:
eIsSet in interface org.eclipse.emf.ecore.InternalEObject
Overrides:
eIsSet in class org.eclipse.emf.ecore.impl.BasicEObjectImpl

toString

public java.lang.String toString()

Overrides:
toString in class org.eclipse.emf.ecore.impl.BasicEObjectImpl