org.hibernate.test.hql
Class QueryTranslatorTestCase

java.lang.Object
  extended by org.hibernate.testing.junit4.BaseUnitTestCase
      extended by org.hibernate.testing.junit4.BaseCoreFunctionalTestCase
          extended by org.hibernate.test.hql.QueryTranslatorTestCase
Direct Known Subclasses:
ClassicTranslatorTest, CriteriaClassicAggregationReturnTest, CriteriaHQLAlignmentTest, HQLTest

public abstract class QueryTranslatorTestCase
extends BaseCoreFunctionalTestCase


Nested Class Summary
 
Nested classes/interfaces inherited from class org.hibernate.testing.junit4.BaseCoreFunctionalTestCase
BaseCoreFunctionalTestCase.RollbackWork
 
Field Summary
 
Fields inherited from class org.hibernate.testing.junit4.BaseCoreFunctionalTestCase
DIALECT, NO_CLASSES, NO_MAPPINGS, USE_NEW_METADATA_MAPPINGS, VALIDATE_DATA_CLEANUP
 
Constructor Summary
QueryTranslatorTestCase()
           
 
Method Summary
 void assertTranslation(String hql)
           
protected  void assertTranslation(String hql, Map replacements)
           
protected  void assertTranslation(String hql, Map replacements, boolean scalar, String sql)
           
protected  Exception compileBadHql(String hql, boolean scalar)
           
protected  QueryTranslatorImpl createNewQueryTranslator(String hql)
           
protected  QueryTranslatorImpl createNewQueryTranslator(String hql, Map replacements, boolean scalar)
           
protected  QueryTranslatorImpl createNewQueryTranslator(String hql, SessionFactoryImplementor sfimpl)
           
protected  HQLQueryPlan createQueryPlan(String hql)
           
protected  HQLQueryPlan createQueryPlan(String hql, boolean scalar)
           
 boolean createSchema()
           
 String[] getMappings()
           
protected  SessionFactoryImplementor getSessionFactoryImplementor()
          Deprecated. 
 boolean rebuildSessionFactoryOnError()
           
 
Methods inherited from class org.hibernate.testing.junit4.BaseCoreFunctionalTestCase
addMappings, addMappings, afterConfigurationBuilt, afterConfigurationBuilt, afterSessionFactoryBuilt, afterTest, applyCacheSettings, assertAllDataRemoved, beforeTest, buildConfiguration, buildServiceRegistry, cleanupCache, cleanupTest, configuration, configure, constructConfiguration, generateBootstrapRegistry, getAnnotatedClasses, getAnnotatedPackages, getBaseForMappings, getCacheConcurrencyStrategy, getDialect, getXmlFiles, onFailure, openSession, openSession, overrideCacheStrategy, prepareBasicRegistryBuilder, prepareBootstrapRegistryBuilder, prepareTest, readCommittedIsolationMaintained, rebuildSessionFactory, serviceRegistry, sessionFactory
 
Methods inherited from class org.hibernate.testing.junit4.BaseUnitTestCase
releaseTransactions
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryTranslatorTestCase

public QueryTranslatorTestCase()
Method Detail

getMappings

public String[] getMappings()
Overrides:
getMappings in class BaseCoreFunctionalTestCase

createSchema

public boolean createSchema()
Overrides:
createSchema in class BaseCoreFunctionalTestCase

rebuildSessionFactoryOnError

public boolean rebuildSessionFactoryOnError()
Overrides:
rebuildSessionFactoryOnError in class BaseCoreFunctionalTestCase

assertTranslation

public void assertTranslation(String hql)
                       throws QueryException,
                              MappingException
Throws:
QueryException
MappingException

assertTranslation

protected void assertTranslation(String hql,
                                 Map replacements)

assertTranslation

protected void assertTranslation(String hql,
                                 Map replacements,
                                 boolean scalar,
                                 String sql)

createNewQueryTranslator

protected QueryTranslatorImpl createNewQueryTranslator(String hql,
                                                       Map replacements,
                                                       boolean scalar)

createNewQueryTranslator

protected QueryTranslatorImpl createNewQueryTranslator(String hql)

createNewQueryTranslator

protected QueryTranslatorImpl createNewQueryTranslator(String hql,
                                                       SessionFactoryImplementor sfimpl)

createQueryPlan

protected HQLQueryPlan createQueryPlan(String hql,
                                       boolean scalar)

createQueryPlan

protected HQLQueryPlan createQueryPlan(String hql)

getSessionFactoryImplementor

@Deprecated
protected SessionFactoryImplementor getSessionFactoryImplementor()
Deprecated. 


compileBadHql

protected Exception compileBadHql(String hql,
                                  boolean scalar)


Copyright © 2001-2012 Red Hat, Inc. All Rights Reserved.