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

Quick Search    Search Deep

Source code: org/hibernate/test/generated/TriggerGeneratedValuesWithCachingTest.java


1   // $Id: TriggerGeneratedValuesWithCachingTest.java 9014 2006-01-10 23:04:27Z steveebersole $
2   package org.hibernate.test.generated;
3   
4   import org.hibernate.dialect.Oracle9Dialect;
5   import org.hibernate.dialect.Dialect;
6   
7   import junit.framework.Test;
8   import junit.framework.TestSuite;
9   
10  /**
11   * Implementation of TriggerGeneratedValuesWithoutCachingTest.
12   *
13   * @author Steve Ebersole
14   */
15  public class TriggerGeneratedValuesWithCachingTest extends AbstractGeneratedPropertyTest {
16  
17    public TriggerGeneratedValuesWithCachingTest(String x) {
18      super( x );
19    }
20  
21    public boolean appliesTo(Dialect dialect) {
22      // currently have only defined triggers for oracle...
23      // TODO : add more triggers for dialects which allow mods in triggers...
24      return ( dialect instanceof Oracle9Dialect );
25    }
26  
27    public static Test suite() {
28      return new TestSuite( TriggerGeneratedValuesWithCachingTest.class );
29    }
30  }