public static class SchemaConfig.Metadata
extends java.lang.Object
This class is public since it must be accessed as part of the public API for the containing class.
Modifier and Type | Field and Description |
---|---|
private boolean |
active
Flag indicating that metadata is active
|
private java.lang.String |
name
Root name of the metadata schema (without any file extension)
|
private java.util.Set<java.lang.String> |
tables
Names of the tables in use by the application
|
Constructor and Description |
---|
Metadata()
Default constructor.
|
Metadata(java.lang.String name,
java.util.Set<java.lang.String> tables,
boolean active)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addTable(java.lang.String table)
Add a table name to the set of metadata tables used by the application.
|
java.lang.String |
getName()
Get the root name of the metadata schema.
|
java.util.Set<java.lang.String> |
getTables()
Get an unmodifiable set of the names of the metadata tables used by the application.
|
boolean |
isActive()
Check if metadata is active
|
void |
setName(java.lang.String name)
Set the root name of the metadata schema.
|
java.lang.String |
toString() |
private java.lang.String name
private final java.util.Set<java.lang.String> tables
private final boolean active
public Metadata()
public Metadata(java.lang.String name, java.util.Set<java.lang.String> tables, boolean active)
name
- The root name of the metadata schema.tables
- The names of the tables in use by the application.active
- A flag indicating that metadata is active.public java.lang.String getName()
public void setName(java.lang.String name)
name
- Root name of the metadata schema.public java.util.Set<java.lang.String> getTables()
public void addTable(java.lang.String table)
table
- Metadata table name.public boolean isActive()
true
if metadata is activepublic java.lang.String toString()
toString
in class java.lang.Object