org.apache.ojb.junit
Class OJBTestCase.MetadataHelper

java.lang.Object
  extended by org.apache.ojb.junit.OJBTestCase.MetadataHelper
Enclosing class:
OJBTestCase

public class OJBTestCase.MetadataHelper
extends java.lang.Object

Class that help us to do changes on metadata and restore old state on tear down of the test. NOTE: This strategy is not recommended in production application because the made changes will be global and all threads will recognize them immediately.


Constructor Summary
OJBTestCase.MetadataHelper()
           
 
Method Summary
 void changeReferenceSetting(PersistenceBroker broker, java.lang.Class clazz, java.lang.String referenceField, boolean autoRetrieve, boolean autoUpdate, boolean autoDelete, boolean useProxy)
           
 void changeReferenceSetting(PersistenceBroker broker, java.lang.Class clazz, java.lang.String referenceField, boolean autoRetrieve, int autoUpdate, int autoDelete, boolean useProxy)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OJBTestCase.MetadataHelper

public OJBTestCase.MetadataHelper()
Method Detail

changeReferenceSetting

public void changeReferenceSetting(PersistenceBroker broker,
                                   java.lang.Class clazz,
                                   java.lang.String referenceField,
                                   boolean autoRetrieve,
                                   int autoUpdate,
                                   int autoDelete,
                                   boolean useProxy)

changeReferenceSetting

public void changeReferenceSetting(PersistenceBroker broker,
                                   java.lang.Class clazz,
                                   java.lang.String referenceField,
                                   boolean autoRetrieve,
                                   boolean autoUpdate,
                                   boolean autoDelete,
                                   boolean useProxy)


(C) 2002 - 2006 Apache Software Foundation
All rights reserved. Published under the Apache License 2.0.
http://db.apache.org/ojb
Version: 1.0.4, 2005-12-30