Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.hibernate.test.batch
Class BatchTest  view BatchTest download BatchTest.java

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.hibernate.test.TestCase
              extended byorg.hibernate.test.batch.BatchTest
All Implemented Interfaces:
junit.framework.Test

public class BatchTest
extends org.hibernate.test.TestCase

This is how to do batch processing in Hibernate. Remember to enable JDBC batch updates, or this test will take a Very Long Time!


Field Summary
 
Fields inherited from class org.hibernate.test.TestCase
SKIP_LOG
 
Fields inherited from class junit.framework.TestCase
 
Constructor Summary
BatchTest(java.lang.String str)
           
 
Method Summary
protected  void configure(org.hibernate.cfg.Configuration cfg)
           
 java.lang.String getCacheConcurrencyStrategy()
           
protected  java.lang.String[] getMappings()
           
static junit.framework.Test suite()
           
 void testBatchInsertUpdate()
           
 
Methods inherited from class org.hibernate.test.TestCase
afterSessionFactoryBuilt, appliesTo, assertClassAssignability, assertElementTypeAssignability, dialectIsCaseSensitive, dialectSupportsEmptyInList, dropAfterFailure, fullTestName, getBaseForMappings, getCfg, getDialect, getExtraProperties, getSessions, openSession, openSession, overrideCacheStrategy, readCommittedIsolationMaintained, recreateSchema, reportSkip, reportSkip, runTest, setCfg, setUp, sfi
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, setName, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BatchTest

public BatchTest(java.lang.String str)
Method Detail

testBatchInsertUpdate

public void testBatchInsertUpdate()

configure

protected void configure(org.hibernate.cfg.Configuration cfg)

getMappings

protected java.lang.String[] getMappings()

suite

public static junit.framework.Test suite()

getCacheConcurrencyStrategy

public java.lang.String getCacheConcurrencyStrategy()