org.eclipse.jpt.core.jpa2.context.persistence
Interface PersistenceUnit2_0

All Superinterfaces:
org.eclipse.core.runtime.IAdaptable, IResourcePart, JpaContextNode, JpaNode, JpaStructureNode, MetamodelSynchronizer, Model, PersistenceUnit, XmlContextNode

public interface PersistenceUnit2_0
extends PersistenceUnit, MetamodelSynchronizer

JPA 2.0 persistence-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.

Since:
2.3
Version:
2.3

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.jpt.core.context.persistence.PersistenceUnit
PersistenceUnit.Property
 
Nested classes/interfaces inherited from interface org.eclipse.jpt.core.jpa2.MetamodelSynchronizer
MetamodelSynchronizer.Null
 
Field Summary
static java.lang.String DEFAULT_DELIMITED_IDENTIFIERS_PROPERTY
          String constant associated with changes to the persistence unit's default "delimited identifiers" flag.
static java.lang.String DEFAULT_SHARED_CACHE_MODE_PROPERTY
          String constant associated with changes to the persistence unit's default shared cache mode (not typically changed).
static ValidationMode DEFAULT_VALIDATION_MODE
           
static java.lang.String DEFAULT_VALIDATION_MODE_PROPERTY
          String constant associated with changes to the persistence unit's default validation mode (not typically changed).
static java.lang.String SPECIFIED_SHARED_CACHE_MODE_PROPERTY
          String constant associated with changes to the persistence unit's specified shared cache mode
static java.lang.String SPECIFIED_VALIDATION_MODE_PROPERTY
          String constant associated with changes to the persistence unit's specified validation mode
 
Fields inherited from interface org.eclipse.jpt.core.context.persistence.PersistenceUnit
DEFAULT_ACCESS_PROPERTY, DEFAULT_CASCADE_PERSIST_PROPERTY, DEFAULT_CATALOG_PROPERTY, DEFAULT_EXCLUDE_UNLISTED_CLASSES_PROPERTY, DEFAULT_SCHEMA_PROPERTY, DEFAULT_TRANSACTION_TYPE_PROPERTY, DESCRIPTION_PROPERTY, GENERATORS_LIST, IMPLIED_CLASS_REFS_COLLECTION, IMPLIED_MAPPING_FILE_REF_PROPERTY, JAR_FILE_REFS_LIST, JTA_DATA_SOURCE_PROPERTY, NAME_PROPERTY, NON_JTA_DATA_SOURCE_PROPERTY, PROPERTIES_LIST, PROVIDER_PROPERTY, QUERIES_LIST, SPECIFIED_CLASS_REFS_LIST, SPECIFIED_EXCLUDE_UNLISTED_CLASSES_PROPERTY, SPECIFIED_MAPPING_FILE_REFS_LIST, SPECIFIED_TRANSACTION_TYPE_PROPERTY
 
Method Summary
 boolean calculateDefaultCacheable()
           
 PersistenceUnitProperties getConnection()
           
 boolean getDefaultDelimitedIdentifiers()
          Return the default "delimited identifiers" flag from the first persistence unit defaults found in the persistence unit's list of mapping files.
 SharedCacheMode getDefaultSharedCacheMode()
          Return the persistence unit's default shared cache mode.
 ValidationMode getDefaultValidationMode()
          Return the persistence unit's default validation mode.
 PersistenceUnitProperties getOptions()
           
 SharedCacheMode getSharedCacheMode()
          Return the persistence unit's shared cache mode, whether specified or defaulted.
 SharedCacheMode getSpecifiedSharedCacheMode()
          Return the persistence unit's specified shared cache mode.
 ValidationMode getSpecifiedValidationMode()
          Return the persistence unit's specified validation mode.
 ValidationMode getValidationMode()
          Return the persistence unit's validation mode, whether specified or defaulted.
 void setSpecifiedSharedCacheMode(SharedCacheMode sharedCacheMode)
          Set the persistence unit's specified shared cache mode.
 void setSpecifiedValidationMode(ValidationMode validationMode)
          Set the persistence unit's specified validation mode.
 
Methods inherited from interface org.eclipse.jpt.core.context.persistence.PersistenceUnit
addGenerator, addJarFileRef, addJarFileRef, addProperty, addProperty, addQuery, addRootEntityWithSubEntities, addSpecifiedClassRef, addSpecifiedClassRef, addSpecifiedMappingFileRef, addSpecifiedMappingFileRef, classRefs, classRefsSize, containsOffset, entityIsRootWithSubEntities, excludesUnlistedClasses, generators, generatorsSize, getDefaultAccess, getDefaultCascadePersist, getDefaultCatalog, getDefaultExcludeUnlistedClasses, getDefaultSchema, getDefaultTransactionType, getDescription, getEmbeddable, getEntity, getImpliedMappingFileRef, getJtaDataSource, getName, getNonJtaDataSource, getParent, getPersistentType, getProperty, getProvider, getSpecifiedExcludeUnlistedClasses, getSpecifiedTransactionType, getTransactionType, impliedClassRefs, impliedClassRefsSize, jarFileRefs, jarFileRefsSize, mappingFileRefs, mappingFileRefsContaining, mappingFileRefsSize, properties, propertiesSize, propertiesWithNamePrefix, propertyNameChanged, propertyValueChanged, queries, queriesSize, removeJarFileRef, removeJarFileRef, removeProperty, removeProperty, removeProperty, removeSpecifiedClassRef, removeSpecifiedClassRef, removeSpecifiedMappingFileRef, removeSpecifiedMappingFileRef, setDescription, setJtaDataSource, setName, setNonJtaDataSource, setProperty, setProperty, setProvider, setSpecifiedExcludeUnlistedClasses, setSpecifiedTransactionType, shouldValidateAgainstDatabase, specifiedClassRefs, specifiedClassRefsSize, specifiedMappingFileRefs, specifiedMappingFileRefsSize, specifiesPersistentType, uniqueGeneratorNames, update
 
Methods inherited from interface org.eclipse.jpt.core.context.XmlContextNode
getValidationTextRange, validate
 
Methods inherited from interface org.eclipse.jpt.core.context.JpaContextNode
getContextDefaultDbCatalog, getContextDefaultDbSchema, getContextDefaultDbSchemaContainer, getMappingFileRoot, getPersistenceUnit, getResourceType, postUpdate
 
Methods inherited from interface org.eclipse.jpt.core.JpaNode
getJpaProject
 
Methods inherited from interface org.eclipse.jpt.utility.model.Model
addChangeListener, addCollectionChangeListener, addListChangeListener, addPropertyChangeListener, addStateChangeListener, addTreeChangeListener, removeChangeListener, removeCollectionChangeListener, removeListChangeListener, removePropertyChangeListener, removeStateChangeListener, removeTreeChangeListener
 
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
 
Methods inherited from interface org.eclipse.jpt.core.IResourcePart
getResource
 
Methods inherited from interface org.eclipse.jpt.core.JpaStructureNode
dispose, getId, getResourceType, getSelectionTextRange, getStructureNode
 
Methods inherited from interface org.eclipse.jpt.core.jpa2.MetamodelSynchronizer
disposeMetamodel, initializeMetamodel, synchronizeMetamodel
 

Field Detail

SPECIFIED_SHARED_CACHE_MODE_PROPERTY

static final java.lang.String SPECIFIED_SHARED_CACHE_MODE_PROPERTY
String constant associated with changes to the persistence unit's specified shared cache mode

See Also:
Constant Field Values

DEFAULT_SHARED_CACHE_MODE_PROPERTY

static final java.lang.String DEFAULT_SHARED_CACHE_MODE_PROPERTY
String constant associated with changes to the persistence unit's default shared cache mode (not typically changed).

See Also:
Constant Field Values

SPECIFIED_VALIDATION_MODE_PROPERTY

static final java.lang.String SPECIFIED_VALIDATION_MODE_PROPERTY
String constant associated with changes to the persistence unit's specified validation mode

See Also:
Constant Field Values

DEFAULT_VALIDATION_MODE_PROPERTY

static final java.lang.String DEFAULT_VALIDATION_MODE_PROPERTY
String constant associated with changes to the persistence unit's default validation mode (not typically changed).

See Also:
Constant Field Values

DEFAULT_VALIDATION_MODE

static final ValidationMode DEFAULT_VALIDATION_MODE

DEFAULT_DELIMITED_IDENTIFIERS_PROPERTY

static final java.lang.String DEFAULT_DELIMITED_IDENTIFIERS_PROPERTY
String constant associated with changes to the persistence unit's default "delimited identifiers" flag.

See Also:
Constant Field Values
Method Detail

getSharedCacheMode

SharedCacheMode getSharedCacheMode()
Return the persistence unit's shared cache mode, whether specified or defaulted.


getSpecifiedSharedCacheMode

SharedCacheMode getSpecifiedSharedCacheMode()
Return the persistence unit's specified shared cache mode.


setSpecifiedSharedCacheMode

void setSpecifiedSharedCacheMode(SharedCacheMode sharedCacheMode)
Set the persistence unit's specified shared cache mode.


getDefaultSharedCacheMode

SharedCacheMode getDefaultSharedCacheMode()
Return the persistence unit's default shared cache mode.


calculateDefaultCacheable

boolean calculateDefaultCacheable()

getValidationMode

ValidationMode getValidationMode()
Return the persistence unit's validation mode, whether specified or defaulted.


getSpecifiedValidationMode

ValidationMode getSpecifiedValidationMode()
Return the persistence unit's specified validation mode.


setSpecifiedValidationMode

void setSpecifiedValidationMode(ValidationMode validationMode)
Set the persistence unit's specified validation mode.


getDefaultValidationMode

ValidationMode getDefaultValidationMode()
Return the persistence unit's default validation mode.


getConnection

PersistenceUnitProperties getConnection()

getOptions

PersistenceUnitProperties getOptions()

getDefaultDelimitedIdentifiers

boolean getDefaultDelimitedIdentifiers()
Return the default "delimited identifiers" flag from the first persistence unit defaults found in the persistence unit's list of mapping files.