Dali Provisional API
Release 3.2

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

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

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

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.common.core.JptResourceTypeReference
JptResourceTypeReference.ResourceTypeTransformer
 
Nested classes/interfaces inherited from interface org.eclipse.jpt.jpa.core.context.persistence.PersistentTypeContainer
PersistentTypeContainer.PersistentTypesTransformer
 
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.MetamodelSynchronizer
MetamodelSynchronizer.MetamodelTools, MetamodelSynchronizer.Null
 
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 ValidationMode 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
RESOURCE_TYPE_TRANSFORMER
 
Fields inherited from interface org.eclipse.jpt.jpa.core.context.persistence.PersistentTypeContainer
TRANSFORMER
 
Fields inherited from interface org.eclipse.jpt.jpa.core.jpa2.MetamodelSynchronizer
METAMODEL_GENERATED_ANNOTATION_VALUE
 
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.jpa.core.context.persistence.PersistenceUnit
addJarFileRef, addJarFileRef, 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
containsOffset, gatherRootStructureNodes, getChildren, getChildrenSize, getContextType, getFullTextRange, getSelectionTextRange, getStructureNode, getType
 
Methods inherited from interface org.eclipse.jpt.jpa.core.context.JpaContextNode
getCompletionProposals, getContextDefaultDbCatalog, getContextDefaultDbSchema, getContextDefaultDbSchemaContainer, getMappingFileRoot, getPersistenceUnit, getValidationTextRange, synchronizeWithResourceModel, update, validate
 
Methods inherited from interface org.eclipse.jpt.jpa.core.JpaNode
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.persistence.PersistentTypeContainer
getPersistentType, getPersistentTypes
 
Methods inherited from interface org.eclipse.jpt.jpa.core.context.persistence.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.MetamodelSynchronizer
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 ValidationMode 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

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.


Dali Provisional API
Release 3.2

Copyright (c) 2012 Oracle. All rights reserved.