Dali Provisional API
Release 3.2

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

All Superinterfaces:
DeleteTypeRefactoringParticipant, IAdaptable, JpaContextModel, JpaMetamodelSynchronizer2_0, JpaModel, JpaStructureNode, JptResourceTypeReference, ManagedTypeContainer, MappingFileRefactoringParticipant, Model, PersistenceUnit, PersistentTypeContainer, TypeRefactoringParticipant
All Known Implementing Classes:
org.eclipse.jpt.jpa.core.internal.context.persistence.AbstractPersistenceUnit, EclipseLinkPersistenceUnit

public interface PersistenceUnit2_0
extends PersistenceUnit, JpaMetamodelSynchronizer2_0

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

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.jpt.jpa.core.context.persistence.PersistenceUnit
PersistenceUnit.NameTransformer, PersistenceUnit.Property
 
Nested classes/interfaces inherited from interface org.eclipse.jpt.jpa.core.JpaStructureNode
JpaStructureNode.ContextType
 
Nested classes/interfaces inherited from interface org.eclipse.jpt.jpa.core.JpaModel
JpaModel.JpaVersionIsCompatibleWith
 
Nested classes/interfaces inherited from interface org.eclipse.jpt.common.core.JptResourceTypeReference
JptResourceTypeReference.ResourceTypeIsKindOf, JptResourceTypeReference.ResourceTypeTransformer
 
Nested classes/interfaces inherited from interface org.eclipse.jpt.jpa.core.context.PersistentTypeContainer
PersistentTypeContainer.PersistentTypesTransformer
 
Nested classes/interfaces inherited from interface org.eclipse.jpt.jpa.core.context.ManagedTypeContainer
ManagedTypeContainer.ContainsType, ManagedTypeContainer.ManagedTypesTransformer
 
Nested classes/interfaces inherited from interface org.eclipse.jpt.jpa.core.context.persistence.MappingFileRefactoringParticipant
MappingFileRefactoringParticipant.DeleteMappingFileEditsTransformer, MappingFileRefactoringParticipant.MoveFolderEditsTransformer, MappingFileRefactoringParticipant.MoveMappingFileEditsTransformer, MappingFileRefactoringParticipant.RenameFolderEditsTransformer, MappingFileRefactoringParticipant.RenameMappingFileEditsTransformer
 
Nested classes/interfaces inherited from interface org.eclipse.jpt.jpa.core.context.DeleteTypeRefactoringParticipant
DeleteTypeRefactoringParticipant.DeleteTypeEditsTransformer
 
Nested classes/interfaces inherited from interface org.eclipse.jpt.jpa.core.context.TypeRefactoringParticipant
TypeRefactoringParticipant.MoveTypeEditsTransformer, TypeRefactoringParticipant.RenamePackageEditsTransformer, TypeRefactoringParticipant.RenameTypeEditsTransformer
 
Nested classes/interfaces inherited from interface org.eclipse.jpt.jpa.core.jpa2.JpaMetamodelSynchronizer2_0
JpaMetamodelSynchronizer2_0.MetamodelTools
 
Field Summary
static String DEFAULT_DELIMITED_IDENTIFIERS_PROPERTY
          String constant associated with changes to the persistence unit's default "delimited identifiers" flag.
static String DEFAULT_SHARED_CACHE_MODE_PROPERTY
          String constant associated with changes to the persistence unit's default shared cache mode (not typically changed).
static ValidationMode2_0 DEFAULT_VALIDATION_MODE
           
static String DEFAULT_VALIDATION_MODE_PROPERTY
          String constant associated with changes to the persistence unit's default validation mode (not typically changed).
static String SPECIFIED_SHARED_CACHE_MODE_PROPERTY
          String constant associated with changes to the persistence unit's specified shared cache mode
static 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.jpa.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_COLLECTION, IMPLIED_CLASS_REFS_COLLECTION, IMPLIED_MAPPING_FILE_REF_PROPERTY, JAR_FILE_REFS_LIST, JTA_DATA_SOURCE_PROPERTY, NAME_PROPERTY, NAME_TRANSFORMER, NON_JTA_DATA_SOURCE_PROPERTY, PROPERTIES_LIST, PROVIDER_PROPERTY, QUERIES_COLLECTION, SPECIFIED_CLASS_REFS_LIST, SPECIFIED_EXCLUDE_UNLISTED_CLASSES_PROPERTY, SPECIFIED_MAPPING_FILE_REFS_LIST, SPECIFIED_TRANSACTION_TYPE_PROPERTY, XML_MAPPING_METADATA_COMPLETE_PROPERTY
 
Fields inherited from interface org.eclipse.jpt.jpa.core.JpaStructureNode
CHILDREN_COLLECTION
 
Fields inherited from interface org.eclipse.jpt.common.core.JptResourceTypeReference
TRANSFORMER
 
Fields inherited from interface org.eclipse.jpt.jpa.core.context.PersistentTypeContainer
TRANSFORMER
 
Fields inherited from interface org.eclipse.jpt.jpa.core.jpa2.JpaMetamodelSynchronizer2_0
METAMODEL_GENERATED_ANNOTATION_VALUE
 
Method Summary
 boolean calculateDefaultCacheable()
           
 Connection2_0 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.
 SharedCacheMode2_0 getDefaultSharedCacheMode()
          Return the persistence unit's default shared cache mode.
 ValidationMode2_0 getDefaultValidationMode()
          Return the persistence unit's default validation mode.
 Options2_0 getOptions()
           
 SharedCacheMode2_0 getSharedCacheMode()
          Return the persistence unit's shared cache mode, whether specified or defaulted.
 SharedCacheMode2_0 getSpecifiedSharedCacheMode()
          Return the persistence unit's specified shared cache mode.
 ValidationMode2_0 getSpecifiedValidationMode()
          Return the persistence unit's specified validation mode.
 ValidationMode2_0 getValidationMode()
          Return the persistence unit's validation mode, whether specified or defaulted.
 void setSpecifiedSharedCacheMode(SharedCacheMode2_0 sharedCacheMode)
          Set the persistence unit's specified shared cache mode.
 void setSpecifiedValidationMode(ValidationMode2_0 validationMode)
          Set the persistence unit's specified validation mode.
 
Methods inherited from interface org.eclipse.jpt.jpa.core.context.persistence.PersistenceUnit
addJarFileRef, addJarFileRef, addPersistentTypes, addProperty, addProperty, addQuery, addSpecifiedClassRef, addSpecifiedClassRef, addSpecifiedMappingFileRef, addSpecifiedMappingFileRef, convertJavaGenerators, convertJavaQueries, createJpqlQueryHelper, dispose, excludesUnlistedClasses, findInsertLocationForMappingFileRef, getClassRefs, getClassRefsSize, getDefaultAccess, getDefaultCascadePersist, getDefaultCatalog, getDefaultExcludeUnlistedClasses, getDefaultSchema, getDefaultTransactionType, getDescription, getEmbeddable, getEntities, getEntity, getGenerators, getGeneratorsSize, getImpliedClassRefs, getImpliedClassRefsSize, getImpliedMappingFileRef, getJarFileRefs, getJarFileRefsSize, getJavaPersistentTypes, getJtaDataSource, getMappingFileRefs, getMappingFileRefsContaining, getMappingFileRefsSize, getName, getNonJtaDataSource, getPackageNames, getParent, getProperties, getPropertiesNamed, getPropertiesSize, getPropertiesWithNamePrefix, getProperty, getProvider, getQueries, getQueriesSize, getSpecifiedClassRefs, getSpecifiedClassRefsSize, getSpecifiedExcludeUnlistedClasses, getSpecifiedMappingFileRefs, getSpecifiedMappingFileRefsSize, getSpecifiedTransactionType, getTransactionType, getUniqueGeneratorNames, getXmlPersistenceUnit, hasConvertibleJavaGenerators, hasConvertibleJavaQueries, isXmlMappingMetadataComplete, propertyNameChanged, propertyValueChanged, removeJarFileRef, removeJarFileRef, removeProperty, removeProperty, removeProperty, removeSpecifiedClassRef, removeSpecifiedClassRef, removeSpecifiedClassRefs, removeSpecifiedMappingFileRef, removeSpecifiedMappingFileRef, setDescription, setJtaDataSource, setName, setNonJtaDataSource, setProperty, setProperty, setProvider, setSpecifiedExcludeUnlistedClasses, setSpecifiedTransactionType, specifiesManagedType, synchronizeClasses, validatesAgainstDatabase
 
Methods inherited from interface org.eclipse.jpt.jpa.core.JpaStructureNode
addRootStructureNodesTo, containsOffset, getChildren, getChildrenSize, getContextType, getFullTextRange, getSelectionTextRange, getStructureNode, getType
 
Methods inherited from interface org.eclipse.jpt.jpa.core.context.JpaContextModel
getCompletionProposals, getContextDefaultDbCatalog, getContextDefaultDbSchema, getContextDefaultDbSchemaContainer, getMappingFileRoot, getPersistenceUnit, getValidationTextRange, synchronizeWithResourceModel, update, validate
 
Methods inherited from interface org.eclipse.jpt.jpa.core.JpaModel
getJpaPlatform, getJpaProject, getJpaProjectManager, getResource, stateChanged
 
Methods inherited from interface org.eclipse.jpt.common.utility.model.Model
addChangeListener, addCollectionChangeListener, addListChangeListener, addPropertyChangeListener, addStateChangeListener, removeChangeListener, removeCollectionChangeListener, removeListChangeListener, removePropertyChangeListener, removeStateChangeListener
 
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
 
Methods inherited from interface org.eclipse.jpt.common.core.JptResourceTypeReference
getResourceType
 
Methods inherited from interface org.eclipse.jpt.jpa.core.context.PersistentTypeContainer
getPersistentType, getPersistentTypes
 
Methods inherited from interface org.eclipse.jpt.jpa.core.context.ManagedTypeContainer
getManagedType, getManagedTypes
 
Methods inherited from interface org.eclipse.jpt.jpa.core.context.persistence.MappingFileRefactoringParticipant
createDeleteMappingFileEdits, createMoveFolderEdits, createMoveMappingFileEdits, createRenameFolderEdits, createRenameMappingFileEdits
 
Methods inherited from interface org.eclipse.jpt.jpa.core.context.DeleteTypeRefactoringParticipant
createDeleteTypeEdits
 
Methods inherited from interface org.eclipse.jpt.jpa.core.context.TypeRefactoringParticipant
createMoveTypeEdits, createRenamePackageEdits, createRenameTypeEdits
 
Methods inherited from interface org.eclipse.jpt.jpa.core.jpa2.JpaMetamodelSynchronizer2_0
disposeMetamodel, initializeMetamodel, synchronizeMetamodel
 

Field Detail

SPECIFIED_SHARED_CACHE_MODE_PROPERTY

static final 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 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 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 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 ValidationMode2_0 DEFAULT_VALIDATION_MODE

DEFAULT_DELIMITED_IDENTIFIERS_PROPERTY

static final 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

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


getSpecifiedSharedCacheMode

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


setSpecifiedSharedCacheMode

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


getDefaultSharedCacheMode

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


calculateDefaultCacheable

boolean calculateDefaultCacheable()

getValidationMode

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


getSpecifiedValidationMode

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


setSpecifiedValidationMode

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


getDefaultValidationMode

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


getConnection

Connection2_0 getConnection()

getOptions

Options2_0 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.


Dali Provisional API
Release 3.2

Copyright (c) 2012 Oracle. All rights reserved.