org.apache.ojb.junit
Class OJBTestCase.MetadataHelper
java.lang.Object
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.
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 |
OJBTestCase.MetadataHelper
public OJBTestCase.MetadataHelper()
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 - 2004 Apache Software Foundation
All rights reserved. Published under the Apache License 2.0.
http://db.apache.org/ojb
Version: 1.0.3, 2005-04-2