|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ujorm.extensions.SuperAbstractUjo
org.ujorm.extensions.AbstractUjo
org.ujorm.orm.AbstractMetaModel
org.ujorm.orm.metaModel.MetaRoot
public final class MetaRoot
A logical database description. The class is a root of database configuration.
| Field Summary | |
|---|---|
static ListKey<MetaRoot,MetaDatabase> |
DATABASES
List of tables |
static Key<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(String name)
Returns the first database with required name or returns null. |
int |
getDatabaseCount()
Returns the total count of databases. |
void |
print(File file)
Pring all model in a XML format |
void |
print(Writer writer)
Pring all model in a XML format |
MetaDatabase |
removeDb(String databaseId)
Returns the first database with the same schemaName - and remove it from the list. |
String |
toString()
Returns all model in a XML format |
| Methods inherited from class org.ujorm.orm.AbstractMetaModel |
|---|
changeDefault, checkReadOnly, clearReadOnly, get, lock, readAuthorization, readOnly, setReadOnly, writeValue |
| Methods inherited from class org.ujorm.extensions.AbstractUjo |
|---|
newCamelFactory, newFactory, readValue |
| Methods inherited from class org.ujorm.extensions.SuperAbstractUjo |
|---|
clone, equals, init, init, readKeys, readUjoManager, readValueString, writeValueString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.ujorm.Ujo |
|---|
readKeys, readValue |
| Field Detail |
|---|
public static final ListKey<MetaRoot,MetaDatabase> DATABASES
public static final Key<MetaRoot,MetaParams> PARAMETERS
| Constructor Detail |
|---|
public MetaRoot()
| Method Detail |
|---|
public MetaDatabase getDatabase()
public MetaDatabase getDatabase(String name)
name - If the parameter "name" is null than method returns a first database.public int getDatabaseCount()
public final void add(MetaDatabase database)
public String toString()
toString in class SuperAbstractUjo
public void print(Writer writer)
throws IOException
IOException
public void print(File file)
throws IOException
IOExceptionpublic MetaDatabase removeDb(String databaseId)
databaseId - The identifier for looking the database
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||