org.hibernate.test.hql
Class BulkManipulationTest

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

public class BulkManipulationTest
extends BaseCoreFunctionalTestCase

Tests execution of bulk UPDATE/DELETE statements through the new AST 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
BulkManipulationTest()
           
 
Method Summary
 String[] getMappings()
           
protected  boolean supportsBulkInsertIdGeneration(Class entityClass)
           
 void testBooleanHandling()
           
 void testDeleteNonExistentEntity()
           
 void testDeleteOnDiscriminatorSubclass()
           
 void testDeleteOnJoinedSubclass()
           
 void testDeleteOnMappedJoin()
           
 void testDeleteRestrictedOnManyToOne()
           
 void testDeleteSyntaxWithCompositeId()
           
 void testDeleteUnionSubclassAbstractRoot()
           
 void testDeleteUnionSubclassConcreteSubclass()
           
 void testDeleteUnionSubclassLeafSubclass()
           
 void testDeleteWithMetadataWhereFragments()
           
 void testDeleteWithSubquery()
           
 void testIncorrectSyntax()
           
 void testIncrementCounterVersion()
           
 void testIncrementTimestampVersion()
           
 void testInsertAcrossMappedJoinFails()
           
 void testInsertIntoSuperclassPropertiesFails()
           
 void testInsertWithAssignedCompositeId()
           
 void testInsertWithGeneratedId()
           
 void testInsertWithGeneratedTimestampVersion()
           
 void testInsertWithGeneratedVersionAndId()
           
 void testInsertWithManyToOne()
           
 void testInsertWithMismatchedTypes()
           
 void testInsertWithSelectListUsingJoins()
           
 void testSimpleDeleteOnAnimal()
           
 void testSimpleInsert()
           
 void testSimpleNativeSQLInsert()
           
 void testTempTableGenerationIsolation()
           
 void testUpdateNonExistentEntity()
           
 void testUpdateOnAnimal()
           
 void testUpdateOnComponent()
           
 void testUpdateOnDiscriminatorSubclass()
           
 void testUpdateOnImplicitJoinFails()
           
 void testUpdateOnMammal()
           
 void testUpdateOnManyToOne()
           
 void testUpdateSetNullOnDiscriminatorSubclass()
           
 void testUpdateSetNullOnJoinedSubclass()
           
 void testUpdateSetNullUnionSubclass()
           
 void testUpdateWithWhereExistsSubquery()
           
 
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, 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

BulkManipulationTest

public BulkManipulationTest()
Method Detail

getMappings

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

testDeleteNonExistentEntity

public void testDeleteNonExistentEntity()

testUpdateNonExistentEntity

public void testUpdateNonExistentEntity()

testTempTableGenerationIsolation

public void testTempTableGenerationIsolation()
                                      throws Throwable
Throws:
Throwable

testBooleanHandling

public void testBooleanHandling()

testSimpleInsert

public void testSimpleInsert()

testSimpleNativeSQLInsert

public void testSimpleNativeSQLInsert()

testInsertWithManyToOne

public void testInsertWithManyToOne()

testInsertWithMismatchedTypes

public void testInsertWithMismatchedTypes()

testInsertIntoSuperclassPropertiesFails

public void testInsertIntoSuperclassPropertiesFails()

testInsertAcrossMappedJoinFails

public void testInsertAcrossMappedJoinFails()

supportsBulkInsertIdGeneration

protected boolean supportsBulkInsertIdGeneration(Class entityClass)

testInsertWithGeneratedId

public void testInsertWithGeneratedId()

testInsertWithGeneratedVersionAndId

public void testInsertWithGeneratedVersionAndId()

testInsertWithGeneratedTimestampVersion

public void testInsertWithGeneratedTimestampVersion()

testInsertWithAssignedCompositeId

public void testInsertWithAssignedCompositeId()

testInsertWithSelectListUsingJoins

public void testInsertWithSelectListUsingJoins()

testIncorrectSyntax

public void testIncorrectSyntax()

testUpdateWithWhereExistsSubquery

public void testUpdateWithWhereExistsSubquery()

testIncrementCounterVersion

public void testIncrementCounterVersion()

testIncrementTimestampVersion

public void testIncrementTimestampVersion()

testUpdateOnComponent

public void testUpdateOnComponent()

testUpdateOnManyToOne

public void testUpdateOnManyToOne()

testUpdateOnImplicitJoinFails

public void testUpdateOnImplicitJoinFails()

testUpdateOnDiscriminatorSubclass

public void testUpdateOnDiscriminatorSubclass()

testUpdateOnAnimal

public void testUpdateOnAnimal()

testUpdateOnMammal

public void testUpdateOnMammal()

testUpdateSetNullUnionSubclass

public void testUpdateSetNullUnionSubclass()

testUpdateSetNullOnDiscriminatorSubclass

public void testUpdateSetNullOnDiscriminatorSubclass()

testUpdateSetNullOnJoinedSubclass

public void testUpdateSetNullOnJoinedSubclass()

testDeleteWithSubquery

public void testDeleteWithSubquery()

testSimpleDeleteOnAnimal

public void testSimpleDeleteOnAnimal()

testDeleteOnDiscriminatorSubclass

public void testDeleteOnDiscriminatorSubclass()

testDeleteOnJoinedSubclass

public void testDeleteOnJoinedSubclass()

testDeleteOnMappedJoin

public void testDeleteOnMappedJoin()

testDeleteUnionSubclassAbstractRoot

public void testDeleteUnionSubclassAbstractRoot()

testDeleteUnionSubclassConcreteSubclass

public void testDeleteUnionSubclassConcreteSubclass()

testDeleteUnionSubclassLeafSubclass

public void testDeleteUnionSubclassLeafSubclass()

testDeleteWithMetadataWhereFragments

public void testDeleteWithMetadataWhereFragments()
                                          throws Throwable
Throws:
Throwable

testDeleteRestrictedOnManyToOne

public void testDeleteRestrictedOnManyToOne()

testDeleteSyntaxWithCompositeId

public void testDeleteSyntaxWithCompositeId()


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