| /******************************************************************************* |
| * 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.tests.extension.resource; |
| |
| import org.eclipse.jpt.jpa.core.jpql.JpaJpqlQueryHelper; |
| import org.eclipse.jpt.jpa.core.jpql.spi.JpaManagedTypeProvider; |
| |
| import org.eclipse.jpt.jpa.core.context.NamedQuery; |
| import org.eclipse.persistence.jpa.jpql.AbstractContentAssistVisitor; |
| import org.eclipse.persistence.jpa.jpql.AbstractGrammarValidator; |
| import org.eclipse.persistence.jpa.jpql.AbstractSemanticValidator; |
| import org.eclipse.persistence.jpa.jpql.JPQLQueryContext; |
| import org.eclipse.persistence.jpa.jpql.parser.JPQLGrammar; |
| import org.eclipse.persistence.jpa.jpql.parser.JPQLGrammar2_0; |
| |
| /** |
| * @version 3.1 |
| * @since 3.1 |
| * @author Pascal Filion |
| */ |
| public class TestJpaJpqlQueryHelper extends JpaJpqlQueryHelper { |
| |
| private static final JpaJpqlQueryHelper INSTANCE = new TestJpaJpqlQueryHelper(); |
| |
| /** |
| * Creates a new <code>TestJpaJpqlQueryHelper</code>. |
| */ |
| public TestJpaJpqlQueryHelper() { |
| super(JPQLGrammar2_0.instance()); |
| } |
| |
| public static JpaJpqlQueryHelper instance() { |
| return INSTANCE; |
| } |
| |
| /** |
| * {@inheritDoc} |
| */ |
| @Override |
| protected AbstractContentAssistVisitor buildContentAssistVisitor(JPQLQueryContext queryContext) { |
| return null; |
| } |
| |
| /** |
| * {@inheritDoc} |
| */ |
| @Override |
| protected AbstractGrammarValidator buildGrammarValidator(JPQLQueryContext queryContext) { |
| return null; |
| } |
| |
| /** |
| * {@inheritDoc} |
| */ |
| @Override |
| protected JPQLQueryContext buildJPQLQueryContext(JPQLGrammar jpqlGrammar) { |
| return null; |
| } |
| |
| /** |
| * {@inheritDoc} |
| */ |
| @Override |
| public JpaManagedTypeProvider buildProvider(NamedQuery query) { |
| return null; |
| } |
| |
| /** |
| * {@inheritDoc} |
| */ |
| @Override |
| protected AbstractSemanticValidator buildSemanticValidator(JPQLQueryContext queryContext) { |
| return null; |
| } |
| } |