diff options
Diffstat (limited to 'jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/internal/context/AbstractJpaContextNode.java')
-rw-r--r-- | jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/internal/context/AbstractJpaContextNode.java | 63 |
1 files changed, 0 insertions, 63 deletions
diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/internal/context/AbstractJpaContextNode.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/internal/context/AbstractJpaContextNode.java deleted file mode 100644 index cb7cab0f38..0000000000 --- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/internal/context/AbstractJpaContextNode.java +++ /dev/null @@ -1,63 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2007 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.internal.context; - -import org.eclipse.jpt.core.JpaNode; -import org.eclipse.jpt.core.context.JpaContextNode; -import org.eclipse.jpt.core.context.orm.EntityMappings; -import org.eclipse.jpt.core.context.orm.OrmPersistentType; -import org.eclipse.jpt.core.context.persistence.PersistenceUnit; -import org.eclipse.jpt.core.internal.AbstractJpaNode; - -public abstract class AbstractJpaContextNode extends AbstractJpaNode - implements JpaContextNode -{ - // **************** constructor ******************************************** - - protected AbstractJpaContextNode(JpaNode parent) { - super(parent); - } - - - // **************** JpaNode impl ******************************************* - - @Override - public JpaContextNode getParent() { - return (JpaContextNode) super.getParent(); - } - - - // **************** JpaContextNode impl ************************************ - - /** - * Overidden in BaseJpaContext, Persistence, PersitsenceXml to throw UnsupportedOperationException - * Overidden in PersistenceUnit to return it. - */ - public PersistenceUnit getPersistenceUnit() { - return getParent().getPersistenceUnit(); - } - - /** - * Overidden in BaseJpaContext to return null - * Overidden in EntityMappings to return it. - */ - public EntityMappings getEntityMappings() { - return getParent().getEntityMappings(); - } - - /** - * Overidden in BaseJpaContext to return null - * Overidden in OrmPersistentType to return it. - */ - public OrmPersistentType getOrmPersistentType() { - return getParent().getOrmPersistentType(); - } -} |