org.hibernate.test.hql
Class ASTParserLoadingTest

java.lang.Object
  extended by org.hibernate.testing.junit4.BaseUnitTestCase
      extended by org.hibernate.testing.junit4.BaseCoreFunctionalTestCase
          extended by org.hibernate.test.hql.ASTParserLoadingTest

public class ASTParserLoadingTest
extends BaseCoreFunctionalTestCase

Tests the integration of the new AST parser into the loading of query results using the Hibernate persisters and loaders.

Also used to test the syntax of the resulting sql against the underlying database, specifically for functionality not supported by the classic parser.


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
ASTParserLoadingTest()
           
 
Method Summary
 void configure(Configuration cfg)
           
 String[] getMappings()
           
 void testAggregation()
           
 void testAliases()
           
 void testAnyMappingReference()
           
 void testArithmetic()
           
 void testCachedJoinedAndJoinFetchedManyToOne()
           
 void testCachedJoinedAndJoinFetchedOneToMany()
           
 void testCast()
           
 void testCastInSelect()
           
 void testCoalesce()
           
 void testCollectionFetching()
           
 void testCollectionFetchWithDistinctionAndLimit()
           
 void testCollectionJoinsInSubselect()
           
 void testComponentJoins()
           
 void testComponentNullnessChecks()
           
 void testComponentOrderBy()
           
 void testComponentParameterBinding()
           
 void testComponentQueries()
           
 void testConcatenation()
           
 void testCrazyIdFieldNames()
           
 void testDecimalLiterals()
           
 void testDynamicInstantiationQueries()
           
 void testEJBQLFunctions()
           
 void testEntityAndOneToOneReturnedByQuery()
           
 void testEntityFetching()
           
 void testEntityPropertySelect()
           
 void testExistsSubquery()
           
 void testExpressionWithParamInFunction()
           
 void testExtract()
           
 void testFetchInSubqueryFails()
           
 void testFilterWithCustomColumnReadAndWrite()
           
 void testFromOnly()
           
 void testHavingWithCustomColumnReadAndWrite()
           
 void testIllegalMixedTransformerQueries()
           
 void testImplicitJoin()
           
 void testImplicitJoinsInDifferentClauses()
           
 void testImplicitPolymorphism()
           
 void testImplicitSelectEntityAssociationInShallowQuery()
           
 void testIndexParams()
           
 void testInitProxy()
           
 void testIntegerLiterals()
           
 void testInvalidCollectionDereferencesFail()
           
 void testInvalidFetchSemantics()
           
 void testJdkEnumStyleEnumConstant()
           
 void testJoinedCollectionOfJoinedSubclass()
           
 void testJoinedCollectionOfJoinedSubclassProjection()
           
 void testJoinFetchCollectionOfValues()
           
 void testJoinFetchedCollectionOfJoinedSubclass()
           
 void testJPAPositionalParameterList()
           
 void testJPAQLQualifiedIdentificationVariables()
           
 void testJPAQLQualifiedIdentificationVariablesControl()
           
 void testJpaTypeOperator()
           
 void testLoadSnapshotWithCustomColumnReadAndWrite()
           
 void testManyToManyFilter()
           
 void testMultipleBagFetchesFail()
           
 void testNakedComponentPropertyRef()
           
 void testNakedEntityAssociationReference()
           
 void testNakedImplicitJoins()
           
 void testNakedMapIndex()
           
 void testNakedPropertyRef()
           
 void testNestedCollectionFetch()
           
 void testNestedComponentIsNull()
           
 void testNumericExpressionReturnTypes()
           
 void testOneToManyFilter()
           
 void testOrderedWithCustomColumnReadAndWrite()
           
 void testOrdinalParameters()
           
 void testPaginationWithPolymorphicQuery()
           
 void testParameterMixing()
           
 void testParameterTypeMismatch()
           
 void testProjectionQueries()
           
 void testQueryMetadataRetrievalWithFetching()
           
 void testResultTransformerEntityQueries()
           
 void testResultTransformerScalarQueries()
           
 void testRowValueConstructorSyntaxInInList()
           
 void testSelectClauseCase()
           
 void testSelectClauseImplicitJoin()
           
 void testSelectClauseImplicitJoinWithIterate()
           
 void testSelectClauseSubselect()
           
 void testSelectExpressions()
           
 void testSimpleSelect()
           
 void testSimpleSelectWithLimitAndOffset()
           
 void testSpecialClassPropertyReference()
           
 void testSpecialClassPropertyReferenceFQN()
           
 void testStandardFunctions()
           
 void testStr()
           
 void testSubclassOrSuperclassPropertyReferenceInJoinedSubclass()
           
 void testSubqueryAsSingularValueExpression()
           
 void testSubSelectAsArithmeticOperand()
           
 void testSuperclassPropertyReferenceAfterCollectionIndexedAccess()
           
 void testUnaryMinus()
           
 void testWhere()
           
 
Methods inherited from class org.hibernate.testing.junit4.BaseCoreFunctionalTestCase
addMappings, addMappings, afterConfigurationBuilt, afterConfigurationBuilt, afterSessionFactoryBuilt, afterTest, applyCacheSettings, assertAllDataRemoved, beforeTest, buildConfiguration, buildServiceRegistry, cleanupCache, cleanupTest, configuration, constructConfiguration, createSchema, generateBootstrapRegistry, getAnnotatedClasses, getAnnotatedPackages, getBaseForMappings, getCacheConcurrencyStrategy, getDialect, getXmlFiles, onFailure, openSession, openSession, overrideCacheStrategy, prepareBasicRegistryBuilder, prepareBootstrapRegistryBuilder, prepareTest, readCommittedIsolationMaintained, rebuildSessionFactory, rebuildSessionFactoryOnError, 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

ASTParserLoadingTest

public ASTParserLoadingTest()
Method Detail

getMappings

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

configure

public void configure(Configuration cfg)
Overrides:
configure in class BaseCoreFunctionalTestCase

testSubSelectAsArithmeticOperand

public void testSubSelectAsArithmeticOperand()

testJpaTypeOperator

public void testJpaTypeOperator()

testComponentJoins

public void testComponentJoins()

testJPAQLQualifiedIdentificationVariablesControl

public void testJPAQLQualifiedIdentificationVariablesControl()

testJPAQLQualifiedIdentificationVariables

public void testJPAQLQualifiedIdentificationVariables()

testPaginationWithPolymorphicQuery

public void testPaginationWithPolymorphicQuery()

testComponentNullnessChecks

public void testComponentNullnessChecks()

testInvalidCollectionDereferencesFail

public void testInvalidCollectionDereferencesFail()

testConcatenation

public void testConcatenation()

testExpressionWithParamInFunction

public void testExpressionWithParamInFunction()

testCrazyIdFieldNames

public void testCrazyIdFieldNames()

testImplicitJoinsInDifferentClauses

public void testImplicitJoinsInDifferentClauses()

testRowValueConstructorSyntaxInInList

public void testRowValueConstructorSyntaxInInList()

testImplicitSelectEntityAssociationInShallowQuery

public void testImplicitSelectEntityAssociationInShallowQuery()

testUnaryMinus

public void testUnaryMinus()

testEntityAndOneToOneReturnedByQuery

public void testEntityAndOneToOneReturnedByQuery()

testNestedComponentIsNull

public void testNestedComponentIsNull()

testSpecialClassPropertyReference

public void testSpecialClassPropertyReference()

testSpecialClassPropertyReferenceFQN

public void testSpecialClassPropertyReferenceFQN()

testSubclassOrSuperclassPropertyReferenceInJoinedSubclass

public void testSubclassOrSuperclassPropertyReferenceInJoinedSubclass()

testSimpleSelectWithLimitAndOffset

public void testSimpleSelectWithLimitAndOffset()
                                        throws Exception
Throws:
Exception

testJPAPositionalParameterList

public void testJPAPositionalParameterList()

testComponentQueries

public void testComponentQueries()

testComponentParameterBinding

public void testComponentParameterBinding()

testAnyMappingReference

public void testAnyMappingReference()

testJdkEnumStyleEnumConstant

public void testJdkEnumStyleEnumConstant()
                                  throws Exception
Throws:
Exception

testParameterTypeMismatch

public void testParameterTypeMismatch()

testMultipleBagFetchesFail

public void testMultipleBagFetchesFail()

testCollectionJoinsInSubselect

public void testCollectionJoinsInSubselect()

testCollectionFetchWithDistinctionAndLimit

public void testCollectionFetchWithDistinctionAndLimit()

testFetchInSubqueryFails

public void testFetchInSubqueryFails()

testQueryMetadataRetrievalWithFetching

public void testQueryMetadataRetrievalWithFetching()

testSuperclassPropertyReferenceAfterCollectionIndexedAccess

public void testSuperclassPropertyReferenceAfterCollectionIndexedAccess()

testJoinFetchCollectionOfValues

public void testJoinFetchCollectionOfValues()

testIntegerLiterals

public void testIntegerLiterals()

testDecimalLiterals

public void testDecimalLiterals()

testNakedPropertyRef

public void testNakedPropertyRef()

testNakedComponentPropertyRef

public void testNakedComponentPropertyRef()

testNakedImplicitJoins

public void testNakedImplicitJoins()

testNakedEntityAssociationReference

public void testNakedEntityAssociationReference()

testNakedMapIndex

public void testNakedMapIndex()
                       throws Exception
Throws:
Exception

testInvalidFetchSemantics

public void testInvalidFetchSemantics()

testArithmetic

public void testArithmetic()

testNestedCollectionFetch

public void testNestedCollectionFetch()

testSelectClauseSubselect

public void testSelectClauseSubselect()

testInitProxy

public void testInitProxy()

testSelectClauseImplicitJoin

public void testSelectClauseImplicitJoin()

testSelectClauseImplicitJoinWithIterate

public void testSelectClauseImplicitJoinWithIterate()

testComponentOrderBy

public void testComponentOrderBy()

testOrderedWithCustomColumnReadAndWrite

public void testOrderedWithCustomColumnReadAndWrite()

testHavingWithCustomColumnReadAndWrite

public void testHavingWithCustomColumnReadAndWrite()

testLoadSnapshotWithCustomColumnReadAndWrite

public void testLoadSnapshotWithCustomColumnReadAndWrite()

testCastInSelect

public void testCastInSelect()

testNumericExpressionReturnTypes

public void testNumericExpressionReturnTypes()

testAliases

public void testAliases()

testParameterMixing

public void testParameterMixing()

testOrdinalParameters

public void testOrdinalParameters()

testIndexParams

public void testIndexParams()

testAggregation

public void testAggregation()

testSelectClauseCase

public void testSelectClauseCase()

testImplicitPolymorphism

public void testImplicitPolymorphism()

testCoalesce

public void testCoalesce()

testStr

public void testStr()

testCast

public void testCast()

testExtract

public void testExtract()

testOneToManyFilter

public void testOneToManyFilter()
                         throws Throwable
Throws:
Throwable

testManyToManyFilter

public void testManyToManyFilter()
                          throws Throwable
Throws:
Throwable

testFilterWithCustomColumnReadAndWrite

public void testFilterWithCustomColumnReadAndWrite()

testSelectExpressions

public void testSelectExpressions()

testImplicitJoin

public void testImplicitJoin()
                      throws Exception
Throws:
Exception

testFromOnly

public void testFromOnly()
                  throws Exception
Throws:
Exception

testSimpleSelect

public void testSimpleSelect()
                      throws Exception
Throws:
Exception

testEntityPropertySelect

public void testEntityPropertySelect()
                              throws Exception
Throws:
Exception

testWhere

public void testWhere()
               throws Exception
Throws:
Exception

testEntityFetching

public void testEntityFetching()
                        throws Exception
Throws:
Exception

testCollectionFetching

public void testCollectionFetching()
                            throws Exception
Throws:
Exception

testJoinFetchedCollectionOfJoinedSubclass

public void testJoinFetchedCollectionOfJoinedSubclass()
                                               throws Exception
Throws:
Exception

testJoinedCollectionOfJoinedSubclass

public void testJoinedCollectionOfJoinedSubclass()
                                          throws Exception
Throws:
Exception

testJoinedCollectionOfJoinedSubclassProjection

public void testJoinedCollectionOfJoinedSubclassProjection()
                                                    throws Exception
Throws:
Exception

testProjectionQueries

public void testProjectionQueries()
                           throws Exception
Throws:
Exception

testStandardFunctions

public void testStandardFunctions()
                           throws Exception
Throws:
Exception

testDynamicInstantiationQueries

public void testDynamicInstantiationQueries()
                                     throws Exception
Throws:
Exception

testCachedJoinedAndJoinFetchedManyToOne

public void testCachedJoinedAndJoinFetchedManyToOne()
                                             throws Exception
Throws:
Exception

testCachedJoinedAndJoinFetchedOneToMany

public void testCachedJoinedAndJoinFetchedOneToMany()
                                             throws Exception
Throws:
Exception

testIllegalMixedTransformerQueries

public void testIllegalMixedTransformerQueries()

testResultTransformerScalarQueries

public void testResultTransformerScalarQueries()
                                        throws Exception
Throws:
Exception

testResultTransformerEntityQueries

public void testResultTransformerEntityQueries()
                                        throws Exception
Throws:
Exception

testEJBQLFunctions

public void testEJBQLFunctions()
                        throws Exception
Throws:
Exception

testSubqueryAsSingularValueExpression

public void testSubqueryAsSingularValueExpression()

testExistsSubquery

public void testExistsSubquery()


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