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
| 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 |
| 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 |
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
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.
Copyright (c) 2012 Oracle. All rights reserved.