|
Expresso 5-6 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.jcorporate.expresso.services.test.SchemaManager
This class reference counts references to various Schema objects. When a reference count drops to zero, the schema is deleted. [If it's not marked read only] If it is marked readonly, then the schema is created, but not deleted. [Makes for much faster checking when running unit tests on, say, a single controller]
| Constructor Summary | |
SchemaManager()
|
|
| Method Summary | |
static void |
addReadOnlyReference(Schema s)
Adds a schema reference that is not removed when the count goes to zero because it is a read only schema. |
static void |
addReference(Schema s)
Add a reference to a schema. |
static void |
addReference(Schema s,
boolean forceNoCreate)
Add a reference to a schema. |
static void |
forceAllSchemaDelete()
|
static void |
forceSchemaDelete(Schema s)
Forces the schema deletion even if the schema is marked "read only" |
static void |
removeReference(Schema s)
Reduces the reference count to Schema s. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SchemaManager()
| Method Detail |
public static void addReference(Schema s)
s - The Schema to reference
public static void addReference(Schema s,
boolean forceNoCreate)
s - The Schema to referenceforceNoCreate - Set to true if you just want a reference added, but no
schema created. This is used if DBToolTests are being run in the test
suite.public static void addReadOnlyReference(Schema s)
s - the Schema to addpublic static void removeReference(Schema s)
s - the Schema to remove a reference.public static void forceSchemaDelete(Schema s)
s - the schema to force a deletepublic static void forceAllSchemaDelete()
|
Expresso 5-6 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||