|
Dali Provisional API Release 3.2 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.eclipse.jpt.common.utility.internal.model.AbstractModel
org.eclipse.jpt.jpa.core.internal.AbstractJpaNode
org.eclipse.jpt.jpa.core.internal.context.AbstractJpaContextNode
org.eclipse.jpt.jpa.core.internal.context.persistence.AbstractPersistenceXmlContextNode
org.eclipse.jpt.jpa.core.internal.context.persistence.AbstractPersistenceUnit
org.eclipse.jpt.jpa.eclipselink.core.context.persistence.EclipseLinkPersistenceUnit
public class EclipseLinkPersistenceUnit
EclipseLink persistence unit
| Nested Class Summary | |
|---|---|
static class |
EclipseLinkPersistenceUnit.MappingFileConvertersTransformer
|
static class |
EclipseLinkPersistenceUnit.PropertyNameDoesNotEndWith
|
static class |
EclipseLinkPersistenceUnit.TypeMappingConverterTransformer
|
| Nested classes/interfaces inherited from class org.eclipse.jpt.jpa.core.internal.context.persistence.AbstractPersistenceUnit |
|---|
org.eclipse.jpt.jpa.core.internal.context.persistence.AbstractPersistenceUnit.ImpliedClassRefContainer, org.eclipse.jpt.jpa.core.internal.context.persistence.AbstractPersistenceUnit.JarFileRefContainer, org.eclipse.jpt.jpa.core.internal.context.persistence.AbstractPersistenceUnit.MappedType, org.eclipse.jpt.jpa.core.internal.context.persistence.AbstractPersistenceUnit.MappingFileRefContains, 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.SpecifiedClassRefContainer, org.eclipse.jpt.jpa.core.internal.context.persistence.AbstractPersistenceUnit.SpecifiedMappingFileRefContainer, org.eclipse.jpt.jpa.core.internal.context.persistence.AbstractPersistenceUnit.SpecifiesManagedType |
| Nested classes/interfaces inherited from class org.eclipse.jpt.jpa.core.internal.AbstractJpaNode |
|---|
org.eclipse.jpt.jpa.core.internal.AbstractJpaNode.AbstractContextCollectionContainer<C extends JpaContextNode,R>, org.eclipse.jpt.jpa.core.internal.AbstractJpaNode.CollectionContainer<C,R>, org.eclipse.jpt.jpa.core.internal.AbstractJpaNode.ContextCollectionContainer<C extends JpaContextNode,R>, org.eclipse.jpt.jpa.core.internal.AbstractJpaNode.ContextListContainer<C extends JpaContextNode,R>, org.eclipse.jpt.jpa.core.internal.AbstractJpaNode.ListContainer<C,R> |
| 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 | |
|---|---|
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<ReadOnlyTenantDiscriminatorColumn2_3> |
defaultTenantDiscriminatorColumns
|
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. |
static org.eclipse.jpt.common.utility.transformer.Transformer<TypeMapping,Iterable<org.eclipse.jpt.jpa.eclipselink.core.internal.context.java.JavaEclipseLinkConverter<?>>> |
TYPE_MAPPING_CONVERTER_TRANSFORMER
|
| Fields inherited from class org.eclipse.jpt.jpa.core.internal.context.persistence.AbstractPersistenceUnit |
|---|
children, CLASS_REF_MANAGED_TYPE_TRANSFORMER, connection, defaultAccess, defaultCascadePersist, defaultCatalog, defaultDelimitedIdentifiers, defaultSchema, defaultSharedCacheMode, defaultTransactionType, defaultValidationMode, description, generators, genericSchemaGeneration, impliedClassRefContainer, impliedMappingFileRef, jarFileRefContainer, jtaDataSource, managedTypeMap, metamodelFiles, name, nonJtaDataSource, options, PERSISTENT_TYPE_FILTER, potentialImpliedMappingFileRef, propertyContainer, provider, queries, specifiedClassRefContainer, specifiedExcludeUnlistedClasses, specifiedMappingFileRefContainer, specifiedSharedCacheMode, specifiedTransactionType, specifiedValidationMode, TYPE_MAPPING_JAVA_GENERATORS_TRANSFORMER, TYPE_MAPPING_JAVA_QUERIES_TRANSFORMER, xmlMappingMetadataComplete, xmlPersistenceUnit |
| Fields inherited from class org.eclipse.jpt.jpa.core.internal.AbstractJpaNode |
|---|
EMPTY_STRING_ARRAY, 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.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 |
| Constructor Summary | |
|---|---|
EclipseLinkPersistenceUnit(Persistence parent,
org.eclipse.jpt.jpa.core.resource.persistence.XmlPersistenceUnit xmlPersistenceUnit)
|
|
| Method Summary | ||
|---|---|---|
protected boolean |
allNodesAreEquivalent(ArrayList<? extends JpaNamedContextNode> nodes)
Return whether all the specified nodes are "equivalent" (i.e. they all have the same state). |
|
protected boolean |
anyNodesAreInequivalent(ArrayList<? extends JpaNamedContextNode> nodes)
|
|
protected Iterable<EclipseLinkConverter> |
buildConverters()
Converters are much like queries. |
|
protected String |
buildDefaultGetMethod(EclipseLinkPersistenceUnitDefaults defaults)
|
|
protected String |
buildDefaultSetMethod(EclipseLinkPersistenceUnitDefaults defaults)
|
|
protected SharedCacheMode |
buildDefaultSharedCacheMode()
|
|
protected org.eclipse.jpt.common.utility.iterable.ListIterable<ReadOnlyTenantDiscriminatorColumn2_3> |
buildDefaultTenantDiscriminatorColumns(EclipseLinkPersistenceUnitDefaults defaults)
|
|
protected Caching |
buildEclipseLinkCaching()
|
|
protected Connection |
buildEclipseLinkConnection()
|
|
protected Customization |
buildEclipseLinkCustomization()
|
|
protected GeneralProperties |
buildEclipseLinkGeneralProperties()
|
|
protected Logging |
buildEclipseLinkLogging()
|
|
protected Options |
buildEclipseLinkOptions()
|
|
protected SchemaGeneration |
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(OrmEclipseLinkConverterContainer ormConverterContainer,
Map.Entry<String,ArrayList<org.eclipse.jpt.jpa.eclipselink.core.internal.context.java.JavaEclipseLinkConverter<?>>> 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<JavaGenerator>> 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<JavaQuery>> 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
|
extractEclipseLinkConvertibleJavaNodes(Iterable<N> allJavaNodes,
Iterable<? extends JpaNamedContextNode> mappingFileNodes)
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<org.eclipse.jpt.jpa.eclipselink.core.internal.context.java.JavaEclipseLinkConverter<?>> |
getAllJavaConverters()
Include "overridden" Java converters. |
|
Caching |
getCaching()
|
|
Connection |
getConnection()
|
|
EclipseLinkPersistenceXmlContextNodeFactory |
getContextNodeFactory()
|
|
protected Iterable<String> |
getConverterNames()
|
|
Iterable<EclipseLinkConverter> |
getConverters()
|
|
int |
getConvertersSize()
|
|
Customization |
getCustomization()
|
|
String |
getDefaultCacheSharedPropertyValue()
|
|
String |
getDefaultCacheSizePropertyValue()
|
|
String |
getDefaultCacheTypePropertyValue()
|
|
String |
getDefaultGetMethod()
|
|
String |
getDefaultSetMethod()
|
|
org.eclipse.jpt.common.utility.iterable.ListIterable<ReadOnlyTenantDiscriminatorColumn2_3> |
getDefaultTenantDiscriminatorColumns()
|
|
protected HashMap<String,ArrayList<org.eclipse.jpt.jpa.eclipselink.core.internal.context.java.JavaEclipseLinkConverter<?>>> |
getEclipseLinkConvertibleJavaConverters()
|
|
protected HashMap<String,ArrayList<JavaGenerator>> |
getEclipseLinkConvertibleJavaGenerators()
|
|
protected HashMap<String,ArrayList<JavaQuery>> |
getEclipseLinkConvertibleJavaQueries()
|
|
Iterable<String> |
getEclipseLinkDynamicPersistentTypeNames()
|
|
Iterable<EclipseLinkOrmPersistentType> |
getEclipseLinkDynamicPersistentTypes()
|
|
protected org.eclipse.jpt.jpa.eclipselink.core.internal.context.orm.OrmEclipseLinkPersistenceUnitMetadata |
getEclipseLinkMetadata()
|
|
Iterable<EclipseLinkOrmPersistentType> |
getEclipseLinkOrmPersistentTypes()
|
|
SchemaGeneration |
getEclipseLinkSchemaGeneration()
|
|
GeneralProperties |
getGeneralProperties()
|
|
MappingFileRef |
getImpliedEclipseLinkMappingFileRef()
|
|
EclipseLinkJpaProject |
getJpaProject()
Return the JPA project the node belongs to. |
|
protected ArrayList<PersistenceUnit.Property> |
getLegacyDescriptorCustomizerProperties()
|
|
protected ArrayList<PersistenceUnit.Property> |
getLegacyEntityCachingProperties()
|
|
Logging |
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()
|
|
Options |
getOptions()
|
|
protected HashMap<String,PersistentType> |
getPersistentTypesToSynchronizeMetamodel()
|
|
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
|
hasAnyEquivalentJavaNodes(Iterable<N> allJavaNodes,
Iterable<? extends JpaNamedContextNode> mappingFileNodes)
|
|
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<ReadOnlyTenantDiscriminatorColumn2_3> tenantDiscriminatorColumns)
|
|
protected void |
setImpliedEclipseLinkMappingFileRef(MappingFileRef mappingFileRef)
|
|
void |
setSpecifiedSharedCacheMode(SharedCacheMode 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 parts of the context node that are dependent on yet other parts of the node'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 to the list of current validation messages |
|
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 |
|---|
addJarFileRef, addJarFileRef, addPersistentTypes, addPersistentTypesTo, addProperty_, addProperty, addProperty, addProperty, addQuery, addSpecifiedClassRef, addSpecifiedClassRef, addSpecifiedClassRefs, addSpecifiedClassRefs, addSpecifiedMappingFileRef, addSpecifiedMappingFileRef, annotateClasses, buildClassRef, buildClassRef, buildDefaultCascadePersist, buildDefaultCatalog, buildDefaultDelimitedIdentifiers, buildDefaultSchema, buildDefaultTransactionType, buildDefaultValidationMode, buildGenerators, buildImpliedClassRefContainer, buildImpliedMappingFileRef, buildJarFileRef, buildJarFileRefContainer, buildNonPersistentMetamodelSourceType, buildProperty, buildPropertyContainer, buildQueries, 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, extractConvertibleJavaNodes, fileIsGeneratedMetamodel, filterToEntities_, filterToEntities, findInsertLocationForMappingFileRef, findJdtType, gatherRootStructureNodes, getActiveEntities, getActiveTypeMappings, getAllJavaGenerators, getAllJavaPersistentTypesUnique, getAllJavaQueries, getAllJavaTypeMappingsUnique, getChildren, getChildrenSize, getClassRefManagedTypes_, getClassRefManagedTypes, getClassRefPersistentTypes, 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, getImpliedClassRefs, getImpliedClassRefsSize, getImpliedClassResourceTypes_, getImpliedClassResourceTypes, getImpliedMappingFileRef, getJarFileManagedTypes, getJarFilePersistentTypes, getJarFileRefs, getJarFileRefsSize, getJavaManagedTypes, getJavaPersistentTypes, getJavaTypeMappingDefinition, getJavaTypeMappings, getJtaDataSource, getManagedType, getManagedTypes, getMappingFileGenerators, getMappingFileJavaPersistentTypes_, getMappingFileJavaPersistentTypes, getMappingFileManagedTypes, getMappingFilePersistentTypes, getMappingFileQueries, getMappingFileRefsContaining, getMappingFiles_, getMappingFiles, getMappingFileTypeMappings, getMappingFileTypeNames, getMetadata, getName, getNonEmptyGeneratorNames, getNonJtaDataSource, getPackageNames, getParent, getPersistence, getPersistenceUnit, getPersistenceUnitMetadataMappingFileRefs, getPersistentType, getPersistentTypes, getProperties, getPropertiesNamed, getPropertiesSize, getPropertiesWithNamePrefix, getProperty, getProvider, getQueries, getQueriesSize, getSchemaGeneration, getSelectionTextRange, getSharedCacheMode, getSpecifiedClassRefs, getSpecifiedClassRefsSize, getSpecifiedExcludeUnlistedClasses, getSpecifiedMappingFileRefs, getSpecifiedMappingFileRefsSize, getSpecifiedSharedCacheMode, getSpecifiedTransactionType, getSpecifiedValidationMode, getStructureNode, getTransactionType, getType, getTypeMapping, getTypeMappings, getUniqueGeneratorNames, getValidationMode, getValidationTextRange, getXmlClassRefs, getXmlJarFileRefs, getXmlMappingFileRefs, getXmlPersistenceUnit, getXmlProperties, impliedMappingFileExists, impliedMappingFileIsNotSpecified, impliedMappingFileIsSpecified, initializeChildren, initializeMetamodel, initializeMetamodelFiles_, initializeMetamodelFiles, 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, updateChildren, updateImpliedClassRefs, usesImpliedMappingFile, validate, validate, validateClassRefs, validateEntitiesWithSameName, validateEntityNames, validateGenerators, validateJarFileRefs, validateMappingFiles, validateQueries, validatesAgainstDatabase |
| Methods inherited from class org.eclipse.jpt.jpa.core.internal.context.persistence.AbstractPersistenceXmlContextNode |
|---|
getPersistenceXmlDefinition, getResourceNodeFactory |
| Methods inherited from class org.eclipse.jpt.jpa.core.internal.context.AbstractJpaContextNode |
|---|
buildValidationMessage, buildValidationMessage, buildValidationMessage, buildValidationMessage, buildValidationMessage, buildValidationMessage, buildValidationMessage, buildValidationMessage, getCompletionProposals, getConnectedCompletionProposals, getContextDefaultCatalog, getContextDefaultDbCatalog, getContextDefaultDbSchema, getContextDefaultDbSchemaContainer, getContextDefaultSchema, getMappingFileRoot, getResourceType, getValidationTextRange, synchronizeNodesWithResourceModel, updateNodes, validateNode, validateNodes |
| Methods inherited from class org.eclipse.jpt.jpa.core.internal.AbstractJpaNode |
|---|
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, addItemsToCollection, addItemsToList, addItemsToList, addItemsToList, addItemsToList, addItemsToList, addItemsToList, addItemsToList, addItemsToList, addItemToCollection, addItemToList, addItemToList, addListChangeListener, addPropertyChangeListener, addStateChangeListener, attributeValueHasChanged, attributeValueHasNotChanged, clearCollection, clearList, clone, 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, getChangeSupport, hasAnyChangeListeners, hasAnyCollectionChangeListeners, hasAnyListChangeListeners, hasAnyPropertyChangeListeners, hasAnyStateChangeListeners, hasNoChangeListeners, hasNoCollectionChangeListeners, hasNoListChangeListeners, hasNoPropertyChangeListeners, hasNoStateChangeListeners, moveItemInList, moveItemInList, moveItemsInList, removeChangeListener, removeCollectionChangeListener, removeItemFromCollection, removeItemFromList, removeItemFromList, removeItemsFromCollection, removeItemsFromCollection, removeItemsFromCollection, removeItemsFromCollection, removeItemsFromList, 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, valuesAreDifferent, valuesAreEqual |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.eclipse.jpt.jpa.core.context.JpaContextNode |
|---|
getCompletionProposals, getContextDefaultDbCatalog, getContextDefaultDbSchema, getContextDefaultDbSchemaContainer, getMappingFileRoot |
| Methods inherited from interface org.eclipse.jpt.jpa.core.JpaNode |
|---|
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 |
|---|
protected MappingFileRef impliedEclipseLinkMappingFileRef
potentialImpliedEclipseLinkMappingFileRefpublic static final String IMPLIED_ECLIPSELINK_MAPPING_FILE_REF_PROPERTY
protected final MappingFileRef potentialImpliedEclipseLinkMappingFileRef
impliedEclipseLinkMappingFileRef,
usesImpliedEclipseLinkMappingFile()protected final Vector<EclipseLinkConverter> converters
protected final Vector<ReadOnlyTenantDiscriminatorColumn2_3> defaultTenantDiscriminatorColumns
protected String defaultGetMethod
protected String defaultSetMethod
public static final String DEFAULT_TENANT_DISCRIMINATOR_COLUMNS_LIST
public static final String CONVERTERS_COLLECTION
public static final org.eclipse.jpt.common.utility.transformer.Transformer<MappingFile,Iterable<EclipseLinkConverter>> MAPPING_FILE_CONVERTERS_TRANSFORMER
public static final org.eclipse.jpt.common.utility.transformer.Transformer<TypeMapping,Iterable<org.eclipse.jpt.jpa.eclipselink.core.internal.context.java.JavaEclipseLinkConverter<?>>> TYPE_MAPPING_CONVERTER_TRANSFORMER
public static final String DEFAULT_GET_METHOD_PROPERTY
public static final String DEFAULT_SET_METHOD_PROPERTY
| Constructor Detail |
|---|
public EclipseLinkPersistenceUnit(Persistence parent,
org.eclipse.jpt.jpa.core.resource.persistence.XmlPersistenceUnit xmlPersistenceUnit)
| Method Detail |
|---|
public void update()
JpaContextNode
update in interface JpaContextNodeupdate in class org.eclipse.jpt.jpa.core.internal.context.persistence.AbstractPersistenceUnitprotected org.eclipse.jpt.jpa.eclipselink.core.internal.context.orm.OrmEclipseLinkPersistenceUnitMetadata getEclipseLinkMetadata()
protected void updatePersistenceUnitMetadata()
updatePersistenceUnitMetadata in class org.eclipse.jpt.jpa.core.internal.context.persistence.AbstractPersistenceUnitpublic GeneralProperties getGeneralProperties()
public Connection getConnection()
getConnection in interface PersistenceUnit2_0getConnection in class org.eclipse.jpt.jpa.core.internal.context.persistence.AbstractPersistenceUnitpublic Customization getCustomization()
public Caching getCaching()
public String getDefaultCacheTypePropertyValue()
public String getDefaultCacheSizePropertyValue()
public String getDefaultCacheSharedPropertyValue()
public Logging getLogging()
public Options getOptions()
getOptions in interface PersistenceUnit2_0getOptions in class org.eclipse.jpt.jpa.core.internal.context.persistence.AbstractPersistenceUnitpublic SchemaGeneration getEclipseLinkSchemaGeneration()
protected GeneralProperties buildEclipseLinkGeneralProperties()
protected Connection buildEclipseLinkConnection()
protected Customization buildEclipseLinkCustomization()
protected Caching buildEclipseLinkCaching()
protected Logging buildEclipseLinkLogging()
protected Options buildEclipseLinkOptions()
protected SchemaGeneration buildEclipseLinkSchemaGeneration()
protected void initializeProperties()
initializeProperties in class org.eclipse.jpt.jpa.core.internal.context.persistence.AbstractPersistenceUnit
public void propertyValueChanged(String propertyName,
String newValue)
PersistenceUnit
propertyValueChanged in interface PersistenceUnitpropertyValueChanged in class org.eclipse.jpt.jpa.core.internal.context.persistence.AbstractPersistenceUnitpublic void propertyRemoved(String propertyName)
propertyRemoved in class org.eclipse.jpt.jpa.core.internal.context.persistence.AbstractPersistenceUnitpublic org.eclipse.jpt.common.utility.iterable.ListIterable<MappingFileRef> getMappingFileRefs()
PersistenceUnit
getMappingFileRefs in interface PersistenceUnitgetMappingFileRefs in class org.eclipse.jpt.jpa.core.internal.context.persistence.AbstractPersistenceUnitpublic int getMappingFileRefsSize()
PersistenceUnit
getMappingFileRefsSize in interface PersistenceUnitgetMappingFileRefsSize in class org.eclipse.jpt.jpa.core.internal.context.persistence.AbstractPersistenceUnitpublic MappingFileRef getImpliedEclipseLinkMappingFileRef()
protected void setImpliedEclipseLinkMappingFileRef(MappingFileRef mappingFileRef)
protected void syncImpliedMappingFileRef()
syncImpliedMappingFileRef in class org.eclipse.jpt.jpa.core.internal.context.persistence.AbstractPersistenceUnitprotected void updateImpliedMappingFileRef()
updateImpliedMappingFileRef in class org.eclipse.jpt.jpa.core.internal.context.persistence.AbstractPersistenceUnitprotected boolean impliedEclipseLinkMappingFileIsNotExcluded()
protected boolean impliedEclipseLinkMappingFileIsExcluded()
protected boolean impliedEclipseLinkMappingFileIsNotSpecified()
protected boolean impliedEclipseLinkMappingFileIsSpecified()
protected boolean impliedEclipseLinkMappingFileExists()
public org.eclipse.jpt.common.utility.iterable.ListIterable<ReadOnlyTenantDiscriminatorColumn2_3> getDefaultTenantDiscriminatorColumns()
protected void setDefaultTenantDiscriminatorColumns(Iterable<ReadOnlyTenantDiscriminatorColumn2_3> tenantDiscriminatorColumns)
protected org.eclipse.jpt.common.utility.iterable.ListIterable<ReadOnlyTenantDiscriminatorColumn2_3> buildDefaultTenantDiscriminatorColumns(EclipseLinkPersistenceUnitDefaults defaults)
public Iterable<EclipseLinkConverter> getAllConverters()
NB: A Java converter defined on a class or attribute whose corresponding mapping file mapping (or mapping file) is marked "metadata complete" is ignored.
public Iterable<EclipseLinkConverter> getConverters()
public int getConvertersSize()
public Iterable<String> getUniqueConverterNames()
protected Iterable<String> getNonEmptyConverterNames()
protected Iterable<String> getConverterNames()
protected void setConverters(Iterable<EclipseLinkConverter> converters)
protected Iterable<EclipseLinkConverter> buildConverters()
AbstractPersistenceUnit.buildQueries()protected Iterable<EclipseLinkConverter> getMappingFileConverters()
public Iterable<org.eclipse.jpt.jpa.eclipselink.core.internal.context.java.JavaEclipseLinkConverter<?>> getAllJavaConverters()
public EclipseLinkJpaProject getJpaProject()
JpaNode
getJpaProject in interface JpaNodegetJpaProject in class org.eclipse.jpt.jpa.core.internal.AbstractJpaNodepublic EclipseLinkPersistenceXmlContextNodeFactory getContextNodeFactory()
getContextNodeFactory in class org.eclipse.jpt.jpa.core.internal.context.persistence.AbstractPersistenceXmlContextNodepublic void setSpecifiedSharedCacheMode(SharedCacheMode specifiedSharedCacheMode)
PersistenceUnit2_0
setSpecifiedSharedCacheMode in interface PersistenceUnit2_0setSpecifiedSharedCacheMode in class org.eclipse.jpt.jpa.core.internal.context.persistence.AbstractPersistenceUnitprotected SharedCacheMode buildDefaultSharedCacheMode()
buildDefaultSharedCacheMode in class org.eclipse.jpt.jpa.core.internal.context.persistence.AbstractPersistenceUnitpublic boolean calculateDefaultCacheable()
calculateDefaultCacheable in interface PersistenceUnit2_0calculateDefaultCacheable in class org.eclipse.jpt.jpa.core.internal.context.persistence.AbstractPersistenceUnitpublic String getDefaultGetMethod()
protected void setDefaultGetMethod(String getMethod)
protected String buildDefaultGetMethod(EclipseLinkPersistenceUnitDefaults defaults)
public String getDefaultSetMethod()
protected void setDefaultSetMethod(String setMethod)
protected String buildDefaultSetMethod(EclipseLinkPersistenceUnitDefaults defaults)
public Iterable<String> getEclipseLinkDynamicPersistentTypeNames()
public Iterable<EclipseLinkOrmPersistentType> getEclipseLinkDynamicPersistentTypes()
public Iterable<EclipseLinkOrmPersistentType> getEclipseLinkOrmPersistentTypes()
public JpaJpqlQueryHelper createJpqlQueryHelper()
PersistenceUnitJpaJpqlQueryHelper that provides functionality related to JPQL queries.
public void validate(List<IMessage> messages,
IReporter reporter)
JpaContextNode
validate in interface JpaContextNodevalidate in class org.eclipse.jpt.jpa.core.internal.context.persistence.AbstractPersistenceUnit
protected void validateProperties(List<IMessage> messages,
IReporter reporter)
validateProperties in class org.eclipse.jpt.jpa.core.internal.context.persistence.AbstractPersistenceUnit
protected void validateDefaultCachingProperty(PersistenceUnit.Property cachingProperty,
List<IMessage> messages)
protected void validateLoggerProperty(PersistenceUnit.Property loggerProperty,
List<IMessage> messages)
protected ArrayList<PersistenceUnit.Property> getLegacyDescriptorCustomizerProperties()
protected ArrayList<PersistenceUnit.Property> getLegacyEntityCachingProperties()
protected void validateConverters(List<IMessage> messages,
IReporter reporter)
AbstractPersistenceUnit.validateGenerators(List, IReporter)protected void checkForConvertersWithSameName(List<IMessage> messages)
protected void validateConvertersWithSameName(String converterName,
ArrayList<EclipseLinkConverter> dups,
List<IMessage> messages)
protected boolean allNodesAreEquivalent(ArrayList<? extends JpaNamedContextNode> nodes)
protected boolean anyNodesAreInequivalent(ArrayList<? extends JpaNamedContextNode> nodes)
protected void validate(EclipseLinkConverter converter,
List<IMessage> messages,
IReporter reporter)
protected void validateGeneratorsWithSameName(String generatorName,
ArrayList<Generator> dups,
List<IMessage> messages)
validateGeneratorsWithSameName in class org.eclipse.jpt.jpa.core.internal.context.persistence.AbstractPersistenceUnit
protected void validateQueriesWithSameName(String queryName,
ArrayList<Query> dups,
List<IMessage> messages)
validateQueriesWithSameName in class org.eclipse.jpt.jpa.core.internal.context.persistence.AbstractPersistenceUnitvalidateGeneratorsWithSameName(String, ArrayList, List)
protected Iterable<ReplaceEdit> createPersistenceUnitPropertiesRenameTypeEdits(IType originalType,
String newName)
createPersistenceUnitPropertiesRenameTypeEdits in class org.eclipse.jpt.jpa.core.internal.context.persistence.AbstractPersistenceUnit
protected Iterable<ReplaceEdit> createPersistenceUnitPropertiesMoveTypeEdits(IType originalType,
IPackageFragment newPackage)
createPersistenceUnitPropertiesMoveTypeEdits in class org.eclipse.jpt.jpa.core.internal.context.persistence.AbstractPersistenceUnit
protected Iterable<ReplaceEdit> createPersistenceUnitPropertiesRenamePackageEdits(IPackageFragment originalPackage,
String newName)
createPersistenceUnitPropertiesRenamePackageEdits in class org.eclipse.jpt.jpa.core.internal.context.persistence.AbstractPersistenceUnitpublic boolean hasConvertibleJavaQueries()
PersistenceUnit
hasConvertibleJavaQueries in interface PersistenceUnithasConvertibleJavaQueries in class org.eclipse.jpt.jpa.core.internal.context.persistence.AbstractPersistenceUnitconvertJavaQueries(EntityMappings, IProgressMonitor)public boolean hasAnyEquivalentJavaQueries()
public void convertJavaQueries(EntityMappings entityMappings,
IProgressMonitor monitor)
convertJavaQueries in interface PersistenceUnitconvertJavaQueries in class org.eclipse.jpt.jpa.core.internal.context.persistence.AbstractPersistenceUnitPersistenceUnit.hasConvertibleJavaQueries()
protected void convertJavaQueriesWithSameName(OrmQueryContainer queryContainer,
Map.Entry<String,ArrayList<JavaQuery>> entry,
SubMonitor monitor)
protected HashMap<String,ArrayList<JavaQuery>> getEclipseLinkConvertibleJavaQueries()
extractEclipseLinkConvertibleJavaNodes(Iterable, Iterable)public boolean hasConvertibleJavaGenerators()
PersistenceUnit
hasConvertibleJavaGenerators in interface PersistenceUnithasConvertibleJavaGenerators in class org.eclipse.jpt.jpa.core.internal.context.persistence.AbstractPersistenceUnitconvertJavaGenerators(EntityMappings, IProgressMonitor)public boolean hasAnyEquivalentJavaGenerators()
public void convertJavaGenerators(EntityMappings entityMappings,
IProgressMonitor monitor)
convertJavaGenerators in interface PersistenceUnitconvertJavaGenerators in class org.eclipse.jpt.jpa.core.internal.context.persistence.AbstractPersistenceUnitPersistenceUnit.hasConvertibleJavaGenerators()
protected void convertJavaGeneratorsWithSameName(EntityMappings entityMappings,
Map.Entry<String,ArrayList<JavaGenerator>> entry,
SubMonitor monitor)
protected HashMap<String,ArrayList<JavaGenerator>> getEclipseLinkConvertibleJavaGenerators()
extractEclipseLinkConvertibleJavaNodes(Iterable, Iterable)public boolean hasConvertibleJavaConverters()
convertJavaConverters(EclipseLinkEntityMappings, IProgressMonitor)public boolean hasAnyEquivalentJavaConverters()
public void convertJavaConverters(EclipseLinkEntityMappings entityMappings,
IProgressMonitor monitor)
protected void convertJavaConvertersWithSameName(OrmEclipseLinkConverterContainer ormConverterContainer,
Map.Entry<String,ArrayList<org.eclipse.jpt.jpa.eclipselink.core.internal.context.java.JavaEclipseLinkConverter<?>>> entry,
SubMonitor monitor)
protected HashMap<String,ArrayList<org.eclipse.jpt.jpa.eclipselink.core.internal.context.java.JavaEclipseLinkConverter<?>>> getEclipseLinkConvertibleJavaConverters()
extractEclipseLinkConvertibleJavaNodes(Iterable, Iterable)protected int calculateCumulativeSize(Collection<? extends Collection<?>> collections)
protected <N extends JpaNamedContextNode> boolean hasAnyEquivalentJavaNodes(Iterable<N> allJavaNodes,
Iterable<? extends JpaNamedContextNode> mappingFileNodes)
protected <N extends JpaNamedContextNode> HashMap<String,ArrayList<N>> extractEclipseLinkConvertibleJavaNodes(Iterable<N> allJavaNodes,
Iterable<? extends JpaNamedContextNode> mappingFileNodes)
protected HashMap<String,PersistentType> getPersistentTypesToSynchronizeMetamodel()
getPersistentTypesToSynchronizeMetamodel in class org.eclipse.jpt.jpa.core.internal.context.persistence.AbstractPersistenceUnit
|
Dali Provisional API Release 3.2 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||