|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ujoframework.extensions.AbstractUjo
org.ujoframework.implementation.quick.QuickUjo
org.ujoframework.orm.AbstractMetaModel
org.ujoframework.orm.metaModel.MetaRoot
public final class MetaRoot
A logical database description. The class is a root of database configuration.
| Field Summary | |
|---|---|
static ListProperty<MetaRoot,MetaDatabase> |
DATABASES
List of tables |
static Property<MetaRoot,MetaParams> |
PARAMETERS
ORM parameters |
| Constructor Summary | |
|---|---|
MetaRoot()
|
|
| Method Summary | |
|---|---|
void |
add(MetaDatabase database)
Add a new database into repository. |
MetaDatabase |
getDatabase()
Returns the first database or return null |
MetaDatabase |
getDatabase(java.lang.String name)
Returns the first database with required name or returns null. |
void |
print(java.io.File file)
Pring all model in a XML format |
void |
print(java.io.Writer writer)
Pring all model in a XML format |
MetaDatabase |
removeDb(java.lang.String schemaName)
Returns the first database with the same schemaName - and remove it from the list. |
java.lang.String |
toString()
Returns all model in a XML format |
| Methods inherited from class org.ujoframework.orm.AbstractMetaModel |
|---|
get, changeDefault, checkReadOnly, isUsable, isUsable, readAuthorization, readOnly, setReadOnly, writeValue |
| Methods inherited from class org.ujoframework.implementation.quick.QuickUjo |
|---|
newListProperty, newListProperty, newProperty, newProperty, newProperty, newProperty, newProperty, newProperty, readValue |
| Methods inherited from class org.ujoframework.extensions.AbstractUjo |
|---|
clone, equals, init, init, readProperties, readUjoManager, readValueString, writeValueString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final ListProperty<MetaRoot,MetaDatabase> DATABASES
public static final Property<MetaRoot,MetaParams> PARAMETERS
| Constructor Detail |
|---|
public MetaRoot()
| Method Detail |
|---|
public MetaDatabase getDatabase()
public MetaDatabase getDatabase(java.lang.String name)
name - If the parameter "name" is null than method returns a first database.public final void add(MetaDatabase database)
public java.lang.String toString()
toString in class AbstractUjo
public void print(java.io.Writer writer)
throws java.io.IOException
java.io.IOException
public void print(java.io.File file)
throws java.io.IOException
java.io.IOExceptionpublic MetaDatabase removeDb(java.lang.String schemaName)
schemaName - The identifier for looking the database
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||