Dali Provisional API
Release 3.2

org.eclipse.jpt.jpa.eclipselink.core.context.persistence
Class EclipseLinkPersistenceUnit

java.lang.Object
  extended by org.eclipse.jpt.common.utility.internal.model.AbstractModel
      extended by org.eclipse.jpt.jpa.core.internal.AbstractJpaModel<P>
          extended by org.eclipse.jpt.jpa.core.internal.context.AbstractJpaContextModel<P>
              extended by org.eclipse.jpt.jpa.core.internal.context.persistence.AbstractPersistenceXmlContextModel<Persistence>
                  extended by org.eclipse.jpt.jpa.core.internal.context.persistence.AbstractPersistenceUnit
                      extended by org.eclipse.jpt.jpa.eclipselink.core.context.persistence.EclipseLinkPersistenceUnit
All Implemented Interfaces:
IAdaptable, JptResourceTypeReference, Model, DeleteTypeRefactoringParticipant, JpaContextModel, ManagedTypeContainer, MappingFileRefactoringParticipant, PersistenceUnit, PersistentTypeContainer, TypeRefactoringParticipant, PersistenceUnit2_0, JpaMetamodelSynchronizer2_0, org.eclipse.jpt.jpa.core.jpa2_1.context.persistence.PersistenceUnit2_1, JpaModel, JpaStructureNode

public class EclipseLinkPersistenceUnit
extends org.eclipse.jpt.jpa.core.internal.context.persistence.AbstractPersistenceUnit

EclipseLink persistence unit


Nested Class Summary
static class EclipseLinkPersistenceUnit.ConverterEquivalencyAdapter
           
static interface EclipseLinkPersistenceUnit.EquivalencyAdapter<T>
           
static class EclipseLinkPersistenceUnit.GeneratorEquivalencyAdapter
           
static class EclipseLinkPersistenceUnit.MappingFileConvertersTransformer
           
static class EclipseLinkPersistenceUnit.PropertyNameDoesNotEndWith
           
static class EclipseLinkPersistenceUnit.QueryEquivalencyAdapter
           
static class EclipseLinkPersistenceUnit.TypeMappingConvertersTransformer
           
 
Nested classes/interfaces inherited from class org.eclipse.jpt.jpa.core.internal.context.persistence.AbstractPersistenceUnit
org.eclipse.jpt.jpa.core.internal.context.persistence.AbstractPersistenceUnit.DoesNotSpecifyManagedType, org.eclipse.jpt.jpa.core.internal.context.persistence.AbstractPersistenceUnit.ImpliedClassRefContainerAdapter, org.eclipse.jpt.jpa.core.internal.context.persistence.AbstractPersistenceUnit.JarFileRefContainerAdapter, org.eclipse.jpt.jpa.core.internal.context.persistence.AbstractPersistenceUnit.NonPersistentMetamodelSourceType, org.eclipse.jpt.jpa.core.internal.context.persistence.AbstractPersistenceUnit.PropertyContainer, org.eclipse.jpt.jpa.core.internal.context.persistence.AbstractPersistenceUnit.PropertyContainerAdapter, org.eclipse.jpt.jpa.core.internal.context.persistence.AbstractPersistenceUnit.SpecifiedClassRefContainerAdapter, org.eclipse.jpt.jpa.core.internal.context.persistence.AbstractPersistenceUnit.SpecifiedMappingFileRefContainer, org.eclipse.jpt.jpa.core.internal.context.persistence.AbstractPersistenceUnit.SpecifiedMappingFileRefContainerAdapter, org.eclipse.jpt.jpa.core.internal.context.persistence.AbstractPersistenceUnit.TypeIsPersistentType
 
Nested classes/interfaces inherited from class org.eclipse.jpt.jpa.core.internal.context.AbstractJpaContextModel
org.eclipse.jpt.jpa.core.internal.context.AbstractJpaContextModel.AbstractContainerAdapter<C,R>, org.eclipse.jpt.jpa.core.internal.context.AbstractJpaContextModel.Container<C,R>, org.eclipse.jpt.jpa.core.internal.context.AbstractJpaContextModel.ContextCollectionContainer<C extends JpaContextModel,R>, org.eclipse.jpt.jpa.core.internal.context.AbstractJpaContextModel.ContextContainer<C extends JpaContextModel,R>, org.eclipse.jpt.jpa.core.internal.context.AbstractJpaContextModel.ContextListContainer<C extends JpaContextModel,R>, org.eclipse.jpt.jpa.core.internal.context.AbstractJpaContextModel.SpecifiedContextCollectionContainer<C extends JpaContextModel,R>, org.eclipse.jpt.jpa.core.internal.context.AbstractJpaContextModel.SpecifiedContextListContainer<C extends JpaContextModel,R>, org.eclipse.jpt.jpa.core.internal.context.AbstractJpaContextModel.ValueListContainer<E>, org.eclipse.jpt.jpa.core.internal.context.AbstractJpaContextModel.VirtualContextCollectionContainer<C extends JpaContextModel,R>, org.eclipse.jpt.jpa.core.internal.context.AbstractJpaContextModel.VirtualContextListContainer<C extends JpaContextModel,R>
 
Nested classes/interfaces inherited from class org.eclipse.jpt.jpa.core.internal.AbstractJpaModel
org.eclipse.jpt.jpa.core.internal.AbstractJpaModel.AspectChangeSupportListener
 
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
protected static EclipseLinkPersistenceUnit.EquivalencyAdapter<EclipseLinkConverter> CONVERTER_EQUIVALENCY_ADAPTER
           
protected  Vector<EclipseLinkConverter> converters
           
static String CONVERTERS_COLLECTION
          String constant associated with changes to the persistence unit's collection of "global" converters.
static String DEFAULT_GET_METHOD_PROPERTY
          String constant associated with changes to the persistence unit's default get method.
static String DEFAULT_SET_METHOD_PROPERTY
          String constant associated with changes to the persistence unit's default set method.
static String DEFAULT_TENANT_DISCRIMINATOR_COLUMNS_LIST
          String constant associated with changes to the persistence unit's list of default tenant discriminator Columns
protected  String defaultGetMethod
           
protected  String defaultSetMethod
           
protected  Vector<EclipseLinkTenantDiscriminatorColumn2_3> defaultTenantDiscriminatorColumns
           
protected static EclipseLinkPersistenceUnit.EquivalencyAdapter<Generator> GENERATOR_EQUIVALENCY_ADAPTER
           
static String IMPLIED_ECLIPSELINK_MAPPING_FILE_REF_PROPERTY
          String constant associated with changes to the implied eclipselink mapping file ref
protected  MappingFileRef impliedEclipseLinkMappingFileRef
          Will be null if the implied EL mapping file should not be part of the context model.
static org.eclipse.jpt.common.utility.transformer.Transformer<MappingFile,Iterable<EclipseLinkConverter>> MAPPING_FILE_CONVERTERS_TRANSFORMER
           
protected  MappingFileRef potentialImpliedEclipseLinkMappingFileRef
          Store the implied EL mapping file ref even if it is not part of the context model.
protected static EclipseLinkPersistenceUnit.EquivalencyAdapter<Query> QUERY_EQUIVALENCY_ADAPTER
           
static org.eclipse.jpt.common.utility.transformer.Transformer<TypeMapping,Iterable<EclipseLinkConverter>> TYPE_MAPPING_CONVERTERS_TRANSFORMER
           
 
Fields inherited from class org.eclipse.jpt.jpa.core.internal.context.persistence.AbstractPersistenceUnit
CLASS_REF_MANAGED_TYPE_TRANSFORMER, connection, defaultAccess, defaultCascadePersist, defaultCatalog, defaultDelimitedIdentifiers, defaultSchema, defaultSharedCacheMode, defaultTransactionType, defaultValidationMode, description, generators, impliedClassRefContainer, impliedMappingFileRef, jarFileRefContainer, jtaDataSource, managedTypeMap, metamodelFiles, name, nonJtaDataSource, options, potentialImpliedMappingFileRef, propertyContainer, provider, queries, schemaGeneration, specifiedClassRefContainer, specifiedExcludeUnlistedClasses, specifiedMappingFileRefContainer, specifiedSharedCacheMode, specifiedTransactionType, specifiedValidationMode, structureChildren, TYPE_IS_PERSISTENT_TYPE, xmlMappingMetadataComplete, xmlPersistenceUnit
 
Fields inherited from class org.eclipse.jpt.jpa.core.internal.AbstractJpaModel
parent
 
Fields inherited from class org.eclipse.jpt.common.utility.internal.model.AbstractModel
changeSupport
 
Fields inherited from interface org.eclipse.jpt.jpa.core.jpa2.context.persistence.PersistenceUnit2_0
DEFAULT_DELIMITED_IDENTIFIERS_PROPERTY, DEFAULT_SHARED_CACHE_MODE_PROPERTY, DEFAULT_VALIDATION_MODE, DEFAULT_VALIDATION_MODE_PROPERTY, SPECIFIED_SHARED_CACHE_MODE_PROPERTY, SPECIFIED_VALIDATION_MODE_PROPERTY
 
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
STRUCTURE_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
 
Constructor Summary
EclipseLinkPersistenceUnit(Persistence parent, org.eclipse.jpt.jpa.core.resource.persistence.XmlPersistenceUnit xmlPersistenceUnit)
           
 
Method Summary
protected
<T> boolean
allAreEquivalent(ArrayList<T> collection, EclipseLinkPersistenceUnit.EquivalencyAdapter<T> adapter)
          Using the specified adapter, return whether all the specified objects are "equivalent" (i.e. they all have the same state).
protected
<T> boolean
anyAreInequivalent(ArrayList<T> collection, EclipseLinkPersistenceUnit.EquivalencyAdapter<T> adapter)
           
protected  Iterable<EclipseLinkConverter> buildConverters()
          Converters are much like queries.
protected  String buildDefaultGetMethod(EclipseLinkPersistenceUnitDefaults defaults)
           
protected  String buildDefaultSetMethod(EclipseLinkPersistenceUnitDefaults defaults)
           
protected  SharedCacheMode2_0 buildDefaultSharedCacheMode()
           
protected  org.eclipse.jpt.common.utility.iterable.ListIterable<EclipseLinkTenantDiscriminatorColumn2_3> buildDefaultTenantDiscriminatorColumns(EclipseLinkPersistenceUnitDefaults defaults)
           
protected  org.eclipse.jpt.jpa.eclipselink.core.internal.context.persistence.EclipseLinkCaching buildEclipseLinkCaching()
           
protected  EclipseLinkConnection buildEclipseLinkConnection1_0()
           
protected  org.eclipse.jpt.jpa.eclipselink.core.internal.context.persistence.EclipseLinkCustomization buildEclipseLinkCustomization()
           
protected  org.eclipse.jpt.jpa.eclipselink.core.internal.context.persistence.EclipseLinkGeneralProperties buildEclipseLinkGeneralProperties()
           
protected  EclipseLinkLogging buildEclipseLinkLogging()
           
protected  EclipseLinkOptions buildEclipseLinkOptions1_0()
           
protected  EclipseLinkSchemaGeneration buildEclipseLinkSchemaGeneration()
           
protected  int calculateCumulativeSize(Collection<? extends Collection<?>> collections)
           
 boolean calculateDefaultCacheable()
           
protected  void checkForConvertersWithSameName(List<IMessage> messages)
           
 void convertJavaConverters(EclipseLinkEntityMappings entityMappings, IProgressMonitor monitor)
          Override the default implementation because EclipseLink allows "equivalent" converters.
protected  void convertJavaConvertersWithSameName(EclipseLinkOrmConverterContainer ormConverterContainer, Map.Entry<String,ArrayList<EclipseLinkConverter>> entry, SubMonitor monitor)
           
 void convertJavaGenerators(EntityMappings entityMappings, IProgressMonitor monitor)
          Override the default implementation because EclipseLink allows "equivalent" generators.
protected  void convertJavaGeneratorsWithSameName(EntityMappings entityMappings, Map.Entry<String,ArrayList<Generator>> entry, SubMonitor monitor)
           
 void convertJavaQueries(EntityMappings entityMappings, IProgressMonitor monitor)
          Override the default implementation because EclipseLink allows "equivalent" queries.
protected  void convertJavaQueriesWithSameName(OrmQueryContainer queryContainer, Map.Entry<String,ArrayList<Query>> entry, SubMonitor monitor)
           
 JpaJpqlQueryHelper createJpqlQueryHelper()
          Creates a new JpaJpqlQueryHelper that provides functionality related to JPQL queries.
protected  Iterable<ReplaceEdit> createPersistenceUnitPropertiesMoveTypeEdits(IType originalType, IPackageFragment newPackage)
           
protected  Iterable<ReplaceEdit> createPersistenceUnitPropertiesRenamePackageEdits(IPackageFragment originalPackage, String newName)
           
protected  Iterable<ReplaceEdit> createPersistenceUnitPropertiesRenameTypeEdits(IType originalType, String newName)
           
protected
<M extends JpaNamedContextModel>
HashMap<String,ArrayList<M>>
extractEclipseLinkConvertibleJavaModels(Iterable<M> allJavaModels, Iterable<M> mappingFileModels, EclipseLinkPersistenceUnit.EquivalencyAdapter<M> adapter)
          Return the Java nodes that are neither overridden nor duplicated (by default any Java nodes with the same name are "duplicates"); but, in EclipseLink we return any "equivalent" nodes also.
 Iterable<EclipseLinkConverter> getAllConverters()
          Return the "active" converters defined within the persistence unit's scope, including converters with duplicate names.
 Iterable<EclipseLinkConverter> getAllJavaConverters()
          Include "overridden" Java converters.
 org.eclipse.jpt.jpa.eclipselink.core.internal.context.persistence.EclipseLinkCaching getCaching()
           
 EclipseLinkConnection2_0 getConnection()
           
 EclipseLinkPersistenceXmlContextModelFactory getContextModelFactory()
           
protected  Iterable<String> getConverterNames()
           
 Iterable<EclipseLinkConverter> getConverters()
           
 int getConvertersSize()
           
 org.eclipse.jpt.jpa.eclipselink.core.internal.context.persistence.EclipseLinkCustomization getCustomization()
           
 String getDefaultCacheSharedPropertyValue()
           
 String getDefaultCacheSizePropertyValue()
           
 String getDefaultCacheTypePropertyValue()
           
 String getDefaultGetMethod()
           
 String getDefaultSetMethod()
           
 org.eclipse.jpt.common.utility.iterable.ListIterable<EclipseLinkTenantDiscriminatorColumn2_3> getDefaultTenantDiscriminatorColumns()
           
 EclipseLinkConnection getEclipseLinkConnection()
           
protected  HashMap<String,ArrayList<EclipseLinkConverter>> getEclipseLinkConvertibleJavaConverters()
           
protected  HashMap<String,ArrayList<Generator>> getEclipseLinkConvertibleJavaGenerators()
           
protected  HashMap<String,ArrayList<Query>> getEclipseLinkConvertibleJavaQueries()
           
 Iterable<String> getEclipseLinkDynamicPersistentTypeNames()
           
 Iterable<EclipseLinkOrmPersistentType> getEclipseLinkDynamicPersistentTypes()
           
protected  org.eclipse.jpt.jpa.eclipselink.core.internal.context.orm.EclipseLinkOrmPersistenceUnitMetadata getEclipseLinkMetadata()
           
 EclipseLinkOptions getEclipseLinkOptions()
           
 Iterable<EclipseLinkOrmPersistentType> getEclipseLinkOrmPersistentTypes()
           
 EclipseLinkSchemaGeneration getEclipseLinkSchemaGeneration()
           
 org.eclipse.jpt.jpa.eclipselink.core.internal.context.persistence.EclipseLinkGeneralProperties getGeneralProperties()
           
 MappingFileRef getImpliedEclipseLinkMappingFileRef()
           
 EclipseLinkJpaProject getJpaProject()
          Return the JPA project the node belongs to.
protected  ArrayList<PersistenceUnit.Property> getLegacyDescriptorCustomizerProperties()
           
protected  ArrayList<PersistenceUnit.Property> getLegacyEntityCachingProperties()
           
 EclipseLinkLogging getLogging()
           
protected  Iterable<EclipseLinkConverter> getMappingFileConverters()
           
 org.eclipse.jpt.common.utility.iterable.ListIterable<MappingFileRef> getMappingFileRefs()
          Return the persistence unit's list of mapping file refs, both specified and implied.
 int getMappingFileRefsSize()
          Return the size of the persistence unit's list of mapping file refs, both specified and implied.
protected  Iterable<String> getNonEmptyConverterNames()
           
 EclipseLinkOptions2_0 getOptions()
           
 Iterable<String> getUniqueConverterNames()
          Return the names of the "active" converters defined in the persistence unit's scope, with duplicates removed.
 boolean hasAnyEquivalentJavaConverters()
          Return whether the persistence unit has any equivalent Java generators.
 boolean hasAnyEquivalentJavaGenerators()
          Return whether the persistence unit has any equivalent Java generators.
protected
<M extends JpaNamedContextModel>
boolean
hasAnyEquivalentJavaModels(Iterable<M> allJavaModels, Iterable<M> mappingFileModels, EclipseLinkPersistenceUnit.EquivalencyAdapter<M> adapter)
           
 boolean hasAnyEquivalentJavaQueries()
          Return whether the persistence unit has any equivalent Java generators.
 boolean hasConvertibleJavaConverters()
           
 boolean hasConvertibleJavaGenerators()
          Return whether the persistence unit contains any "convertible" generators (i.e.
 boolean hasConvertibleJavaQueries()
          Return whether the persistence unit contains any "convertible" queries.
protected  boolean impliedEclipseLinkMappingFileExists()
           
protected  boolean impliedEclipseLinkMappingFileIsExcluded()
           
protected  boolean impliedEclipseLinkMappingFileIsNotExcluded()
           
protected  boolean impliedEclipseLinkMappingFileIsNotSpecified()
           
protected  boolean impliedEclipseLinkMappingFileIsSpecified()
           
protected  void initializeProperties()
           
 void propertyRemoved(String propertyName)
           
 void propertyValueChanged(String propertyName, String newValue)
          Call back method for Property value changing.
protected  void setConverters(Iterable<EclipseLinkConverter> converters)
           
protected  void setDefaultGetMethod(String getMethod)
           
protected  void setDefaultSetMethod(String setMethod)
           
protected  void setDefaultTenantDiscriminatorColumns(Iterable<EclipseLinkTenantDiscriminatorColumn2_3> tenantDiscriminatorColumns)
           
protected  void setImpliedEclipseLinkMappingFileRef(MappingFileRef mappingFileRef)
           
 void setSpecifiedSharedCacheMode(SharedCacheMode2_0 specifiedSharedCacheMode)
          Set the persistence unit's specified shared cache mode.
protected  void syncImpliedMappingFileRef()
           
 void update()
          Some non-trivial state in the JPA project has changed; update the state of the context model that is dependent on yet other parts of the model's JPA project.
protected  void updateImpliedMappingFileRef()
           
protected  void updatePersistenceUnitMetadata()
           
protected  void validate(EclipseLinkConverter converter, List<IMessage> messages, IReporter reporter)
           
 void validate(List<IMessage> messages, IReporter reporter)
          Add the model's validation messages to the specified "collecting parameter".
protected  void validateConverters(List<IMessage> messages, IReporter reporter)
          NB: We validate converters here.
protected  void validateConvertersWithSameName(String converterName, ArrayList<EclipseLinkConverter> dups, List<IMessage> messages)
          NB: Unlike generators and queries, we do not mark "equivalent" converters with info messages - we just ignore them because they cannot be "portable" (since only EclipseLink has converters).
protected  void validateDefaultCachingProperty(PersistenceUnit.Property cachingProperty, List<IMessage> messages)
           
protected  void validateGeneratorsWithSameName(String generatorName, ArrayList<Generator> dups, List<IMessage> messages)
          If all the generators are "equivalent" add info messages; otherwise mark them all as duplicates.
protected  void validateLoggerProperty(PersistenceUnit.Property loggerProperty, List<IMessage> messages)
           
protected  void validateProperties(List<IMessage> messages, IReporter reporter)
           
protected  void validateQueriesWithSameName(String queryName, ArrayList<Query> dups, List<IMessage> messages)
           
 
Methods inherited from class org.eclipse.jpt.jpa.core.internal.context.persistence.AbstractPersistenceUnit
addClasses, addJarFileRef, addJarFileRef, addPersistentTypes, addPersistentTypesTo, addProperty_, addProperty, addProperty, addProperty, addQuery, addRootStructureNodesTo, addSpecifiedClassRef, addSpecifiedClassRef, addSpecifiedClassRefs, addSpecifiedClassRefs, addSpecifiedMappingFileRef, addSpecifiedMappingFileRef, annotateClasses, buildClassRef, buildClassRef, buildConnection, buildDefaultCascadePersist, buildDefaultCatalog, buildDefaultDelimitedIdentifiers, buildDefaultSchema, buildDefaultTransactionType, buildDefaultValidationMode, buildGenerators, buildImpliedClassRefContainer, buildImpliedMappingFileRef, buildJarFileRef, buildJarFileRefContainer, buildNonPersistentMetamodelSourceType, buildOptions, buildProperty, buildPropertyContainer, buildQueries, buildSchemaGeneration, buildSpecifiedClassRefContainer, buildSpecifiedMappingFileRef, buildSpecifiedMappingFileRefContainer, buildSpecifiedSharedCacheMode, buildSpecifiedTransactionType, buildSpecifiedValidationMode, buildXmlJarFileRef, buildXmlJavaClassRef, buildXmlMappingFileRef, buildXmlMappingMetadataComplete, buildXmlProperties, buildXmlProperty, checkForDuplicateClassRefs, checkForDuplicateJarFileRefs, checkForDuplicateMappingFileClasses, checkForDuplicateMappingFileRefs, checkForGeneratorsWithSameName, checkForMultiplePersistenceUnitMetadata, checkForQueriesWithSameName, containsOffset, convertJavaGenerator, convertJavaQuery, convertToClassNames, convertToNames, createDeleteMappingFileEdits, createDeleteTypeEdits, createMappingFileRefMoveFolderReplaceEdits, createMappingFileRefRenameFolderEdits, createMoveFolderEdits, createMoveMappingFileEdits, createMoveTypeEdits, createRenameFolderEdits, createRenameMappingFileEdits, createRenamePackageEdits, createRenameTypeEdits, createSpecifiedClassRefMoveTypeEdits, createSpecifiedClassRefRenamePackageEdits, createSpecifiedClassRefRenameTypeEdits, deleteMetamodelFile_, deleteMetamodelFile, dispose, disposeMetamodel, excludesUnlistedClasses, extractConvertibleJavaModels, fileIsGeneratedMetamodel, filterToEntities_, filterToEntities, findInsertLocationForMappingFileRef, findJdtType, getActiveEntities, getActiveTypeMappings, getAllJavaGenerators, getAllJavaPersistentTypesUnique, getAllJavaQueries, getAllJavaTypeMappingsUnique, getClassRefManagedTypes_, getClassRefManagedTypes, getClassRefPersistentTypes, getClassRefPersistentTypes2_0, getClassRefs, getClassRefsSize, getCombinedMappingFileRefs, getCombinedMappingFileRefsSize, getContextType, getConvertibleJavaGenerators, getConvertibleJavaQueries, getDefaultAccess, getDefaultCascadePersist, getDefaultCatalog, getDefaultDelimitedIdentifiers, getDefaultExcludeUnlistedClasses, getDefaultSchema, getDefaultSharedCacheMode, getDefaultTransactionType, getDefaultValidationMode, getDescription, getEmbeddable, getEntities, getEntity, getFullTextRange, getGeneratedMetamodelFiles, getGeneratedMetamodelTopLevelTypes, getGeneratorNames, getGenerators, getGeneratorsSize, getIdTypeMapping, getImpliedClassRefs, getImpliedClassRefsSize, getImpliedClassResourceTypes_, getImpliedClassResourceTypes, getImpliedMappingFileRef, getJarFileManagedTypes, getJarFilePersistentTypes, getJarFilePersistentTypes2_0, getJarFileRefs, getJarFileRefsSize, getJavaManagedTypes, getJavaPersistentTypes, getJavaTypeMappingDefinition, getJavaTypeMappings, getJtaDataSource, getManagedType, getManagedTypes, getMappingFileGenerators, getMappingFileJavaPersistentTypes_, getMappingFileJavaPersistentTypes, getMappingFileManagedTypes, getMappingFilePersistentTypes, getMappingFilePersistentTypes2_0, getMappingFileQueries, getMappingFileRefsContaining, getMappingFiles_, getMappingFiles, getMappingFileTypeMappings, getMappingFileTypeNames, getMetadata, getMetamodelClassRefPersistentTypes, getMetamodelJarFilePersistentTypes, getMetamodelMappingFilePersistentTypes, getMetamodelPersistentTypes, getName, getNonEmptyGeneratorNames, getNonJtaDataSource, getPackageNames, getPersistence, getPersistenceUnit, getPersistenceUnitMetadataMappingFileRefs, getPersistentType, getPersistentTypes, getProperties, getPropertiesNamed, getPropertiesSize, getPropertiesWithNamePrefix, getProperty, getProvider, getQueries, getQueriesSize, getSchemaGeneration, getSelectionTextRange, getSharedCacheMode, getSpecifiedClassRefs, getSpecifiedClassRefsSize, getSpecifiedExcludeUnlistedClasses, getSpecifiedMappingFileRefs, getSpecifiedMappingFileRefsSize, getSpecifiedSharedCacheMode, getSpecifiedTransactionType, getSpecifiedValidationMode, getStructureChildren, getStructureChildrenSize, getStructureNode, getStructureType, getTransactionType, getTypeMapping, getTypeMappings, getUniqueGeneratorNames, getValidationMode, getValidationTextRange, getXmlClassRefs, getXmlJarFileRefs, getXmlMappingFileRefs, getXmlPersistenceUnit, getXmlProperties, impliedMappingFileExists, impliedMappingFileIsNotSpecified, impliedMappingFileIsSpecified, initializeMetamodel, initializeMetamodelFiles_, initializeMetamodelFiles, initializeStructureChildren, isXmlMappingMetadataComplete, listInPersistenceXml, mapByName, mapClassRefsByName, mapJarFileRefsByName, mapMappingFileManagedTypesByName, mapMappingFileRefsByFileName, mappingFileIsSpecified, mapTypeMappingsByClassName, mapTypeMappingsByName, propertyAdded, propertyNameChanged, rebuildManagedTypeMap, removeJarFileRef_, removeJarFileRef, removeJarFileRef, removeProperty_, removeProperty, removeProperty, removeProperty, removeProperty, removeSpecifiedClassRef_, removeSpecifiedClassRef, removeSpecifiedClassRef, removeSpecifiedClassRefs, removeSpecifiedMappingFileRef_, removeSpecifiedMappingFileRef, removeSpecifiedMappingFileRef, selectSourceType, setDefaultAccess, setDefaultCascadePersist, setDefaultCatalog, setDefaultDelimitedIdentifiers, setDefaultSchema, setDefaultSharedCacheMode, setDefaultTransactionType, setDefaultValidationMode, setDescription_, setDescription, setGenerators, setImpliedMappingFileRef, setJtaDataSource_, setJtaDataSource, setName_, setName, setNonJtaDataSource_, setNonJtaDataSource, setProperty, setProperty, setProvider_, setProvider, setQueries, setSpecifiedExcludeUnlistedClasses_, setSpecifiedExcludeUnlistedClasses, setSpecifiedSharedCacheMode_, setSpecifiedTransactionType_, setSpecifiedTransactionType, setSpecifiedValidationMode_, setSpecifiedValidationMode, setXmlMappingMetadataComplete, specifiesManagedType, synchronizeClasses, synchronizeMetamodel, synchronizeWithResourceModel, syncJarFileRefs, syncProperties, syncSpecifiedClassRefs, syncSpecifiedMappingFileRefs, toString, updateImpliedClassRefs, updateStructureChildren, usesImpliedMappingFile, validate, validate, validateClassRefs, validateEntitiesWithSameName, validateEntityNames, validateGenerators, validateJarFileRefs, validateMappingFiles, validateQueries, validatesAgainstDatabase
 
Methods inherited from class org.eclipse.jpt.jpa.core.internal.context.persistence.AbstractPersistenceXmlContextModel
getContextModelFactory2_0, getContextModelFactory2_1, getPersistenceXmlDefinition, getResourceModelFactory, isPersistenceXml2_0Compatible, isPersistenceXml2_1Compatible
 
Methods inherited from class org.eclipse.jpt.jpa.core.internal.context.AbstractJpaContextModel
addItemsToCollection, addItemsToList, addItemToCollection, addItemToList, buildSpecifiedContextCollectionContainer, buildSpecifiedContextListContainer, buildValidationMessage, buildValidationMessage, buildValidationMessage, buildValidationMessage, buildValidationMessage, buildValidationMessage, buildValidationMessage, buildValidationMessage, buildVirtualContextCollectionContainer, buildVirtualContextListContainer, clearList, getCompletionProposals, getConnectedCompletionProposals, getContextDefaultCatalog, getContextDefaultDbCatalog, getContextDefaultDbSchema, getContextDefaultDbSchemaContainer, getContextDefaultSchema, getMappingFileRoot, getResourceType, getValidationTextRange, moveItemInList, moveItemInList, removeItemFromCollection, removeItemFromList, removeItemFromList, removeItemsFromCollection, removeItemsFromList, synchronizeModelsWithResourceModel, updateModels, validateModel, validateModels
 
Methods inherited from class org.eclipse.jpt.jpa.core.internal.AbstractJpaModel
addNonUpdateAspectNamesTo, aspectChanged, aspectDoesNotTriggerUpdate, aspectTriggersUpdate, buildChangeSupport, buildChangeSupportListener, checkParent, connectionProfileIsActive, forbidsParent, getAdapter, getDatabase, getDataSource, getJavaProject, getJpaFactory, getJpaFactory2_0, getJpaFactory2_1, getJpaFile, getJpaPlatform, getJpaPlatformVariation, getJpaPlatformVersion, getJpaProjectManager, getResource, isJpa2_0Compatible, isJpa2_1Compatible, nonUpdateAspectNames, requiresParent, resolveDbCatalog, stateChanged
 
Methods inherited from class org.eclipse.jpt.common.utility.internal.model.AbstractModel
addChangeListener, addCollectionChangeListener, addItemsToCollection, addItemsToCollection, addItemsToCollection, addItemsToList, addItemsToList, addItemsToList, addItemsToList, addItemsToList, addItemsToList, addItemsToList, addItemToList, addListChangeListener, addPropertyChangeListener, addStateChangeListener, clearCollection, fireCollectionChanged, fireCollectionChanged, fireCollectionCleared, fireCollectionCleared, fireItemAdded, fireItemAdded, fireItemMoved, fireItemRemoved, fireItemRemoved, fireItemReplaced, fireItemsAdded, fireItemsAdded, fireItemsAdded, fireItemsAdded, fireItemsMoved, fireItemsMoved, fireItemsRemoved, fireItemsRemoved, fireItemsRemoved, fireItemsRemoved, fireItemsReplaced, fireItemsReplaced, fireListChanged, fireListChanged, fireListCleared, fireListCleared, firePropertyChanged, firePropertyChanged, firePropertyChanged, firePropertyChanged, firePropertyChanged, fireStateChanged, fireStateChanged, hasAnyChangeListeners, hasAnyCollectionChangeListeners, hasAnyListChangeListeners, hasAnyPropertyChangeListeners, hasAnyStateChangeListeners, hasNoChangeListeners, hasNoCollectionChangeListeners, hasNoListChangeListeners, hasNoPropertyChangeListeners, hasNoStateChangeListeners, moveItemsInList, removeChangeListener, removeCollectionChangeListener, removeItemsFromCollection, removeItemsFromCollection, removeItemsFromCollection, removeItemsFromList, removeItemsFromList, removeItemsFromList, removeItemsFromList, removeItemsFromList, removeListChangeListener, removePropertyChangeListener, removeRangeFromList, removeStateChangeListener, replaceItemInList, retainItemsInCollection, retainItemsInCollection, retainItemsInCollection, retainItemsInCollection, retainItemsInList, retainItemsInList, retainItemsInList, retainItemsInList, setItemInList, setItemsInList, setItemsInList, synchronizeCollection, synchronizeCollection, synchronizeCollection, synchronizeList, synchronizeList, synchronizeList, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.jpt.jpa.core.context.JpaContextModel
getCompletionProposals, getContextDefaultDbCatalog, getContextDefaultDbSchema, getContextDefaultDbSchemaContainer, getMappingFileRoot
 
Methods inherited from interface org.eclipse.jpt.jpa.core.JpaModel
getJpaPlatform, 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
 

Field Detail

impliedEclipseLinkMappingFileRef

protected MappingFileRef impliedEclipseLinkMappingFileRef
Will be null if the implied EL mapping file should not be part of the context model. Otherwise will be equal to potentialImpliedEclipseLinkMappingFileRef.

See Also:
potentialImpliedEclipseLinkMappingFileRef

IMPLIED_ECLIPSELINK_MAPPING_FILE_REF_PROPERTY

public static final String IMPLIED_ECLIPSELINK_MAPPING_FILE_REF_PROPERTY
String constant associated with changes to the implied eclipselink mapping file ref

See Also:
Constant Field Values

potentialImpliedEclipseLinkMappingFileRef

protected final MappingFileRef potentialImpliedEclipseLinkMappingFileRef
Store the implied EL mapping file ref even if it is not part of the context model. This allows us to sync it in the syncWithResourceModel. In the update, determine if it should be part of the context model and set the impliedEclipseLinkMappingFileRef appropriately.

See Also:
impliedEclipseLinkMappingFileRef, usesImpliedEclipseLinkMappingFile()

converters

protected final Vector<EclipseLinkConverter> converters

defaultTenantDiscriminatorColumns

protected final Vector<EclipseLinkTenantDiscriminatorColumn2_3> defaultTenantDiscriminatorColumns

defaultGetMethod

protected String defaultGetMethod

defaultSetMethod

protected String defaultSetMethod

DEFAULT_TENANT_DISCRIMINATOR_COLUMNS_LIST

public static final String DEFAULT_TENANT_DISCRIMINATOR_COLUMNS_LIST
String constant associated with changes to the persistence unit's list of default tenant discriminator Columns

See Also:
Constant Field Values

CONVERTERS_COLLECTION

public static final String CONVERTERS_COLLECTION
String constant associated with changes to the persistence unit's collection of "global" converters.

See Also:
Constant Field Values

MAPPING_FILE_CONVERTERS_TRANSFORMER

public static final org.eclipse.jpt.common.utility.transformer.Transformer<MappingFile,Iterable<EclipseLinkConverter>> MAPPING_FILE_CONVERTERS_TRANSFORMER

TYPE_MAPPING_CONVERTERS_TRANSFORMER

public static final org.eclipse.jpt.common.utility.transformer.Transformer<TypeMapping,Iterable<EclipseLinkConverter>> TYPE_MAPPING_CONVERTERS_TRANSFORMER

DEFAULT_GET_METHOD_PROPERTY

public static final String DEFAULT_GET_METHOD_PROPERTY
String constant associated with changes to the persistence unit's default get method.

See Also:
Constant Field Values

DEFAULT_SET_METHOD_PROPERTY

public static final String DEFAULT_SET_METHOD_PROPERTY
String constant associated with changes to the persistence unit's default set method.

See Also:
Constant Field Values

CONVERTER_EQUIVALENCY_ADAPTER

protected static final EclipseLinkPersistenceUnit.EquivalencyAdapter<EclipseLinkConverter> CONVERTER_EQUIVALENCY_ADAPTER

GENERATOR_EQUIVALENCY_ADAPTER

protected static final EclipseLinkPersistenceUnit.EquivalencyAdapter<Generator> GENERATOR_EQUIVALENCY_ADAPTER

QUERY_EQUIVALENCY_ADAPTER

protected static final EclipseLinkPersistenceUnit.EquivalencyAdapter<Query> QUERY_EQUIVALENCY_ADAPTER
Constructor Detail

EclipseLinkPersistenceUnit

public EclipseLinkPersistenceUnit(Persistence parent,
                                  org.eclipse.jpt.jpa.core.resource.persistence.XmlPersistenceUnit xmlPersistenceUnit)
Method Detail

update

public void update()
Description copied from interface: JpaContextModel
Some non-trivial state in the JPA project has changed; update the state of the context model that is dependent on yet other parts of the model's JPA project. If the dependent state changes also, yet another update will be triggered, possibly followed by yet more updates; until the JPA project's state quiesces.

Specified by:
update in interface JpaContextModel
Overrides:
update in class org.eclipse.jpt.jpa.core.internal.context.persistence.AbstractPersistenceUnit

getEclipseLinkMetadata

protected org.eclipse.jpt.jpa.eclipselink.core.internal.context.orm.EclipseLinkOrmPersistenceUnitMetadata getEclipseLinkMetadata()

updatePersistenceUnitMetadata

protected void updatePersistenceUnitMetadata()
Overrides:
updatePersistenceUnitMetadata in class org.eclipse.jpt.jpa.core.internal.context.persistence.AbstractPersistenceUnit

getGeneralProperties

public org.eclipse.jpt.jpa.eclipselink.core.internal.context.persistence.EclipseLinkGeneralProperties getGeneralProperties()

getConnection

public EclipseLinkConnection2_0 getConnection()
Specified by:
getConnection in interface PersistenceUnit2_0
Overrides:
getConnection in class org.eclipse.jpt.jpa.core.internal.context.persistence.AbstractPersistenceUnit

getOptions

public EclipseLinkOptions2_0 getOptions()
Specified by:
getOptions in interface PersistenceUnit2_0
Overrides:
getOptions in class org.eclipse.jpt.jpa.core.internal.context.persistence.AbstractPersistenceUnit

getCustomization

public org.eclipse.jpt.jpa.eclipselink.core.internal.context.persistence.EclipseLinkCustomization getCustomization()

getCaching

public org.eclipse.jpt.jpa.eclipselink.core.internal.context.persistence.EclipseLinkCaching getCaching()

getDefaultCacheTypePropertyValue

public String getDefaultCacheTypePropertyValue()

getDefaultCacheSizePropertyValue

public String getDefaultCacheSizePropertyValue()

getDefaultCacheSharedPropertyValue

public String getDefaultCacheSharedPropertyValue()

getLogging

public EclipseLinkLogging getLogging()

getEclipseLinkSchemaGeneration

public EclipseLinkSchemaGeneration getEclipseLinkSchemaGeneration()

getEclipseLinkConnection

public EclipseLinkConnection getEclipseLinkConnection()

getEclipseLinkOptions

public EclipseLinkOptions getEclipseLinkOptions()

buildEclipseLinkGeneralProperties

protected org.eclipse.jpt.jpa.eclipselink.core.internal.context.persistence.EclipseLinkGeneralProperties buildEclipseLinkGeneralProperties()

buildEclipseLinkCustomization

protected org.eclipse.jpt.jpa.eclipselink.core.internal.context.persistence.EclipseLinkCustomization buildEclipseLinkCustomization()

buildEclipseLinkCaching

protected org.eclipse.jpt.jpa.eclipselink.core.internal.context.persistence.EclipseLinkCaching buildEclipseLinkCaching()

buildEclipseLinkLogging

protected EclipseLinkLogging buildEclipseLinkLogging()

buildEclipseLinkConnection1_0

protected EclipseLinkConnection buildEclipseLinkConnection1_0()

buildEclipseLinkOptions1_0

protected EclipseLinkOptions buildEclipseLinkOptions1_0()

buildEclipseLinkSchemaGeneration

protected EclipseLinkSchemaGeneration buildEclipseLinkSchemaGeneration()

initializeProperties

protected void initializeProperties()
Overrides:
initializeProperties in class org.eclipse.jpt.jpa.core.internal.context.persistence.AbstractPersistenceUnit

propertyValueChanged

public void propertyValueChanged(String propertyName,
                                 String newValue)
Description copied from interface: PersistenceUnit
Call back method for Property value changing.

Specified by:
propertyValueChanged in interface PersistenceUnit
Overrides:
propertyValueChanged in class org.eclipse.jpt.jpa.core.internal.context.persistence.AbstractPersistenceUnit

propertyRemoved

public void propertyRemoved(String propertyName)
Overrides:
propertyRemoved in class org.eclipse.jpt.jpa.core.internal.context.persistence.AbstractPersistenceUnit

getMappingFileRefs

public org.eclipse.jpt.common.utility.iterable.ListIterable<MappingFileRef> getMappingFileRefs()
Description copied from interface: PersistenceUnit
Return the persistence unit's list of mapping file refs, both specified and implied.

Specified by:
getMappingFileRefs in interface PersistenceUnit
Overrides:
getMappingFileRefs in class org.eclipse.jpt.jpa.core.internal.context.persistence.AbstractPersistenceUnit

getMappingFileRefsSize

public int getMappingFileRefsSize()
Description copied from interface: PersistenceUnit
Return the size of the persistence unit's list of mapping file refs, both specified and implied.

Specified by:
getMappingFileRefsSize in interface PersistenceUnit
Overrides:
getMappingFileRefsSize in class org.eclipse.jpt.jpa.core.internal.context.persistence.AbstractPersistenceUnit

getImpliedEclipseLinkMappingFileRef

public MappingFileRef getImpliedEclipseLinkMappingFileRef()

setImpliedEclipseLinkMappingFileRef

protected void setImpliedEclipseLinkMappingFileRef(MappingFileRef mappingFileRef)

syncImpliedMappingFileRef

protected void syncImpliedMappingFileRef()
Overrides:
syncImpliedMappingFileRef in class org.eclipse.jpt.jpa.core.internal.context.persistence.AbstractPersistenceUnit

updateImpliedMappingFileRef

protected void updateImpliedMappingFileRef()
Overrides:
updateImpliedMappingFileRef in class org.eclipse.jpt.jpa.core.internal.context.persistence.AbstractPersistenceUnit

impliedEclipseLinkMappingFileIsNotExcluded

protected boolean impliedEclipseLinkMappingFileIsNotExcluded()

impliedEclipseLinkMappingFileIsExcluded

protected boolean impliedEclipseLinkMappingFileIsExcluded()

impliedEclipseLinkMappingFileIsNotSpecified

protected boolean impliedEclipseLinkMappingFileIsNotSpecified()

impliedEclipseLinkMappingFileIsSpecified

protected boolean impliedEclipseLinkMappingFileIsSpecified()

impliedEclipseLinkMappingFileExists

protected boolean impliedEclipseLinkMappingFileExists()

getDefaultTenantDiscriminatorColumns

public org.eclipse.jpt.common.utility.iterable.ListIterable<EclipseLinkTenantDiscriminatorColumn2_3> getDefaultTenantDiscriminatorColumns()

setDefaultTenantDiscriminatorColumns

protected void setDefaultTenantDiscriminatorColumns(Iterable<EclipseLinkTenantDiscriminatorColumn2_3> tenantDiscriminatorColumns)

buildDefaultTenantDiscriminatorColumns

protected org.eclipse.jpt.common.utility.iterable.ListIterable<EclipseLinkTenantDiscriminatorColumn2_3> buildDefaultTenantDiscriminatorColumns(EclipseLinkPersistenceUnitDefaults defaults)

getAllConverters

public Iterable<EclipseLinkConverter> getAllConverters()
Return the "active" converters defined within the persistence unit's scope, including converters with duplicate names. "Active" converters are: NB: A Java converter defined on a class or attribute that is overridden in a mapping file is not, as a result, itself overridden. A Java converter can only be overridden by a mapping file converter with the same name.

NB: A Java converter defined on a class or attribute whose corresponding mapping file mapping (or mapping file) is marked "metadata complete" is ignored.


getConverters

public Iterable<EclipseLinkConverter> getConverters()

getConvertersSize

public int getConvertersSize()

getUniqueConverterNames

public Iterable<String> getUniqueConverterNames()
Return the names of the "active" converters defined in the persistence unit's scope, with duplicates removed.


getNonEmptyConverterNames

protected Iterable<String> getNonEmptyConverterNames()

getConverterNames

protected Iterable<String> getConverterNames()

setConverters

protected void setConverters(Iterable<EclipseLinkConverter> converters)

buildConverters

protected Iterable<EclipseLinkConverter> buildConverters()
Converters are much like queries.

See Also:
AbstractPersistenceUnit.buildQueries()

getMappingFileConverters

protected Iterable<EclipseLinkConverter> getMappingFileConverters()

getAllJavaConverters

public Iterable<EclipseLinkConverter> getAllJavaConverters()
Include "overridden" Java converters.


getJpaProject

public EclipseLinkJpaProject getJpaProject()
Description copied from interface: JpaModel
Return the JPA project the node belongs to.

Specified by:
getJpaProject in interface JpaModel
Overrides:
getJpaProject in class org.eclipse.jpt.jpa.core.internal.AbstractJpaModel<Persistence>

getContextModelFactory

public EclipseLinkPersistenceXmlContextModelFactory getContextModelFactory()
Overrides:
getContextModelFactory in class org.eclipse.jpt.jpa.core.internal.context.persistence.AbstractPersistenceXmlContextModel<Persistence>

setSpecifiedSharedCacheMode

public void setSpecifiedSharedCacheMode(SharedCacheMode2_0 specifiedSharedCacheMode)
Description copied from interface: PersistenceUnit2_0
Set the persistence unit's specified shared cache mode.

Specified by:
setSpecifiedSharedCacheMode in interface PersistenceUnit2_0
Overrides:
setSpecifiedSharedCacheMode in class org.eclipse.jpt.jpa.core.internal.context.persistence.AbstractPersistenceUnit

buildDefaultSharedCacheMode

protected SharedCacheMode2_0 buildDefaultSharedCacheMode()
Overrides:
buildDefaultSharedCacheMode in class org.eclipse.jpt.jpa.core.internal.context.persistence.AbstractPersistenceUnit

calculateDefaultCacheable

public boolean calculateDefaultCacheable()
Specified by:
calculateDefaultCacheable in interface PersistenceUnit2_0
Overrides:
calculateDefaultCacheable in class org.eclipse.jpt.jpa.core.internal.context.persistence.AbstractPersistenceUnit

getDefaultGetMethod

public String getDefaultGetMethod()

setDefaultGetMethod

protected void setDefaultGetMethod(String getMethod)

buildDefaultGetMethod

protected String buildDefaultGetMethod(EclipseLinkPersistenceUnitDefaults defaults)

getDefaultSetMethod

public String getDefaultSetMethod()

setDefaultSetMethod

protected void setDefaultSetMethod(String setMethod)

buildDefaultSetMethod

protected String buildDefaultSetMethod(EclipseLinkPersistenceUnitDefaults defaults)

getEclipseLinkDynamicPersistentTypeNames

public Iterable<String> getEclipseLinkDynamicPersistentTypeNames()

getEclipseLinkDynamicPersistentTypes

public Iterable<EclipseLinkOrmPersistentType> getEclipseLinkDynamicPersistentTypes()

getEclipseLinkOrmPersistentTypes

public Iterable<EclipseLinkOrmPersistentType> getEclipseLinkOrmPersistentTypes()

createJpqlQueryHelper

public JpaJpqlQueryHelper createJpqlQueryHelper()
Description copied from interface: PersistenceUnit
Creates a new JpaJpqlQueryHelper that provides functionality related to JPQL queries.


validate

public void validate(List<IMessage> messages,
                     IReporter reporter)
Description copied from interface: JpaContextModel
Add the model's validation messages to the specified "collecting parameter".

Specified by:
validate in interface JpaContextModel
Overrides:
validate in class org.eclipse.jpt.jpa.core.internal.context.persistence.AbstractPersistenceUnit

validateProperties

protected void validateProperties(List<IMessage> messages,
                                  IReporter reporter)
Specified by:
validateProperties in class org.eclipse.jpt.jpa.core.internal.context.persistence.AbstractPersistenceUnit

validateDefaultCachingProperty

protected void validateDefaultCachingProperty(PersistenceUnit.Property cachingProperty,
                                              List<IMessage> messages)

validateLoggerProperty

protected void validateLoggerProperty(PersistenceUnit.Property loggerProperty,
                                      List<IMessage> messages)

getLegacyDescriptorCustomizerProperties

protected ArrayList<PersistenceUnit.Property> getLegacyDescriptorCustomizerProperties()

getLegacyEntityCachingProperties

protected ArrayList<PersistenceUnit.Property> getLegacyEntityCachingProperties()

validateConverters

protected void validateConverters(List<IMessage> messages,
                                  IReporter reporter)
NB: We validate converters here.

See Also:
AbstractPersistenceUnit.validateGenerators(List, IReporter)

checkForConvertersWithSameName

protected void checkForConvertersWithSameName(List<IMessage> messages)

validateConvertersWithSameName

protected void validateConvertersWithSameName(String converterName,
                                              ArrayList<EclipseLinkConverter> dups,
                                              List<IMessage> messages)
NB: Unlike generators and queries, we do not mark "equivalent" converters with info messages - we just ignore them because they cannot be "portable" (since only EclipseLink has converters).


allAreEquivalent

protected <T> boolean allAreEquivalent(ArrayList<T> collection,
                                       EclipseLinkPersistenceUnit.EquivalencyAdapter<T> adapter)
Using the specified adapter, return whether all the specified objects are "equivalent" (i.e. they all have the same state).


anyAreInequivalent

protected <T> boolean anyAreInequivalent(ArrayList<T> collection,
                                         EclipseLinkPersistenceUnit.EquivalencyAdapter<T> adapter)

validate

protected void validate(EclipseLinkConverter converter,
                        List<IMessage> messages,
                        IReporter reporter)

validateGeneratorsWithSameName

protected void validateGeneratorsWithSameName(String generatorName,
                                              ArrayList<Generator> dups,
                                              List<IMessage> messages)
If all the generators are "equivalent" add info messages; otherwise mark them all as duplicates.

Overrides:
validateGeneratorsWithSameName in class org.eclipse.jpt.jpa.core.internal.context.persistence.AbstractPersistenceUnit

validateQueriesWithSameName

protected void validateQueriesWithSameName(String queryName,
                                           ArrayList<Query> dups,
                                           List<IMessage> messages)
Overrides:
validateQueriesWithSameName in class org.eclipse.jpt.jpa.core.internal.context.persistence.AbstractPersistenceUnit
See Also:
validateGeneratorsWithSameName(String, ArrayList, List)

createPersistenceUnitPropertiesRenameTypeEdits

protected Iterable<ReplaceEdit> createPersistenceUnitPropertiesRenameTypeEdits(IType originalType,
                                                                               String newName)
Overrides:
createPersistenceUnitPropertiesRenameTypeEdits in class org.eclipse.jpt.jpa.core.internal.context.persistence.AbstractPersistenceUnit

createPersistenceUnitPropertiesMoveTypeEdits

protected Iterable<ReplaceEdit> createPersistenceUnitPropertiesMoveTypeEdits(IType originalType,
                                                                             IPackageFragment newPackage)
Overrides:
createPersistenceUnitPropertiesMoveTypeEdits in class org.eclipse.jpt.jpa.core.internal.context.persistence.AbstractPersistenceUnit

createPersistenceUnitPropertiesRenamePackageEdits

protected Iterable<ReplaceEdit> createPersistenceUnitPropertiesRenamePackageEdits(IPackageFragment originalPackage,
                                                                                  String newName)
Overrides:
createPersistenceUnitPropertiesRenamePackageEdits in class org.eclipse.jpt.jpa.core.internal.context.persistence.AbstractPersistenceUnit

hasConvertibleJavaQueries

public boolean hasConvertibleJavaQueries()
Description copied from interface: PersistenceUnit
Return whether the persistence unit contains any "convertible" queries. (i.e. Java queries that are neither overridden nor [erroneously] duplicated - by default, any Java queries with the same name are "duplicates").

Specified by:
hasConvertibleJavaQueries in interface PersistenceUnit
Overrides:
hasConvertibleJavaQueries in class org.eclipse.jpt.jpa.core.internal.context.persistence.AbstractPersistenceUnit
See Also:
convertJavaQueries(EntityMappings, IProgressMonitor)

hasAnyEquivalentJavaQueries

public boolean hasAnyEquivalentJavaQueries()
Return whether the persistence unit has any equivalent Java generators.


convertJavaQueries

public void convertJavaQueries(EntityMappings entityMappings,
                               IProgressMonitor monitor)
Override the default implementation because EclipseLink allows "equivalent" queries.

Specified by:
convertJavaQueries in interface PersistenceUnit
Overrides:
convertJavaQueries in class org.eclipse.jpt.jpa.core.internal.context.persistence.AbstractPersistenceUnit
See Also:
PersistenceUnit.hasConvertibleJavaQueries()

convertJavaQueriesWithSameName

protected void convertJavaQueriesWithSameName(OrmQueryContainer queryContainer,
                                              Map.Entry<String,ArrayList<Query>> entry,
                                              SubMonitor monitor)

getEclipseLinkConvertibleJavaQueries

protected HashMap<String,ArrayList<Query>> getEclipseLinkConvertibleJavaQueries()
See Also:
extractEclipseLinkConvertibleJavaModels(Iterable, Iterable, EquivalencyAdapter)

hasConvertibleJavaGenerators

public boolean hasConvertibleJavaGenerators()
Description copied from interface: PersistenceUnit
Return whether the persistence unit contains any "convertible" generators (i.e. Java generators that are neither overridden nor [erroneously] duplicated).

Specified by:
hasConvertibleJavaGenerators in interface PersistenceUnit
Overrides:
hasConvertibleJavaGenerators in class org.eclipse.jpt.jpa.core.internal.context.persistence.AbstractPersistenceUnit
See Also:
convertJavaGenerators(EntityMappings, IProgressMonitor)

hasAnyEquivalentJavaGenerators

public boolean hasAnyEquivalentJavaGenerators()
Return whether the persistence unit has any equivalent Java generators.


convertJavaGenerators

public void convertJavaGenerators(EntityMappings entityMappings,
                                  IProgressMonitor monitor)
Override the default implementation because EclipseLink allows "equivalent" generators.

Specified by:
convertJavaGenerators in interface PersistenceUnit
Overrides:
convertJavaGenerators in class org.eclipse.jpt.jpa.core.internal.context.persistence.AbstractPersistenceUnit
See Also:
PersistenceUnit.hasConvertibleJavaGenerators()

convertJavaGeneratorsWithSameName

protected void convertJavaGeneratorsWithSameName(EntityMappings entityMappings,
                                                 Map.Entry<String,ArrayList<Generator>> entry,
                                                 SubMonitor monitor)

getEclipseLinkConvertibleJavaGenerators

protected HashMap<String,ArrayList<Generator>> getEclipseLinkConvertibleJavaGenerators()
See Also:
extractEclipseLinkConvertibleJavaModels(Iterable, Iterable, EquivalencyAdapter)

hasConvertibleJavaConverters

public boolean hasConvertibleJavaConverters()
See Also:
convertJavaConverters(EclipseLinkEntityMappings, IProgressMonitor)

hasAnyEquivalentJavaConverters

public boolean hasAnyEquivalentJavaConverters()
Return whether the persistence unit has any equivalent Java generators.


convertJavaConverters

public void convertJavaConverters(EclipseLinkEntityMappings entityMappings,
                                  IProgressMonitor monitor)
Override the default implementation because EclipseLink allows "equivalent" converters.


convertJavaConvertersWithSameName

protected void convertJavaConvertersWithSameName(EclipseLinkOrmConverterContainer ormConverterContainer,
                                                 Map.Entry<String,ArrayList<EclipseLinkConverter>> entry,
                                                 SubMonitor monitor)

getEclipseLinkConvertibleJavaConverters

protected HashMap<String,ArrayList<EclipseLinkConverter>> getEclipseLinkConvertibleJavaConverters()
See Also:
extractEclipseLinkConvertibleJavaModels(Iterable, Iterable, EquivalencyAdapter)

calculateCumulativeSize

protected int calculateCumulativeSize(Collection<? extends Collection<?>> collections)

hasAnyEquivalentJavaModels

protected <M extends JpaNamedContextModel> boolean hasAnyEquivalentJavaModels(Iterable<M> allJavaModels,
                                                                              Iterable<M> mappingFileModels,
                                                                              EclipseLinkPersistenceUnit.EquivalencyAdapter<M> adapter)

extractEclipseLinkConvertibleJavaModels

protected <M extends JpaNamedContextModel> HashMap<String,ArrayList<M>> extractEclipseLinkConvertibleJavaModels(Iterable<M> allJavaModels,
                                                                                                                Iterable<M> mappingFileModels,
                                                                                                                EclipseLinkPersistenceUnit.EquivalencyAdapter<M> adapter)
Return the Java nodes that are neither overridden nor duplicated (by default any Java nodes with the same name are "duplicates"); but, in EclipseLink we return any "equivalent" nodes also.


Dali Provisional API
Release 3.2

Copyright (c) 2012 Oracle. All rights reserved.