/******************************************************************************* | |
* Copyright (c) 2013 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.jpa.core.internal.jpa2_1; | |
import org.eclipse.jpt.common.core.resource.java.JavaResourceType; | |
import org.eclipse.jpt.jpa.core.context.JpaContextModel; | |
import org.eclipse.jpt.jpa.core.internal.jpa2.GenericJpaFactory2_0; | |
import org.eclipse.jpt.jpa.core.internal.jpa2_1.context.java.GenericJavaConverterType2_1; | |
import org.eclipse.jpt.jpa.core.internal.jpa2_1.context.java.GenericJavaNamedStoredProcedureQuery2_1; | |
import org.eclipse.jpt.jpa.core.internal.jpa2_1.context.java.GenericJavaStoredProcedureParameter2_1; | |
import org.eclipse.jpt.jpa.core.jpa2_1.JpaFactory2_1; | |
import org.eclipse.jpt.jpa.core.jpa2_1.context.java.JavaConverterType2_1; | |
import org.eclipse.jpt.jpa.core.jpa2_1.context.java.JavaNamedStoredProcedureQuery2_1; | |
import org.eclipse.jpt.jpa.core.jpa2_1.context.java.JavaQueryContainer2_1; | |
import org.eclipse.jpt.jpa.core.jpa2_1.context.java.JavaStoredProcedureParameter2_1; | |
import org.eclipse.jpt.jpa.core.jpa2_1.resource.java.NamedStoredProcedureQueryAnnotation2_1; | |
import org.eclipse.jpt.jpa.core.jpa2_1.resource.java.StoredProcedureParameterAnnotation2_1; | |
/** | |
* Central class that allows extenders to easily replace implementations of | |
* various Dali interfaces. | |
*/ | |
public class GenericJpaFactory2_1 | |
extends GenericJpaFactory2_0 | |
implements JpaFactory2_1 | |
{ | |
public GenericJpaFactory2_1() { | |
super(); | |
} | |
public JavaConverterType2_1 buildJavaConverterType(JpaContextModel parent, JavaResourceType jrt) { | |
return new GenericJavaConverterType2_1(parent, jrt); | |
} | |
public JavaNamedStoredProcedureQuery2_1 buildJavaNamedStoredProcedureQuery(JavaQueryContainer2_1 parent, NamedStoredProcedureQueryAnnotation2_1 namedStoredProcedureQueryAnnotation) { | |
return new GenericJavaNamedStoredProcedureQuery2_1(parent, namedStoredProcedureQueryAnnotation); | |
} | |
public JavaStoredProcedureParameter2_1 buildJavaStoredProcedureParameter(JavaNamedStoredProcedureQuery2_1 parent, StoredProcedureParameterAnnotation2_1 parameterAnnotation) { | |
return new GenericJavaStoredProcedureParameter2_1(parent, parameterAnnotation); | |
} | |
} |