Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornhauge2011-05-19 06:47:14 +0000
committernhauge2011-05-19 06:47:14 +0000
commit63da5009a46b2867bccf25c5ea3208bb982461ff (patch)
treee37730a0d9a6e42c5e12f84360fb3fe6fe51f59b /jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpql/JpaPersistenceUnit.java
parenta66a6c5ac6c58f8403d161139d06836dcd49347b (diff)
downloadwebtools.dali-63da5009a46b2867bccf25c5ea3208bb982461ff.tar.gz
webtools.dali-63da5009a46b2867bccf25c5ea3208bb982461ff.tar.xz
webtools.dali-63da5009a46b2867bccf25c5ea3208bb982461ff.zip
This commit was manufactured by cvs2svn to create tag 'v201105180000'.v201105180000
Diffstat (limited to 'jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpql/JpaPersistenceUnit.java')
-rw-r--r--jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpql/JpaPersistenceUnit.java81
1 files changed, 0 insertions, 81 deletions
diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpql/JpaPersistenceUnit.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpql/JpaPersistenceUnit.java
deleted file mode 100644
index c6b289b9bd..0000000000
--- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/jpql/JpaPersistenceUnit.java
+++ /dev/null
@@ -1,81 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2011 Oracle. All rights reserved.
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v1.0 and Eclipse Distribution License v. 1.0
- * which accompanies this distribution.
- * The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html
- * and the Eclipse Distribution License is available at
- * http://www.eclipse.org/org/documents/edl-v10.php.
- *
- * Contributors:
- * Oracle - initial API and implementation
- *
- ******************************************************************************/
-package org.eclipse.jpt.jpa.core.internal.jpql;
-
-import java.util.Iterator;
-import org.eclipse.jpt.common.utility.internal.iterators.CompositeIterator;
-import org.eclipse.jpt.common.utility.internal.iterators.TransformationIterator;
-import org.eclipse.jpt.jpa.core.JpaProject;
-import org.eclipse.jpt.jpa.core.context.Entity;
-import org.eclipse.jpt.jpa.core.context.PersistentType;
-import org.eclipse.jpt.jpa.core.context.TypeMapping;
-import org.eclipse.jpt.jpa.core.context.persistence.ClassRef;
-import org.eclipse.jpt.jpa.core.context.persistence.PersistenceUnit;
-
-/**
- * The concrete implementation that is wrapping the design-time representation of a persistence unit.
- *
- * @version 3.0
- * @since 3.0
- * @author Pascal Filion
- */
-public final class JpaPersistenceUnit extends JpaManagedTypeProvider {
-
- /**
- * Creates a new <code>JpaPersistenceUnit</code>.
- *
- * @param jpaProject The project that gives access to the application's metadata
- * @param persistentUnit The design-time persistence unit
- */
- public JpaPersistenceUnit(JpaProject jpaProject, PersistenceUnit persistentUnit) {
- super(jpaProject, persistentUnit);
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- JpaEntity buildEntity(TypeMapping mappedClass) {
- return new JpaPersistenceUnitEntity(this, (Entity) mappedClass);
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- PersistenceUnit getPersistentTypeContainer() {
- return (PersistenceUnit) super.getPersistentTypeContainer();
- }
-
- @SuppressWarnings("unchecked")
- private Iterator<ClassRef> javaClassRefs() {
- return new CompositeIterator<ClassRef>(
- getPersistentTypeContainer().specifiedClassRefs(),
- getPersistentTypeContainer().impliedClassRefs()
- );
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- Iterator<? extends PersistentType> persistenceTypes() {
- return new TransformationIterator<ClassRef, PersistentType>(javaClassRefs()) {
- @Override
- protected PersistentType transform(ClassRef classRef) {
- return classRef.getJavaPersistentType();
- }
- };
- }
-} \ No newline at end of file

Back to the top