diff options
Diffstat (limited to 'jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm')
52 files changed, 0 insertions, 2369 deletions
diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/EntityMappings.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/EntityMappings.java deleted file mode 100644 index bb87aa4188..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/EntityMappings.java +++ /dev/null @@ -1,133 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2007, 2008 Oracle. All rights reserved. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v1.0, which accompanies this distribution - * and is available at http://www.eclipse.org/legal/epl-v10.html. - * - * Contributors: - * Oracle - initial API and implementation - ******************************************************************************/ -package org.eclipse.jpt.core.context.orm; - -import java.util.ListIterator; -import org.eclipse.jpt.core.JpaStructureNode; -import org.eclipse.jpt.core.context.AccessType; -import org.eclipse.jpt.core.context.QueryHolder; -import org.eclipse.jpt.core.resource.orm.XmlEntityMappings; - -/** - * - * - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - */ -public interface EntityMappings extends OrmJpaContextNode, JpaStructureNode, QueryHolder -{ - - String getVersion(); - - String getDescription(); - void setDescription(String newDescription); - String DESCRIPTION_PROPERTY = "descriptionProperty"; - - String getPackage(); - void setPackage(String newPackage); - String PACKAGE_PROPERTY = "packageProperty"; - - /** - * Return the specifiedSchema if not null, otherwise return the defaultSchema. - */ - String getSchema(); - String getDefaultSchema(); - String DEFAULT_SCHEMA_PROPERTY = "defaultSchemaProperty"; - String getSpecifiedSchema(); - void setSpecifiedSchema(String newSpecifiedSchema); - String SPECIFIED_SCHEMA_PROPERTY = "specifiedSchemaProperty"; - - /** - * Return the specifiedCatalog if not null, otherwise return the defaultCatalog. - */ - String getCatalog(); - String getDefaultCatalog(); - String DEFAULT_CATALOG_PROPERTY = "defaultCatalogProperty"; - String getSpecifiedCatalog(); - void setSpecifiedCatalog(String newSpecifiedCatalog); - String SPECIFIED_CATALOG_PROPERTY = "specifiedCatalogProperty"; - - /** - * Return the specifiedAccess if not null, otherwise return the defaultAccess. - */ - AccessType getAccess(); - AccessType getDefaultAccess(); - String DEFAULT_ACCESS_PROPERTY = "defaultAccessProperty"; - AccessType getSpecifiedAccess(); - void setSpecifiedAccess(AccessType newSpecifiedAccess); - String SPECIFIED_ACCESS_PROPERTY = "specifiedAccessProperty"; - - - PersistenceUnitMetadata getPersistenceUnitMetadata(); - - - ListIterator<OrmPersistentType> ormPersistentTypes(); - int ormPersistentTypesSize(); - OrmPersistentType addOrmPersistentType(String mappingKey, String className); - void removeOrmPersistentType(int index); - void removeOrmPersistentType(OrmPersistentType ormPersistentType); - //void moveOrmPersistentType(int targetIndex, int sourceIndex); - boolean containsPersistentType(String className); - String PERSISTENT_TYPES_LIST = "persistentTypes"; - - - ListIterator<OrmSequenceGenerator> sequenceGenerators(); - int sequenceGeneratorsSize(); - OrmSequenceGenerator addSequenceGenerator(int index); - void removeSequenceGenerator(int index); - void removeSequenceGenerator(OrmSequenceGenerator sequenceGenerator); - void moveSequenceGenerator(int targetIndex, int sourceIndex); - String SEQUENCE_GENERATORS_LIST = "sequenceGeneratorsList"; - - ListIterator<OrmTableGenerator> tableGenerators(); - int tableGeneratorsSize(); - OrmTableGenerator addTableGenerator(int index); - void removeTableGenerator(int index); - void removeTableGenerator(OrmTableGenerator tableGenerator); - void moveTableGenerator(int targetIndex, int sourceIndex); - String TABLE_GENERATORS_LIST = "tableGeneratorsList"; - - @SuppressWarnings("unchecked") - ListIterator<OrmNamedQuery> namedQueries(); - int namedQueriesSize(); - OrmNamedQuery addNamedQuery(int index); - void removeNamedQuery(int index); - void moveNamedQuery(int targetIndex, int sourceIndex); - - @SuppressWarnings("unchecked") - ListIterator<OrmNamedNativeQuery> namedNativeQueries(); - int namedNativeQueriesSize(); - OrmNamedNativeQuery addNamedNativeQuery(int index); - void removeNamedNativeQuery(int index); - void moveNamedNativeQuery(int targetIndex, int sourceIndex); - - - - PersistenceUnitDefaults getPersistenceUnitDefaults(); - - /** - * Return the {@link OrmPersistentType) listed in this mapping file - * with the given fullyQualifiedTypeName. Return null if none exists. - */ - OrmPersistentType getPersistentType(String fullyQualifiedTypeName); - - void changeMapping(OrmPersistentType ormPersistentType, OrmTypeMapping oldMapping, OrmTypeMapping newMapping); - - // **************** updating *********************************************** - - void update(XmlEntityMappings entityMappings); - - // ************************************************************************* - - boolean containsOffset(int textOffset); -} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmAssociationOverride.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmAssociationOverride.java deleted file mode 100644 index 322aef911d..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmAssociationOverride.java +++ /dev/null @@ -1,39 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2008 Oracle. All rights reserved. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v1.0, which accompanies this distribution - * and is available at http://www.eclipse.org/legal/epl-v10.html. - * - * Contributors: - * Oracle - initial API and implementation - ******************************************************************************/ -package org.eclipse.jpt.core.context.orm; - -import java.util.ListIterator; -import org.eclipse.jpt.core.context.AssociationOverride; -import org.eclipse.jpt.core.resource.orm.XmlAssociationOverride; - -/** - * - * - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - */ -public interface OrmAssociationOverride extends AssociationOverride, OrmJpaContextNode -{ - @SuppressWarnings("unchecked") - ListIterator<OrmJoinColumn> joinColumns(); - - @SuppressWarnings("unchecked") - ListIterator<OrmJoinColumn> defaultJoinColumns(); - - @SuppressWarnings("unchecked") - ListIterator<OrmJoinColumn> specifiedJoinColumns(); - - OrmJoinColumn addSpecifiedJoinColumn(int index); - - void update(XmlAssociationOverride associationOverride); -}
\ No newline at end of file diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmAttributeMapping.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmAttributeMapping.java deleted file mode 100644 index 25f10c5b20..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmAttributeMapping.java +++ /dev/null @@ -1,83 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2008 Oracle. All rights reserved. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v1.0, which accompanies this distribution - * and is available at http://www.eclipse.org/legal/epl-v10.html. - * - * Contributors: - * Oracle - initial API and implementation - ******************************************************************************/ -package org.eclipse.jpt.core.context.orm; - -import org.eclipse.jpt.core.context.AttributeMapping; -import org.eclipse.jpt.core.context.java.JavaPersistentAttribute; -import org.eclipse.jpt.core.resource.orm.AbstractXmlTypeMapping; -import org.eclipse.jpt.core.resource.orm.XmlAttributeMapping; -import org.eclipse.jpt.core.utility.TextRange; - -/** - * - * - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - */ -public interface OrmAttributeMapping extends AttributeMapping, OrmJpaContextNode -{ - OrmPersistentAttribute getPersistentAttribute(); - - String getName(); - void setName(String newName); - String NAME_PROPERTY = "nameProperty"; - - - JavaPersistentAttribute getJavaPersistentAttribute(); - String JAVA_PERSISTENT_ATTRIBUTE_PROPERTY = "javaPersistentAttributeProperty"; - - /** - * Attributes are a sequence in the orm schema. We must keep - * the list of attributes in the appropriate order so the wtp xml - * translators will write them to the xml in that order and they - * will adhere to the schema. - * - * Each concrete subclass of XmlAttributeMapping must implement this - * method and return an int that matches it's order in the schema - * @return - */ - int getXmlSequence(); - - void removeFromResourceModel(AbstractXmlTypeMapping typeMapping); - - XmlAttributeMapping addToResourceModel(AbstractXmlTypeMapping typeMapping); - - - void initializeOn(OrmAttributeMapping newMapping); - - void initializeFromOrmAttributeMapping(OrmAttributeMapping oldMapping); - - void initializeFromOrmBasicMapping(OrmBasicMapping oldMapping); - - void initializeFromOrmIdMapping(OrmIdMapping oldMapping); - - void initializeFromOrmTransientMapping(OrmTransientMapping oldMapping); - - void initializeFromOrmEmbeddedMapping(OrmEmbeddedMapping oldMapping); - - void initializeFromOrmEmbeddedIdMapping(OrmEmbeddedIdMapping oldMapping); - - void initializeFromOrmVersionMapping(OrmVersionMapping oldMapping); - - void initializeFromOrmOneToManyMapping(OrmOneToManyMapping oldMapping); - - void initializeFromOrmManyToOneMapping(OrmManyToOneMapping oldMapping); - - void initializeFromOrmOneToOneMapping(OrmOneToOneMapping oldMapping); - - void initializeFromOrmManyToManyMapping(OrmManyToManyMapping oldMapping); - - boolean contains(int textOffset); - - TextRange getSelectionTextRange(); -} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmAttributeMappingProvider.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmAttributeMappingProvider.java deleted file mode 100644 index c50462333a..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmAttributeMappingProvider.java +++ /dev/null @@ -1,29 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2006, 2008 Oracle. All rights reserved. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v1.0, which accompanies this distribution - * and is available at http://www.eclipse.org/legal/epl-v10.html. - * - * Contributors: - * Oracle - initial API and implementation - ******************************************************************************/ -package org.eclipse.jpt.core.context.orm; - -import org.eclipse.jpt.core.JpaFactory; - -/** - * - * - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - */ -public interface OrmAttributeMappingProvider -{ - String getKey(); - - OrmAttributeMapping buildAttributeMapping(JpaFactory factory, OrmPersistentAttribute parent); - -} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmAttributeOverride.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmAttributeOverride.java deleted file mode 100644 index 81646f55d3..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmAttributeOverride.java +++ /dev/null @@ -1,29 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2008 Oracle. All rights reserved. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v1.0, which accompanies this distribution - * and is available at http://www.eclipse.org/legal/epl-v10.html. - * - * Contributors: - * Oracle - initial API and implementation - ******************************************************************************/ -package org.eclipse.jpt.core.context.orm; - -import org.eclipse.jpt.core.context.AttributeOverride; -import org.eclipse.jpt.core.resource.orm.XmlAttributeOverride; - -/** - * - * - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - */ -public interface OrmAttributeOverride extends AttributeOverride, OrmJpaContextNode -{ - OrmColumn getColumn(); - - void update(XmlAttributeOverride attributeOverride); -}
\ No newline at end of file diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmBaseColumn.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmBaseColumn.java deleted file mode 100644 index ed2b20af5e..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmBaseColumn.java +++ /dev/null @@ -1,43 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2008 Oracle. All rights reserved. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v1.0, which accompanies this distribution - * and is available at http://www.eclipse.org/legal/epl-v10.html. - * - * Contributors: - * Oracle - initial API and implementation - ******************************************************************************/ -package org.eclipse.jpt.core.context.orm; - -import org.eclipse.jpt.core.context.BaseColumn; -import org.eclipse.jpt.core.utility.TextRange; - - -/** - * - * - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - */ -public interface OrmBaseColumn extends BaseColumn, OrmNamedColumn -{ - - /** - * Return the (best guess) text location of the column's table. - */ - TextRange getTableTextRange(); - - Owner getOwner(); - - /** - * interface allowing columns to be used in multiple places - * (e.g. basic mappings and attribute overrides) - */ - interface Owner extends OrmNamedColumn.Owner, BaseColumn.Owner - { - // nothing? - } -}
\ No newline at end of file diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmBaseEmbeddedMapping.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmBaseEmbeddedMapping.java deleted file mode 100644 index 584b69c1d1..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmBaseEmbeddedMapping.java +++ /dev/null @@ -1,34 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2008 Oracle. All rights reserved. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v1.0, which accompanies this distribution - * and is available at http://www.eclipse.org/legal/epl-v10.html. - * - * Contributors: - * Oracle - initial API and implementation - ******************************************************************************/ -package org.eclipse.jpt.core.context.orm; - -import java.util.ListIterator; -import org.eclipse.jpt.core.context.BaseEmbeddedMapping; - -/** - * - * - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - */ -public interface OrmBaseEmbeddedMapping extends BaseEmbeddedMapping, OrmAttributeMapping -{ - @SuppressWarnings("unchecked") - ListIterator<OrmAttributeOverride> attributeOverrides(); - @SuppressWarnings("unchecked") - ListIterator<OrmAttributeOverride> virtualAttributeOverrides(); - @SuppressWarnings("unchecked") - ListIterator<OrmAttributeOverride> specifiedAttributeOverrides(); - - OrmAttributeOverride getAttributeOverrideNamed(String name); -}
\ No newline at end of file diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmBaseJoinColumn.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmBaseJoinColumn.java deleted file mode 100644 index 8f141568a0..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmBaseJoinColumn.java +++ /dev/null @@ -1,42 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2008 Oracle. All rights reserved. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v1.0, which accompanies this distribution - * and is available at http://www.eclipse.org/legal/epl-v10.html. - * - * Contributors: - * Oracle - initial API and implementation - ******************************************************************************/ -package org.eclipse.jpt.core.context.orm; - -import org.eclipse.jpt.core.context.BaseJoinColumn; -import org.eclipse.jpt.core.utility.TextRange; - -/** - * - * - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - */ -public interface OrmBaseJoinColumn extends BaseJoinColumn, OrmNamedColumn -{ - - /** - * Return the (best guess) text location of the referenced column name - */ - TextRange getReferencedColumnNameTextRange(); - - - Owner getOwner(); - /** - * interface allowing join columns to be used in multiple places - * (e.g. 1:1 mappings and join tables) - */ - interface Owner extends BaseJoinColumn.Owner, OrmNamedColumn.Owner - { - - } -}
\ No newline at end of file diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmBasicMapping.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmBasicMapping.java deleted file mode 100644 index 13f90b1bae..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmBasicMapping.java +++ /dev/null @@ -1,29 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2008 Oracle. All rights reserved. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v1.0, which accompanies this distribution - * and is available at http://www.eclipse.org/legal/epl-v10.html. - * - * Contributors: - * Oracle - initial API and implementation - ******************************************************************************/ -package org.eclipse.jpt.core.context.orm; - -import org.eclipse.jpt.core.context.BasicMapping; -import org.eclipse.jpt.core.resource.orm.XmlBasic; - -/** - * - * - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - */ -public interface OrmBasicMapping extends BasicMapping, OrmAttributeMapping, OrmColumnMapping -{ - void initialize(XmlBasic basic); - - void update(XmlBasic basic); -}
\ No newline at end of file diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmColumn.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmColumn.java deleted file mode 100644 index a96705e928..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmColumn.java +++ /dev/null @@ -1,46 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2007, 2008 Oracle. All rights reserved. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v1.0, which accompanies this distribution - * and is available at http://www.eclipse.org/legal/epl-v10.html. - * - * Contributors: - * Oracle - initial API and implementation - ******************************************************************************/ -package org.eclipse.jpt.core.context.orm; - -import org.eclipse.jpt.core.context.Column; -import org.eclipse.jpt.core.resource.orm.XmlColumn; - -/** - * - * - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - */ -public interface OrmColumn extends Column, OrmBaseColumn -{ - - Owner getOwner(); - - void initializeFrom(Column oldColumn); - void initialize(XmlColumn column); - void update(XmlColumn column); - - /** - * interface allowing columns to be used in multiple places - * (e.g. basic mappings and attribute overrides) - */ - interface Owner extends OrmBaseColumn.Owner - { - XmlColumn getColumnResource(); - - void addColumnResource(); - - void removeColumnResource(); - } - -}
\ No newline at end of file diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmColumnMapping.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmColumnMapping.java deleted file mode 100644 index b3ba8d0359..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmColumnMapping.java +++ /dev/null @@ -1,27 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2006, 2008 Oracle. All rights reserved. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v1.0, which accompanies this distribution - * and is available at http://www.eclipse.org/legal/epl-v10.html. - * - * Contributors: - * Oracle - initial API and implementation - ******************************************************************************/ -package org.eclipse.jpt.core.context.orm; - -import org.eclipse.jpt.core.context.ColumnMapping; - -/** - * - * - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - */ -public interface OrmColumnMapping extends ColumnMapping, OrmColumn.Owner -{ - - OrmColumn getColumn(); -} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmDiscriminatorColumn.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmDiscriminatorColumn.java deleted file mode 100644 index a600159205..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmDiscriminatorColumn.java +++ /dev/null @@ -1,29 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2008 Oracle. All rights reserved. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v1.0, which accompanies this distribution - * and is available at http://www.eclipse.org/legal/epl-v10.html. - * - * Contributors: - * Oracle - initial API and implementation - ******************************************************************************/ -package org.eclipse.jpt.core.context.orm; - -import org.eclipse.jpt.core.context.DiscriminatorColumn; -import org.eclipse.jpt.core.resource.orm.XmlEntity; - -/** - * - * - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - */ -public interface OrmDiscriminatorColumn extends DiscriminatorColumn, OrmNamedColumn -{ - void initialize(XmlEntity entity); - - void update(XmlEntity entity); -}
\ No newline at end of file diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmEmbeddable.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmEmbeddable.java deleted file mode 100644 index f4b8b08b08..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmEmbeddable.java +++ /dev/null @@ -1,34 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2008 Oracle. All rights reserved. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v1.0, which accompanies this distribution - * and is available at http://www.eclipse.org/legal/epl-v10.html. - * - * Contributors: - * Oracle - initial API and implementation - ******************************************************************************/ -package org.eclipse.jpt.core.context.orm; - -import java.util.Iterator; -import org.eclipse.jpt.core.context.Embeddable; -import org.eclipse.jpt.core.resource.orm.XmlEmbeddable; - -/** - * - * - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - */ -public interface OrmEmbeddable extends Embeddable, OrmTypeMapping -{ - void initialize(XmlEmbeddable mappedSuperclass); - - void update(XmlEmbeddable mappedSuperclass); - - Iterator<OrmPersistentAttribute> overridableAttributes(); - - Iterator<OrmPersistentAttribute> overridableAssociations(); -}
\ No newline at end of file diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmEmbeddedIdMapping.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmEmbeddedIdMapping.java deleted file mode 100644 index 992298aa4b..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmEmbeddedIdMapping.java +++ /dev/null @@ -1,34 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2008 Oracle. All rights reserved. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v1.0, which accompanies this distribution - * and is available at http://www.eclipse.org/legal/epl-v10.html. - * - * Contributors: - * Oracle - initial API and implementation - ******************************************************************************/ -package org.eclipse.jpt.core.context.orm; - -import java.util.ListIterator; -import org.eclipse.jpt.core.context.EmbeddedIdMapping; -import org.eclipse.jpt.core.resource.orm.XmlEmbeddedId; - -/** - * - * - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - */ -public interface OrmEmbeddedIdMapping extends EmbeddedIdMapping, OrmBaseEmbeddedMapping -{ - ListIterator<OrmAttributeOverride> attributeOverrides(); - ListIterator<OrmAttributeOverride> virtualAttributeOverrides(); - ListIterator<OrmAttributeOverride> specifiedAttributeOverrides(); - - void initialize(XmlEmbeddedId embeddedId); - - void update(XmlEmbeddedId embeddedId); -}
\ No newline at end of file diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmEmbeddedMapping.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmEmbeddedMapping.java deleted file mode 100644 index f460a6f186..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmEmbeddedMapping.java +++ /dev/null @@ -1,34 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2008 Oracle. All rights reserved. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v1.0, which accompanies this distribution - * and is available at http://www.eclipse.org/legal/epl-v10.html. - * - * Contributors: - * Oracle - initial API and implementation - ******************************************************************************/ -package org.eclipse.jpt.core.context.orm; - -import java.util.ListIterator; -import org.eclipse.jpt.core.context.EmbeddedMapping; -import org.eclipse.jpt.core.resource.orm.XmlEmbedded; - -/** - * - * - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - */ -public interface OrmEmbeddedMapping extends EmbeddedMapping, OrmBaseEmbeddedMapping -{ - ListIterator<OrmAttributeOverride> attributeOverrides(); - ListIterator<OrmAttributeOverride> virtualAttributeOverrides(); - ListIterator<OrmAttributeOverride> specifiedAttributeOverrides(); - - void initialize(XmlEmbedded embedded); - - void update(XmlEmbedded embedded); -}
\ No newline at end of file diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmEntity.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmEntity.java deleted file mode 100644 index 1d848475ea..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmEntity.java +++ /dev/null @@ -1,123 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2008 Oracle. All rights reserved. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v1.0, which accompanies this distribution - * and is available at http://www.eclipse.org/legal/epl-v10.html. - * - * Contributors: - * Oracle - initial API and implementation - ******************************************************************************/ -package org.eclipse.jpt.core.context.orm; - -import java.util.Iterator; -import java.util.ListIterator; -import org.eclipse.jpt.core.context.Entity; -import org.eclipse.jpt.core.context.java.JavaEntity; -import org.eclipse.jpt.core.resource.orm.XmlEntity; - -/** - * - * - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - */ -public interface OrmEntity extends OrmTypeMapping, Entity, OrmGeneratorHolder -{ - - /** - * Return a list iterator of the virtual(not specified) secondary tables. - * This will not be null. - */ - ListIterator<OrmSecondaryTable> virtualSecondaryTables(); - String VIRTUAL_SECONDARY_TABLES_LIST = "virtualSecondaryTablesList"; - - /** - * Return the number of virtual secondary tables. - */ - int virtualSecondaryTablesSize(); - - /** - * Return whether the entity contains the given secondary table in its list of - * virtual secondary tables - */ - boolean containsVirtualSecondaryTable(OrmSecondaryTable secondaryTable); - - /** - * Return true if there are no virtual secondary tables on the orm entity. - * This is used to determine whether you can add specified secondary tables. - * You must first make sure all virtual secondary tables have been specified - * in xml before adding more. This is because adding one secondary table to xml - * will override all the secondary tables specified in the java entity - */ - boolean secondaryTablesDefinedInXml(); - - /** - * If true, then all virtual secondary tables are added in as specified secondary tables to the xml. - * If false, then all the specified secondary tables are remvoed from the xml. - */ - void setSecondaryTablesDefinedInXml(boolean defineInXml); - - /** - * Return the Java Entity this ORM Entity corresponds to. Return null if there is no - * java entity. - */ - JavaEntity getJavaEntity(); - - void initialize(XmlEntity entity); - - void update(XmlEntity entity); - - - //************ covariant overrides ************* - - OrmTable getTable(); - - OrmDiscriminatorColumn getDiscriminatorColumn(); - - @SuppressWarnings("unchecked") - ListIterator<OrmSecondaryTable> secondaryTables(); - @SuppressWarnings("unchecked") - ListIterator<OrmSecondaryTable> specifiedSecondaryTables(); - OrmSecondaryTable addSpecifiedSecondaryTable(int index); - - - @SuppressWarnings("unchecked") - ListIterator<OrmPrimaryKeyJoinColumn> primaryKeyJoinColumns(); - OrmPrimaryKeyJoinColumn getDefaultPrimaryKeyJoinColumn(); - ListIterator<OrmPrimaryKeyJoinColumn> defaultPrimaryKeyJoinColumns(); - String DEFAULT_PRIMARY_KEY_JOIN_COLUMNS_LIST = "defaultPrimaryKeyJoinColumnsList"; - @SuppressWarnings("unchecked") - ListIterator<OrmPrimaryKeyJoinColumn> specifiedPrimaryKeyJoinColumns(); - OrmPrimaryKeyJoinColumn addSpecifiedPrimaryKeyJoinColumn(int index); - - @SuppressWarnings("unchecked") - ListIterator<OrmAttributeOverride> attributeOverrides(); - @SuppressWarnings("unchecked") - ListIterator<OrmAttributeOverride> specifiedAttributeOverrides(); - @SuppressWarnings("unchecked") - ListIterator<OrmAttributeOverride> virtualAttributeOverrides(); - OrmAttributeOverride getAttributeOverrideNamed(String name); - - @SuppressWarnings("unchecked") - ListIterator<OrmAssociationOverride> associationOverrides(); - @SuppressWarnings("unchecked") - ListIterator<OrmAssociationOverride> specifiedAssociationOverrides(); - @SuppressWarnings("unchecked") - ListIterator<OrmAssociationOverride> virtualAssociationOverrides(); - - @SuppressWarnings("unchecked") - ListIterator<OrmNamedQuery> namedQueries(); - OrmNamedQuery addNamedQuery(int index); - - @SuppressWarnings("unchecked") - ListIterator<OrmNamedNativeQuery> namedNativeQueries(); - OrmNamedNativeQuery addNamedNativeQuery(int index); - - Iterator<OrmPersistentAttribute> overridableAttributes(); - - Iterator<OrmPersistentAttribute> overridableAssociations(); - -}
\ No newline at end of file diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmGeneratedValue.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmGeneratedValue.java deleted file mode 100644 index 3c031e191e..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmGeneratedValue.java +++ /dev/null @@ -1,35 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2008 Oracle. All rights reserved. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v1.0, which accompanies this distribution - * and is available at http://www.eclipse.org/legal/epl-v10.html. - * - * Contributors: - * Oracle - initial API and implementation - ******************************************************************************/ -package org.eclipse.jpt.core.context.orm; - -import org.eclipse.jpt.core.context.GeneratedValue; -import org.eclipse.jpt.core.resource.orm.XmlGeneratedValue; -import org.eclipse.jpt.core.utility.TextRange; - -/** - * - * - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - */ -public interface OrmGeneratedValue extends GeneratedValue, OrmJpaContextNode -{ - /** - * Return the (best guess) text location of the generator. - */ - TextRange getGeneratorTextRange(); - - void initialize(XmlGeneratedValue generatedValue); - - void update(XmlGeneratedValue generatedValue); -}
\ No newline at end of file diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmGenerator.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmGenerator.java deleted file mode 100644 index 1cfa6a6053..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmGenerator.java +++ /dev/null @@ -1,31 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2008 Oracle. - * All rights reserved. This program and the accompanying materials are - * made available under the terms of the Eclipse Public License v1.0 which - * accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Oracle - initial API and implementation - *******************************************************************************/ -package org.eclipse.jpt.core.context.orm; - -import org.eclipse.jpt.core.context.Generator; -import org.eclipse.jpt.core.utility.TextRange; - -/** - * - * - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - */ -public interface OrmGenerator extends Generator -{ - - // **************** validation ********************************************* - - TextRange getNameTextRange(); -} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmGeneratorHolder.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmGeneratorHolder.java deleted file mode 100644 index 5bc5d7050f..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmGeneratorHolder.java +++ /dev/null @@ -1,32 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2008 Oracle. All rights reserved. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v1.0, which accompanies this distribution - * and is available at http://www.eclipse.org/legal/epl-v10.html. - * - * Contributors: - * Oracle - initial API and implementation - ******************************************************************************/ -package org.eclipse.jpt.core.context.orm; - -import org.eclipse.jpt.core.context.GeneratorHolder; - -/** - * - * - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - */ -public interface OrmGeneratorHolder extends GeneratorHolder -{ - OrmSequenceGenerator getSequenceGenerator(); - - OrmSequenceGenerator addSequenceGenerator(); - - OrmTableGenerator getTableGenerator(); - - OrmTableGenerator addTableGenerator(); -}
\ No newline at end of file diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmIdMapping.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmIdMapping.java deleted file mode 100644 index e76327388a..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmIdMapping.java +++ /dev/null @@ -1,32 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2007, 2008 Oracle. All rights reserved. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v1.0, which accompanies this distribution - * and is available at http://www.eclipse.org/legal/epl-v10.html. - * - * Contributors: - * Oracle - initial API and implementation - ******************************************************************************/ -package org.eclipse.jpt.core.context.orm; - -import org.eclipse.jpt.core.context.IdMapping; -import org.eclipse.jpt.core.resource.orm.XmlId; - -/** - * - * - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - */ -public interface OrmIdMapping extends IdMapping, OrmColumnMapping, OrmAttributeMapping, OrmGeneratorHolder -{ - OrmGeneratedValue getGeneratedValue(); - OrmGeneratedValue addGeneratedValue(); - - void initialize(XmlId id); - - void update(XmlId id); -}
\ No newline at end of file diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmJoinColumn.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmJoinColumn.java deleted file mode 100644 index a5f6d1e561..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmJoinColumn.java +++ /dev/null @@ -1,42 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2008 Oracle. All rights reserved. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v1.0, which accompanies this distribution - * and is available at http://www.eclipse.org/legal/epl-v10.html. - * - * Contributors: - * Oracle - initial API and implementation - ******************************************************************************/ -package org.eclipse.jpt.core.context.orm; - -import org.eclipse.jpt.core.context.JoinColumn; -import org.eclipse.jpt.core.resource.orm.XmlJoinColumn; - -/** - * - * - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - */ -public interface OrmJoinColumn extends JoinColumn, OrmBaseJoinColumn, OrmBaseColumn -{ - void initializeFrom(JoinColumn oldColumn); - - void initialize(XmlJoinColumn column); - - void update(XmlJoinColumn column); - - Owner getOwner(); - - /** - * interface allowing join columns to be used in multiple places - * (e.g. 1:1 mappings and join tables) - */ - interface Owner extends JoinColumn.Owner, OrmBaseJoinColumn.Owner, OrmBaseColumn.Owner - { - - } -}
\ No newline at end of file diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmJoinTable.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmJoinTable.java deleted file mode 100644 index 717941f229..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmJoinTable.java +++ /dev/null @@ -1,65 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2008 Oracle. All rights reserved. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v1.0, which accompanies this distribution - * and is available at http://www.eclipse.org/legal/epl-v10.html. - * - * Contributors: - * Oracle - initial API and implementation - ******************************************************************************/ -package org.eclipse.jpt.core.context.orm; - -import java.util.ListIterator; -import org.eclipse.jpt.core.context.JoinTable; -import org.eclipse.jpt.core.resource.orm.XmlRelationshipMapping; - -/** - * - * - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - */ -public interface OrmJoinTable extends JoinTable, OrmJpaContextNode -{ - - boolean isSpecified(); - - void initialize(XmlRelationshipMapping relationshipMapping); - - void update(XmlRelationshipMapping relationshipMapping); - - void initializeFrom(JoinTable oldJoinTable); - - - //****************** covariant overrides ******************* - - OrmRelationshipMapping getParent(); - - @SuppressWarnings("unchecked") - ListIterator<OrmJoinColumn> joinColumns(); - - OrmJoinColumn getDefaultJoinColumn(); - - @SuppressWarnings("unchecked") - ListIterator<OrmJoinColumn> specifiedJoinColumns(); - - OrmJoinColumn addSpecifiedJoinColumn(int index); - - @SuppressWarnings("unchecked") - ListIterator<OrmJoinColumn> inverseJoinColumns(); - - OrmJoinColumn getDefaultInverseJoinColumn(); - - @SuppressWarnings("unchecked") - ListIterator<OrmJoinColumn> specifiedInverseJoinColumns(); - - OrmJoinColumn addSpecifiedInverseJoinColumn(int index); - - @SuppressWarnings("unchecked") - ListIterator<OrmUniqueConstraint> uniqueConstraints(); - - OrmUniqueConstraint addUniqueConstraint(int index); -}
\ No newline at end of file diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmJpaContextNode.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmJpaContextNode.java deleted file mode 100644 index fba346368d..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmJpaContextNode.java +++ /dev/null @@ -1,37 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2008 Oracle. All rights reserved. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v1.0, which accompanies this distribution - * and is available at http://www.eclipse.org/legal/epl-v10.html. - * - * Contributors: - * Oracle - initial API and implementation - ******************************************************************************/ -package org.eclipse.jpt.core.context.orm; - -import java.util.List; -import org.eclipse.jpt.core.context.JpaContextNode; -import org.eclipse.jpt.core.utility.TextRange; -import org.eclipse.wst.validation.internal.provisional.core.IMessage; - -/** - * - * - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - */ -public interface OrmJpaContextNode extends JpaContextNode -{ - // **************** validation ************************************** - - /** - * Add to the list of current validation messages - */ - void addToMessages(List<IMessage> messages); - - TextRange getValidationTextRange(); - -} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmManyToManyMapping.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmManyToManyMapping.java deleted file mode 100644 index 3d0fa79d34..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmManyToManyMapping.java +++ /dev/null @@ -1,30 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2008 Oracle. All rights reserved. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v1.0, which accompanies this distribution - * and is available at http://www.eclipse.org/legal/epl-v10.html. - * - * Contributors: - * Oracle - initial API and implementation - ******************************************************************************/ -package org.eclipse.jpt.core.context.orm; - -import org.eclipse.jpt.core.context.ManyToManyMapping; -import org.eclipse.jpt.core.resource.orm.XmlManyToMany; - -/** - * - * - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - */ -public interface OrmManyToManyMapping extends ManyToManyMapping, OrmMultiRelationshipMapping -{ - - void initialize(XmlManyToMany xmlManyToMany); - - void update(XmlManyToMany xmlManyToMany); -}
\ No newline at end of file diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmManyToOneMapping.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmManyToOneMapping.java deleted file mode 100644 index 9b33b8974f..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmManyToOneMapping.java +++ /dev/null @@ -1,35 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2008 Oracle. All rights reserved. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v1.0, which accompanies this distribution - * and is available at http://www.eclipse.org/legal/epl-v10.html. - * - * Contributors: - * Oracle - initial API and implementation - ******************************************************************************/ -package org.eclipse.jpt.core.context.orm; - -import java.util.ListIterator; -import org.eclipse.jpt.core.context.ManyToOneMapping; -import org.eclipse.jpt.core.resource.orm.XmlManyToOne; - -/** - * - * - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - */ -public interface OrmManyToOneMapping extends ManyToOneMapping, OrmSingleRelationshipMapping -{ - ListIterator<OrmJoinColumn> joinColumns(); - - ListIterator<OrmJoinColumn> specifiedJoinColumns(); - - void initialize(XmlManyToOne xmlManyToOne); - - void update(XmlManyToOne xmlManyToOne); - -}
\ No newline at end of file diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmMappedSuperclass.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmMappedSuperclass.java deleted file mode 100644 index 458a889016..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmMappedSuperclass.java +++ /dev/null @@ -1,34 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2008 Oracle. All rights reserved. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v1.0, which accompanies this distribution - * and is available at http://www.eclipse.org/legal/epl-v10.html. - * - * Contributors: - * Oracle - initial API and implementation - ******************************************************************************/ -package org.eclipse.jpt.core.context.orm; - -import java.util.Iterator; -import org.eclipse.jpt.core.context.MappedSuperclass; -import org.eclipse.jpt.core.resource.orm.XmlMappedSuperclass; - -/** - * - * - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - */ -public interface OrmMappedSuperclass extends MappedSuperclass, OrmTypeMapping -{ - void initialize(XmlMappedSuperclass mappedSuperclass); - - void update(XmlMappedSuperclass mappedSuperclass); - - Iterator<OrmPersistentAttribute> overridableAttributes(); - - Iterator<OrmPersistentAttribute> overridableAssociations(); -}
\ No newline at end of file diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmMultiRelationshipMapping.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmMultiRelationshipMapping.java deleted file mode 100644 index a65523a338..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmMultiRelationshipMapping.java +++ /dev/null @@ -1,27 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2008 Oracle. All rights reserved. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v1.0, which accompanies this distribution - * and is available at http://www.eclipse.org/legal/epl-v10.html. - * - * Contributors: - * Oracle - initial API and implementation - ******************************************************************************/ -package org.eclipse.jpt.core.context.orm; - -import org.eclipse.jpt.core.context.MultiRelationshipMapping; - -/** - * - * - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - */ -public interface OrmMultiRelationshipMapping extends OrmRelationshipMapping, MultiRelationshipMapping -{ - - OrmJoinTable getJoinTable(); -} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmNamedColumn.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmNamedColumn.java deleted file mode 100644 index b36a9d5c14..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmNamedColumn.java +++ /dev/null @@ -1,48 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2008 Oracle. All rights reserved. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v1.0, which accompanies this distribution - * and is available at http://www.eclipse.org/legal/epl-v10.html. - * - * Contributors: - * Oracle - initial API and implementation - ******************************************************************************/ -package org.eclipse.jpt.core.context.orm; - -import org.eclipse.jpt.core.context.NamedColumn; -import org.eclipse.jpt.core.utility.TextRange; - - -/** - * - * - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - */ -public interface OrmNamedColumn extends NamedColumn, OrmJpaContextNode -{ - - Owner getOwner(); - - /** - * Return the (best guess) text location of the column's name. - */ - TextRange getNameTextRange(); - - /** - * interface allowing columns to be used in multiple places - * (e.g. basic mappings and attribute overrides) - */ - interface Owner extends NamedColumn.Owner - { - /** - * Return the column owner's text range. This can be returned by the - * column when its annotation is not present. - */ - TextRange getValidationTextRange(); - - } -}
\ No newline at end of file diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmNamedNativeQuery.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmNamedNativeQuery.java deleted file mode 100644 index d80e1138ee..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmNamedNativeQuery.java +++ /dev/null @@ -1,33 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2008 Oracle. All rights reserved. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v1.0, which accompanies this distribution - * and is available at http://www.eclipse.org/legal/epl-v10.html. - * - * Contributors: - * Oracle - initial API and implementation - ******************************************************************************/ -package org.eclipse.jpt.core.context.orm; - -import java.util.ListIterator; -import org.eclipse.jpt.core.context.NamedNativeQuery; -import org.eclipse.jpt.core.resource.orm.XmlNamedNativeQuery; - -/** - * - * - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - */ -public interface OrmNamedNativeQuery extends OrmQuery, NamedNativeQuery -{ - ListIterator<OrmQueryHint> hints(); - - void initialize(XmlNamedNativeQuery queryResource); - - void update(XmlNamedNativeQuery queryResource); - -}
\ No newline at end of file diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmNamedQuery.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmNamedQuery.java deleted file mode 100644 index 8d37ba5722..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmNamedQuery.java +++ /dev/null @@ -1,32 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2008 Oracle. All rights reserved. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v1.0, which accompanies this distribution - * and is available at http://www.eclipse.org/legal/epl-v10.html. - * - * Contributors: - * Oracle - initial API and implementation - ******************************************************************************/ -package org.eclipse.jpt.core.context.orm; - -import java.util.ListIterator; -import org.eclipse.jpt.core.context.NamedQuery; -import org.eclipse.jpt.core.resource.orm.XmlNamedQuery; - -/** - * - * - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - */ -public interface OrmNamedQuery extends OrmQuery, NamedQuery -{ - ListIterator<OrmQueryHint> hints(); - - void initialize(XmlNamedQuery queryResource); - - void update(XmlNamedQuery queryResource); -}
\ No newline at end of file diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmOneToManyMapping.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmOneToManyMapping.java deleted file mode 100644 index bb0560abf4..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmOneToManyMapping.java +++ /dev/null @@ -1,31 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2008 Oracle. All rights reserved. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v1.0, which accompanies this distribution - * and is available at http://www.eclipse.org/legal/epl-v10.html. - * - * Contributors: - * Oracle - initial API and implementation - ******************************************************************************/ -package org.eclipse.jpt.core.context.orm; - -import org.eclipse.jpt.core.context.OneToManyMapping; -import org.eclipse.jpt.core.resource.orm.XmlOneToMany; - -/** - * - * - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - */ -public interface OrmOneToManyMapping extends OneToManyMapping, OrmMultiRelationshipMapping -{ - - void initialize(XmlOneToMany xmlOneToMany); - - void update(XmlOneToMany xmlOneToMany); - -}
\ No newline at end of file diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmOneToOneMapping.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmOneToOneMapping.java deleted file mode 100644 index 9be2aabad9..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmOneToOneMapping.java +++ /dev/null @@ -1,43 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2008 Oracle. All rights reserved. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v1.0, which accompanies this distribution - * and is available at http://www.eclipse.org/legal/epl-v10.html. - * - * Contributors: - * Oracle - initial API and implementation - ******************************************************************************/ -package org.eclipse.jpt.core.context.orm; - -import java.util.ListIterator; -import org.eclipse.jpt.core.context.OneToOneMapping; -import org.eclipse.jpt.core.resource.orm.XmlOneToOne; - -/** - * - * - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - */ -public interface OrmOneToOneMapping extends OneToOneMapping, OrmSingleRelationshipMapping -{ - - void initialize(XmlOneToOne oneToOne); - - void update(XmlOneToOne oneToOne); - - - // ********** covariant overrides ********** - ListIterator<OrmJoinColumn> joinColumns(); - - ListIterator<OrmJoinColumn> specifiedJoinColumns(); - - @SuppressWarnings("unchecked") - ListIterator<OrmPrimaryKeyJoinColumn> primaryKeyJoinColumns(); - - OrmPrimaryKeyJoinColumn addPrimaryKeyJoinColumn(int index); - -}
\ No newline at end of file diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmPersistentAttribute.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmPersistentAttribute.java deleted file mode 100644 index 0cadf3e218..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmPersistentAttribute.java +++ /dev/null @@ -1,139 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2006, 2008 Oracle. All rights reserved. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v1.0, which accompanies this distribution - * and is available at http://www.eclipse.org/legal/epl-v10.html. - * - * Contributors: - * Oracle - initial API and implementation - ******************************************************************************/ -package org.eclipse.jpt.core.context.orm; - -import org.eclipse.jpt.core.context.PersistentAttribute; -import org.eclipse.jpt.core.resource.orm.XmlBasic; -import org.eclipse.jpt.core.resource.orm.XmlEmbedded; -import org.eclipse.jpt.core.resource.orm.XmlEmbeddedId; -import org.eclipse.jpt.core.resource.orm.XmlId; -import org.eclipse.jpt.core.resource.orm.XmlManyToMany; -import org.eclipse.jpt.core.resource.orm.XmlManyToOne; -import org.eclipse.jpt.core.resource.orm.XmlNullAttributeMapping; -import org.eclipse.jpt.core.resource.orm.XmlOneToMany; -import org.eclipse.jpt.core.resource.orm.XmlOneToOne; -import org.eclipse.jpt.core.resource.orm.XmlTransient; -import org.eclipse.jpt.core.resource.orm.XmlVersion; - -/** - * - * - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - */ -public interface OrmPersistentAttribute extends PersistentAttribute, OrmJpaContextNode -{ - - /** - * Overriden to return {@link OrmAttributeMapping}s - */ - OrmAttributeMapping getMapping(); - - /** - * Overriden to return {@link OrmAttributeMapping}s - */ - OrmAttributeMapping getSpecifiedMapping(); - - /** - * Overriden to return {@link OrmTypeMapping}s - */ - OrmTypeMapping getTypeMapping(); - - /** - * Overriden to return {@link OrmPersistentType}s - */ - OrmPersistentType getPersistentType(); - - boolean contains(int textOffset); - - /** - * Make the persistent attribute virtual. The attribute will be removed - * from the list of specified persistent attributes on the {@link OrmPersistentType} - * and removed from the orm.xml file. - * - * If the persistent attribute is already virtual, an IllegalStateException is thrown - * @see PersistentAttribute#isVirtual() - */ - void makeVirtual(); - - /** - * Take a virtual persistent attribute and specify it. - * The attribute will be added to the list of specified persistent attributes - * and added to the orm.xml file. The mappingKey will remain the same. - * - * If the persistent attribute is already specified, an IllegalStateException is thrown - * @see PersistentAttribute#isVirtual() - */ - void makeSpecified(); - - /** - * Take a virtual persistent attribute and specify it. - * The attribute will be added to the list of specified persistent attributes - * and added to the orm.xml file. The mappingKey will determine the type of mapping added - * instead of the mappingKey already on the persistent attribute - * - * If the persistent attribute is already specified, an IllegalStateException is thrown - * @see PersistentAttribute#isVirtual() - */ - void makeSpecified(String mappingKey); - - void nameChanged(String oldName, String newName); - - - //******************* initialization/updating ******************* - - void initialize(XmlBasic basic); - - void initialize(XmlEmbedded embedded); - - void initialize(XmlVersion version); - - void initialize(XmlManyToOne manyToOne); - - void initialize(XmlOneToMany oneToMany); - - void initialize(XmlOneToOne oneToOne); - - void initialize(XmlManyToMany manyToMany); - - void initialize(XmlId id); - - void initialize(XmlEmbeddedId embeddedId); - - void initialize(XmlTransient transientResource); - - void initialize(XmlNullAttributeMapping xmlNullAttributeMapping); - - void update(XmlId id); - - void update(XmlEmbeddedId embeddedId); - - void update(XmlBasic basic); - - void update(XmlVersion version); - - void update(XmlManyToOne manyToOne); - - void update(XmlOneToMany oneToMany); - - void update(XmlOneToOne oneToOne); - - void update(XmlManyToMany manyToMany); - - void update(XmlEmbedded embedded); - - void update(XmlTransient transientResource); - - void update(XmlNullAttributeMapping xmlNullAttributeMapping); - -}
\ No newline at end of file diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmPersistentType.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmPersistentType.java deleted file mode 100644 index ed07de1582..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmPersistentType.java +++ /dev/null @@ -1,142 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2008 Oracle. All rights reserved. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v1.0, which accompanies this distribution - * and is available at http://www.eclipse.org/legal/epl-v10.html. - * - * Contributors: - * Oracle - initial API and implementation - ******************************************************************************/ -package org.eclipse.jpt.core.context.orm; - -import java.util.ListIterator; -import org.eclipse.jpt.core.context.PersistentType; -import org.eclipse.jpt.core.context.java.JavaPersistentType; -import org.eclipse.jpt.core.resource.orm.XmlEmbeddable; -import org.eclipse.jpt.core.resource.orm.XmlEntity; -import org.eclipse.jpt.core.resource.orm.XmlMappedSuperclass; - -/** - * - * - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - */ -public interface OrmPersistentType extends PersistentType, OrmJpaContextNode -{ - /** - * Overriden to return {@link OrmPersistentAttribute}s - */ - @SuppressWarnings("unchecked") - ListIterator<OrmPersistentAttribute> attributes(); - - /** - * Overriden to return an {@link OrmPersistentAttribute} - */ - OrmPersistentAttribute getAttributeNamed(String attributeName); - - /** - * Overriden to return an {@link OrmTypeMapping} - */ - OrmTypeMapping getMapping(); - - //******************* specified attributes ******************* - - /** - * Return a read only iterator of the specified {@link OrmPersistentAttribute}s. - */ - ListIterator<OrmPersistentAttribute> specifiedAttributes(); - - /** - * Return the number of specified {@link OrmPersistentAttribute}s. - */ - int specifiedAttributesSize(); - - //TODO these are currently only used by tests, possibly remove them. OrmPersistenAttributes.setVirtual(boolean) is used by the UI - OrmPersistentAttribute addSpecifiedPersistentAttribute(String mappingKey, String attributeName); - void removeSpecifiedPersistentAttribute(OrmPersistentAttribute ormPersistentAttribute); - - - //******************* vritual attributes ******************* - String VIRTUAL_ATTRIBUTES_LIST = "virtualAttributesList"; - - /** - * Return a read only iterator of the virtual orm persistent attributes. These - * are attributes that exist in the underyling java class, but are not specified - * in the orm.xml - */ - ListIterator<OrmPersistentAttribute> virtualAttributes(); - - /** - * Return the number of virtual orm persistent attributes. These are attributes that - * exist in the underyling java class, but are not specified in the orm.xml - */ - int virtualAttributesSize(); - - /** - * Return whether this persistent type contains the given virtual persistent attribute. - */ - boolean containsVirtualPersistentAttribute(OrmPersistentAttribute ormPersistentAttribute); - - /** - * Remove the given specified orm persistent attribute from the orm.xml. The attribute - * will be removed from the orm.xml and moved from the list of specified attributes - * to the list of virtual attributes. - */ - void makePersistentAttributeVirtual(OrmPersistentAttribute ormPersistentAttribute); - - /** - * Add the given virtual orm persistent attribute to the orm.xml. The attribute will - * be added to the orm.xml and moved from the list of virtual attributes to the list - * of specified attributes - */ - void makePersistentAttributeSpecified(OrmPersistentAttribute ormPersistentAttribute); - - /** - * Add the given virtual orm persistent attribute to the orm.xml with a mapping of - * type mappingKey. The attribute will be added to the orm.xml and moved from - * the list of virtual attributes to the list of specified attributes - */ - void makePersistentAttributeSpecified(OrmPersistentAttribute ormPersistentAttribute, String mappingKey); - - //******************* mapping morphing ******************* - void changeMapping(OrmPersistentAttribute ormPersistentAttribute, OrmAttributeMapping oldMapping, OrmAttributeMapping newMapping); - - - //******************* initialization/updating ******************* - - void initialize(XmlEntity entity); - - void initialize(XmlMappedSuperclass mappedSuperclass); - - void initialize(XmlEmbeddable embeddable); - - void update(XmlEntity entity); - - void update(XmlMappedSuperclass mappedSuperclass); - - void update(XmlEmbeddable embeddable); - - - - boolean contains(int textOffset); - - /** - * Return whether this {@link OrmPersistentType) applies to the - * given fullyQualifiedTypeName. - */ - boolean isFor(String fullyQualifiedTypeName); - - void classChanged(String oldClass, String newClass); - - /** - * Return the Java persistent type that is referred to by this orm.xml persistent type. - * If there is no underlying java persistent type, then null is returned. - * @return - */ - JavaPersistentType getJavaPersistentType(); - -} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmPrimaryKeyJoinColumn.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmPrimaryKeyJoinColumn.java deleted file mode 100644 index 83efee2974..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmPrimaryKeyJoinColumn.java +++ /dev/null @@ -1,31 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2008 Oracle. All rights reserved. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v1.0, which accompanies this distribution - * and is available at http://www.eclipse.org/legal/epl-v10.html. - * - * Contributors: - * Oracle - initial API and implementation - ******************************************************************************/ -package org.eclipse.jpt.core.context.orm; - -import org.eclipse.jpt.core.context.PrimaryKeyJoinColumn; -import org.eclipse.jpt.core.resource.orm.XmlPrimaryKeyJoinColumn; - -/** - * - * - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - */ -public interface OrmPrimaryKeyJoinColumn extends PrimaryKeyJoinColumn, OrmBaseJoinColumn -{ - void initialize(XmlPrimaryKeyJoinColumn column); - - void update(XmlPrimaryKeyJoinColumn column); - - void initializeFrom(PrimaryKeyJoinColumn oldPkJoinColumn); -}
\ No newline at end of file diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmQuery.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmQuery.java deleted file mode 100644 index f3790cc3b4..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmQuery.java +++ /dev/null @@ -1,36 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2008 Oracle. All rights reserved. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v1.0, which accompanies this distribution - * and is available at http://www.eclipse.org/legal/epl-v10.html. - * - * Contributors: - * Oracle - initial API and implementation - ******************************************************************************/ -package org.eclipse.jpt.core.context.orm; - -import java.util.ListIterator; -import org.eclipse.jpt.core.context.Query; -import org.eclipse.jpt.core.utility.TextRange; - -/** - * - * - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - */ -public interface OrmQuery extends Query, OrmJpaContextNode -{ - @SuppressWarnings("unchecked") - ListIterator<OrmQueryHint> hints(); - - OrmQueryHint addHint(int index); - - - // **************** validation ********************************************* - - TextRange getNameTextRange(); -}
\ No newline at end of file diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmQueryHint.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmQueryHint.java deleted file mode 100644 index 3031ff6f63..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmQueryHint.java +++ /dev/null @@ -1,29 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2008 Oracle. All rights reserved. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v1.0, which accompanies this distribution - * and is available at http://www.eclipse.org/legal/epl-v10.html. - * - * Contributors: - * Oracle - initial API and implementation - ******************************************************************************/ -package org.eclipse.jpt.core.context.orm; - -import org.eclipse.jpt.core.context.QueryHint; -import org.eclipse.jpt.core.resource.orm.XmlQueryHint; - -/** - * - * - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - */ -public interface OrmQueryHint extends QueryHint, OrmJpaContextNode -{ - void initialize(XmlQueryHint queryHint); - - void update(XmlQueryHint queryHint); -}
\ No newline at end of file diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmRelationshipMapping.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmRelationshipMapping.java deleted file mode 100644 index 6e35ea582e..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmRelationshipMapping.java +++ /dev/null @@ -1,27 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2008 Oracle. All rights reserved. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v1.0, which accompanies this distribution - * and is available at http://www.eclipse.org/legal/epl-v10.html. - * - * Contributors: - * Oracle - initial API and implementation - ******************************************************************************/ -package org.eclipse.jpt.core.context.orm; - -import org.eclipse.jpt.core.context.RelationshipMapping; - -/** - * - * - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - */ -public interface OrmRelationshipMapping - extends OrmAttributeMapping, RelationshipMapping -{ - // nothing yet -} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmSecondaryTable.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmSecondaryTable.java deleted file mode 100644 index 47e5cb48f4..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmSecondaryTable.java +++ /dev/null @@ -1,51 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2008 Oracle. All rights reserved. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v1.0, which accompanies this distribution - * and is available at http://www.eclipse.org/legal/epl-v10.html. - * - * Contributors: - * Oracle - initial API and implementation - ******************************************************************************/ -package org.eclipse.jpt.core.context.orm; - -import java.util.ListIterator; -import org.eclipse.jpt.core.context.SecondaryTable; -import org.eclipse.jpt.core.resource.orm.XmlSecondaryTable; - -/** - * - * - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - */ -public interface OrmSecondaryTable extends SecondaryTable, OrmJpaContextNode -{ - - void update(XmlSecondaryTable secondaryTable); - - void initializeFrom(SecondaryTable oldSecondaryTable); - - - //************ covariant overrides ************* - - OrmEntity getParent(); - - @SuppressWarnings("unchecked") - ListIterator<OrmPrimaryKeyJoinColumn> primaryKeyJoinColumns(); - - OrmPrimaryKeyJoinColumn getDefaultPrimaryKeyJoinColumn(); - - @SuppressWarnings("unchecked") - ListIterator<OrmPrimaryKeyJoinColumn> specifiedPrimaryKeyJoinColumns(); - - OrmPrimaryKeyJoinColumn addSpecifiedPrimaryKeyJoinColumn(int index); - - @SuppressWarnings("unchecked") - ListIterator<OrmUniqueConstraint> uniqueConstraints(); - - OrmUniqueConstraint addUniqueConstraint(int index); -}
\ No newline at end of file diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmSequenceGenerator.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmSequenceGenerator.java deleted file mode 100644 index ed75a3be8c..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmSequenceGenerator.java +++ /dev/null @@ -1,29 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2008 Oracle. All rights reserved. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v1.0, which accompanies this distribution - * and is available at http://www.eclipse.org/legal/epl-v10.html. - * - * Contributors: - * Oracle - initial API and implementation - ******************************************************************************/ -package org.eclipse.jpt.core.context.orm; - -import org.eclipse.jpt.core.context.SequenceGenerator; -import org.eclipse.jpt.core.resource.orm.XmlSequenceGenerator; - -/** - * - * - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - */ -public interface OrmSequenceGenerator extends SequenceGenerator, OrmGenerator, OrmJpaContextNode -{ - void initialize(XmlSequenceGenerator sequenceGenerator); - - void update(XmlSequenceGenerator sequenceGenerator); -}
\ No newline at end of file diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmSingleRelationshipMapping.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmSingleRelationshipMapping.java deleted file mode 100644 index bfced13c1c..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmSingleRelationshipMapping.java +++ /dev/null @@ -1,37 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2008 Oracle. All rights reserved. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v1.0, which accompanies this distribution - * and is available at http://www.eclipse.org/legal/epl-v10.html. - * - * Contributors: - * Oracle - initial API and implementation - ******************************************************************************/ -package org.eclipse.jpt.core.context.orm; - -import java.util.ListIterator; -import org.eclipse.jpt.core.context.SingleRelationshipMapping; - -/** - * - * - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - */ -public interface OrmSingleRelationshipMapping extends OrmRelationshipMapping, SingleRelationshipMapping -{ - @SuppressWarnings("unchecked") - ListIterator<OrmJoinColumn> joinColumns(); - - OrmJoinColumn getDefaultJoinColumn(); - - @SuppressWarnings("unchecked") - ListIterator<OrmJoinColumn> specifiedJoinColumns(); - - OrmJoinColumn addSpecifiedJoinColumn(int index); - - -} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmStructureNodes.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmStructureNodes.java deleted file mode 100644 index f6e5dba9db..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmStructureNodes.java +++ /dev/null @@ -1,34 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2006, 2008 Oracle. All rights reserved. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v1.0, which accompanies this distribution - * and is available at http://www.eclipse.org/legal/epl-v10.html. - * - * Contributors: - * Oracle - initial API and implementation - ******************************************************************************/ -package org.eclipse.jpt.core.context.orm; - -import org.eclipse.jpt.core.JptCorePlugin; - -/** - * - * - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - */ -public interface OrmStructureNodes -{ - - String ENTITY_MAPPINGS_ID = - JptCorePlugin.PLUGIN_ID + ".orm.entityMappings"; - - String PERSISTENT_TYPE_ID = - JptCorePlugin.PLUGIN_ID + ".orm.persistentType"; - - String PERSISTENT_ATTRIBUTE_ID = - JptCorePlugin.PLUGIN_ID + ".orm.persistentAttribute"; -} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmTable.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmTable.java deleted file mode 100644 index ca0d2b794a..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmTable.java +++ /dev/null @@ -1,38 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2008 Oracle. All rights reserved. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v1.0, which accompanies this distribution - * and is available at http://www.eclipse.org/legal/epl-v10.html. - * - * Contributors: - * Oracle - initial API and implementation - ******************************************************************************/ -package org.eclipse.jpt.core.context.orm; - -import java.util.ListIterator; -import org.eclipse.jpt.core.context.Table; -import org.eclipse.jpt.core.resource.orm.XmlEntity; - -/** - * - * - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - */ -public interface OrmTable extends Table, OrmJpaContextNode -{ - void initialize(XmlEntity entity); - - void update(XmlEntity entity); - - - //****************** covariant overrides ******************* - - @SuppressWarnings("unchecked") - ListIterator<OrmUniqueConstraint> uniqueConstraints(); - - OrmUniqueConstraint addUniqueConstraint(int index); -}
\ No newline at end of file diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmTableGenerator.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmTableGenerator.java deleted file mode 100644 index 9f3183a4fe..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmTableGenerator.java +++ /dev/null @@ -1,38 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2008 Oracle. All rights reserved. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v1.0, which accompanies this distribution - * and is available at http://www.eclipse.org/legal/epl-v10.html. - * - * Contributors: - * Oracle - initial API and implementation - ******************************************************************************/ -package org.eclipse.jpt.core.context.orm; - -import java.util.ListIterator; -import org.eclipse.jpt.core.context.TableGenerator; -import org.eclipse.jpt.core.resource.orm.XmlTableGenerator; - -/** - * - * - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - */ -public interface OrmTableGenerator extends TableGenerator, OrmGenerator, OrmJpaContextNode -{ - void initialize(XmlTableGenerator tableGenerator); - - void update(XmlTableGenerator tableGenerator); - - //****************** covariant overrides ******************* - - @SuppressWarnings("unchecked") - ListIterator<OrmUniqueConstraint> uniqueConstraints(); - - OrmUniqueConstraint addUniqueConstraint(int index); - -}
\ No newline at end of file diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmTransientMapping.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmTransientMapping.java deleted file mode 100644 index 48ffec4f57..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmTransientMapping.java +++ /dev/null @@ -1,29 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2008 Oracle. All rights reserved. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v1.0, which accompanies this distribution - * and is available at http://www.eclipse.org/legal/epl-v10.html. - * - * Contributors: - * Oracle - initial API and implementation - ******************************************************************************/ -package org.eclipse.jpt.core.context.orm; - -import org.eclipse.jpt.core.context.TransientMapping; -import org.eclipse.jpt.core.resource.orm.XmlTransient; - -/** - * - * - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - */ -public interface OrmTransientMapping extends TransientMapping, OrmAttributeMapping -{ - void initialize(XmlTransient transientResource); - - void update(XmlTransient transientResource); -}
\ No newline at end of file diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmTypeMapping.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmTypeMapping.java deleted file mode 100644 index af424ab142..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmTypeMapping.java +++ /dev/null @@ -1,90 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2008 Oracle. All rights reserved. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v1.0, which accompanies this distribution - * and is available at http://www.eclipse.org/legal/epl-v10.html. - * - * Contributors: - * Oracle - initial API and implementation - ******************************************************************************/ -package org.eclipse.jpt.core.context.orm; - -import java.util.Iterator; -import org.eclipse.jpt.core.context.AccessType; -import org.eclipse.jpt.core.context.TypeMapping; -import org.eclipse.jpt.core.context.java.JavaPersistentType; -import org.eclipse.jpt.core.resource.orm.AbstractXmlTypeMapping; -import org.eclipse.jpt.core.resource.orm.XmlEntityMappings; -import org.eclipse.jpt.core.utility.TextRange; - -/** - * - * - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - */ -public interface OrmTypeMapping extends TypeMapping, OrmJpaContextNode -{ - String JAVA_PERSISTENT_TYPE_PROPERTY = "javaPersistentTypeProperty"; - - String getClass_(); - void setClass(String newClass); - String CLASS_PROPERTY = "classProperty"; - - AccessType getAccess(); - AccessType getDefaultAccess(); - String DEFAULT_ACCESS_PROPERTY = "defaultAccessProperty"; - - AccessType getSpecifiedAccess(); - void setSpecifiedAccess(AccessType newSpecifiedAccess); - String SPECIFIED_ACCESS_PROPERTY = "specifiedAccessProperty"; - - - boolean isMetadataComplete(); - Boolean getSpecifiedMetadataComplete(); - void setSpecifiedMetadataComplete(Boolean newSpecifiedMetadataComplete); - String SPECIFIED_METADATA_COMPLETE_PROPERTY = "specifiedMetadataCompleteProperty"; - - boolean isDefaultMetadataComplete(); - String DEFAULT_METADATA_COMPLETE_PROPERTY = "defaultMetadataCompleteProperty"; - - - /** - * type mappings are a sequence in the orm schema. We must keep - * the list of type mappings in the appropriate order so the wtp xml - * translators will write them to the xml in that order and they - * will adhere to the schema. - * - * Each concrete subclass of XmlTypeMapping must implement this - * method and return an int that matches it's order in the schema - * @return - */ - int getXmlSequence(); - - void removeFromResourceModel(XmlEntityMappings entityMappings); - - AbstractXmlTypeMapping addToResourceModel(XmlEntityMappings entityMappings); - - void initializeFrom(OrmTypeMapping oldMapping); - - AbstractXmlTypeMapping getTypeMappingResource(); - - JavaPersistentType getJavaPersistentType(); - - TextRange getSelectionTextRange(); - - TextRange getAttributesTextRange(); - - boolean containsOffset(int textOffset); - - OrmPersistentType getPersistentType(); - - @SuppressWarnings("unchecked") - Iterator<OrmPersistentAttribute> overridableAttributes(); - - @SuppressWarnings("unchecked") - Iterator<OrmPersistentAttribute> overridableAssociations(); -} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmTypeMappingProvider.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmTypeMappingProvider.java deleted file mode 100644 index 2260f62550..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmTypeMappingProvider.java +++ /dev/null @@ -1,29 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2006, 2008 Oracle. All rights reserved. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v1.0, which accompanies this distribution - * and is available at http://www.eclipse.org/legal/epl-v10.html. - * - * Contributors: - * Oracle - initial API and implementation - ******************************************************************************/ -package org.eclipse.jpt.core.context.orm; - -import org.eclipse.jpt.core.JpaFactory; - -/** - * - * - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - */ -public interface OrmTypeMappingProvider -{ - String getKey(); - - OrmTypeMapping buildTypeMapping(JpaFactory factory, OrmPersistentType parent); - -} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmUniqueConstraint.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmUniqueConstraint.java deleted file mode 100644 index 99abcc5fc0..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmUniqueConstraint.java +++ /dev/null @@ -1,27 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2008 Oracle. All rights reserved. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v1.0, which accompanies this distribution - * and is available at http://www.eclipse.org/legal/epl-v10.html. - * - * Contributors: - * Oracle - initial API and implementation - ******************************************************************************/ -package org.eclipse.jpt.core.context.orm; - -import org.eclipse.jpt.core.context.UniqueConstraint; -import org.eclipse.jpt.core.resource.orm.XmlUniqueConstraint; - -/** - * - * - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - */ -public interface OrmUniqueConstraint extends UniqueConstraint, OrmJpaContextNode -{ - void update(XmlUniqueConstraint uniqueConstraint); -}
\ No newline at end of file diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmVersionMapping.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmVersionMapping.java deleted file mode 100644 index 36192c804f..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmVersionMapping.java +++ /dev/null @@ -1,29 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2008 Oracle. All rights reserved. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v1.0, which accompanies this distribution - * and is available at http://www.eclipse.org/legal/epl-v10.html. - * - * Contributors: - * Oracle - initial API and implementation - ******************************************************************************/ -package org.eclipse.jpt.core.context.orm; - -import org.eclipse.jpt.core.context.VersionMapping; -import org.eclipse.jpt.core.resource.orm.XmlVersion; - -/** - * - * - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - */ -public interface OrmVersionMapping extends VersionMapping, OrmColumnMapping, OrmAttributeMapping -{ - void initialize(XmlVersion version); - - void update(XmlVersion version); -}
\ No newline at end of file diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmXml.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmXml.java deleted file mode 100644 index 5eb6af8db0..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/OrmXml.java +++ /dev/null @@ -1,67 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2007, 2008 Oracle. All rights reserved. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v1.0, which accompanies this distribution - * and is available at http://www.eclipse.org/legal/epl-v10.html. - * - * Contributors: - * Oracle - initial API and implementation - ******************************************************************************/ -package org.eclipse.jpt.core.context.orm; - -import org.eclipse.jpt.core.JpaStructureNode; -import org.eclipse.jpt.core.context.persistence.MappingFileRef; -import org.eclipse.jpt.core.resource.orm.OrmResource; - -/** - * - * - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - */ -public interface OrmXml extends OrmJpaContextNode, JpaStructureNode -{ - - MappingFileRef getParent(); - - // **************** persistence ******************************************* - - /** - * String constant associated with changes to the entity-mappings property - */ - public final static String ENTITY_MAPPINGS_PROPERTY = "entityMappingsProperty"; - - /** - * Return the content represented by the root of the orm.xml file. - * This may be null. - */ - EntityMappings getEntityMappings(); - - /** - * Add a entity-mappings node to the orm.xml file and return the object - * representing it. - * Throws {@link IllegalStateException} if a entity-mappings node already exists. - */ - EntityMappings addEntityMappings(); - - /** - * Remove the entity-mappings node from the orm.xml file. - * Throws {@link IllegalStateException} if a persistence node does not exist. - */ - void removeEntityMappings(); - - PersistenceUnitDefaults getPersistenceUnitDefaults(); - - /** - * Return the OrmPersistentType listed in this mapping file - * with the given fullyQualifiedTypeName. Return null if none exists. - */ - OrmPersistentType getPersistentType(String fullyQualifiedTypeName); - - // **************** updating ********************************************** - - void update(OrmResource ormResource); -} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/PersistenceUnitDefaults.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/PersistenceUnitDefaults.java deleted file mode 100644 index 8522fbc117..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/PersistenceUnitDefaults.java +++ /dev/null @@ -1,59 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2006, 2008 Oracle. All rights reserved. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v1.0, which accompanies this distribution - * and is available at http://www.eclipse.org/legal/epl-v10.html. - * - * Contributors: - * Oracle - initial API and implementation - ******************************************************************************/ -package org.eclipse.jpt.core.context.orm; - -import org.eclipse.jpt.core.context.AccessType; -import org.eclipse.jpt.core.resource.orm.XmlEntityMappings; - -/** - * - * - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - */ -public interface PersistenceUnitDefaults extends OrmJpaContextNode -{ - - /** - * Return the specifiedSchema if not null, otherwise return the defaultSchema. - */ - String getSchema(); - String getDefaultSchema(); - String DEFAULT_SCHEMA_PROPERTY = "defaultSchemaProperty"; - String getSpecifiedSchema(); - void setSpecifiedSchema(String newSpecifiedSchema); - String SPECIFIED_SCHEMA_PROPERTY = "specifiedSchemaProperty"; - - /** - * Return the specifiedCatalog if not null, otherwise return the defaultCatalog. - */ - String getCatalog(); - String getDefaultCatalog(); - String DEFAULT_CATALOG_PROPERTY = "defaultCatalogProperty"; - String getSpecifiedCatalog(); - void setSpecifiedCatalog(String newSpecifiedCatalog); - String SPECIFIED_CATALOG_PROPERTY = "specifiedCatalogProperty"; - - AccessType getAccess(); - void setAccess(AccessType value); - String ACCESS_PROPERTY = "accessProperty"; - - boolean isCascadePersist(); - - void setCascadePersist(boolean value); - String CASCADE_PERSIST_PROPERTY = "cascadePersistProperty"; - - - void update(XmlEntityMappings entityMappings); - -} diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/PersistenceUnitMetadata.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/PersistenceUnitMetadata.java deleted file mode 100644 index 4b00f0561f..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/context/orm/PersistenceUnitMetadata.java +++ /dev/null @@ -1,33 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2006, 2008 Oracle. All rights reserved. - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v1.0, which accompanies this distribution - * and is available at http://www.eclipse.org/legal/epl-v10.html. - * - * Contributors: - * Oracle - initial API and implementation - ******************************************************************************/ -package org.eclipse.jpt.core.context.orm; - -import org.eclipse.jpt.core.resource.orm.XmlEntityMappings; - -/** - * - * - * Provisional API: This interface is part of an interim API that is still - * under development and expected to change significantly before reaching - * stability. It is available at this early stage to solicit feedback from - * pioneering adopters on the understanding that any code that uses this API - * will almost certainly be broken (repeatedly) as the API evolves. - */ -public interface PersistenceUnitMetadata extends OrmJpaContextNode -{ - boolean isXmlMappingMetadataComplete(); - void setXmlMappingMetadataComplete(boolean value); - String XML_MAPPING_METADATA_COMPLETE_PROPERTY = "xmlMappingMetadataCompleteProperty"; - - PersistenceUnitDefaults getPersistenceUnitDefaults(); - - void update(XmlEntityMappings entityMappings); - -} |