|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opensubsystems.core.persist.db.DatabaseSchemaManager
public class DatabaseSchemaManager
Class responsible for instantiation of database schemas. This class determines what database schema should be used based on currently used database, creates the schema instance if it wasn't created yet and caches created instances. This of course assumes that the data factories are implemented to be stateless and reentrant.
| Field Summary | |
|---|---|
protected ClassFactory |
m_schemaClassFactory
Class factory used to instantiate database schemas. |
| Constructor Summary | |
|---|---|
DatabaseSchemaManager()
Default constructor. |
|
| Method Summary | |
|---|---|
static DatabaseSchema |
getInstance(java.lang.Class databaseSchema)
Create database schema for specified class. |
static DatabaseSchema |
getInstance(java.lang.String databaseSchema)
Create database schema for specified class. |
static DatabaseSchemaManager |
getManagerInstance()
Get the default instance. |
DatabaseSchema |
getSchemaInstance(java.lang.Class databaseSchema)
Method to create actual schema based on specified class. |
DatabaseSchema |
getSchemaInstance(java.lang.String databaseSchema)
Method to create actual schema based on specified class. |
static void |
setManagerInstance(DatabaseSchemaManager defaultInstance)
Set default instance. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected ClassFactory m_schemaClassFactory
| Constructor Detail |
|---|
public DatabaseSchemaManager()
| Method Detail |
|---|
public static DatabaseSchema getInstance(java.lang.Class databaseSchema)
throws OSSException
databaseSchema - - the database schema class for which we want
applicable schema. This is usually database
independent class and we will try to create
database dependent class.
OSSException - - an error has occured
public static DatabaseSchema getInstance(java.lang.String databaseSchema)
throws OSSException
databaseSchema - - the database schema class name for which we want
applicable schema. This is usually database
independent class and we will try to create
database dependent class.
OSSException - - an error has occured
public static DatabaseSchemaManager getManagerInstance()
throws OSSException
OSSException - - cannot get current databasepublic static void setManagerInstance(DatabaseSchemaManager defaultInstance)
defaultInstance - - new default instancegetInstance(java.lang.Class)
public DatabaseSchema getSchemaInstance(java.lang.Class databaseSchema)
throws OSSException
databaseSchema - - the database schema class for which we want
applicable schema. This is usually database
independent class and we will try to create
database dependent class.
OSSException - - an error has occured
public DatabaseSchema getSchemaInstance(java.lang.String databaseSchema)
throws OSSException
databaseSchema - - the database schema class name for which we want
applicable schema. This is usually database
independent class and we will try to create
database dependent class.
OSSException - - an error has occured
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||