public final class MetaRoot extends AbstractMetaModel
| Modifier and Type | Field and Description |
|---|---|
static ListKey<MetaRoot,MetaDatabase> |
DATABASES
List of tables
|
static Key<MetaRoot,MetaParams> |
PARAMETERS
ORM parameters
|
| Constructor and Description |
|---|
MetaRoot() |
| Modifier and Type | Method and Description |
|---|---|
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
|
changeDefault, checkReadOnly, clearReadOnly, get, readAuthorization, readOnly, setReadOnly, writeValuenewCamelFactory, newFactory, readValueclone, equals, init, init, readKeys, readUjoManager, readValueString, writeValueStringpublic static final ListKey<MetaRoot,MetaDatabase> DATABASES
public static final Key<MetaRoot,MetaParams> PARAMETERS
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 SuperAbstractUjopublic void print(Writer writer) throws IOException
IOExceptionpublic void print(File file) throws IOException
IOExceptionpublic MetaDatabase removeDb(String databaseId)
databaseId - The identifier for looking the databaseCopyright 2013, Pavel Ponec