public class DefaultSchema extends Object implements Schema
| Modifier and Type | Field and Description |
|---|---|
protected Set<SchemaObjectWrapper> |
content
The set of SchemaObjects declared in this schema
|
protected static String |
DEFAULT_OWNER
The default schema's owner
|
protected String[] |
dependencies
Contains the list of schema it depends on
|
protected boolean |
disabled
Tells if this schema is disabled
|
protected String |
name
The schema name
|
protected String |
owner
The schema owner
|
protected SchemaLoader |
schemaLoader
The SchemaLoader used to load this schema
|
| Constructor and Description |
|---|
DefaultSchema(SchemaLoader schemaLoader,
String name)
Creates a new instance of DefaultSchema.
|
DefaultSchema(SchemaLoader schemaLoader,
String name,
String owner)
Creates a new instance of DefaultSchema.
|
DefaultSchema(SchemaLoader schemaLoader,
String name,
String owner,
String[] dependencies)
Creates a new instance of DefaultSchema.
|
DefaultSchema(SchemaLoader schemaLoader,
String name,
String owner,
String[] dependencies,
boolean disabled)
Creates a new instance of DefaultSchema.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addDependencies(String... dependenciesToAdd)
Add a set of dependencies this schema uses.
|
void |
disable()
Disable the schema
|
void |
enable()
Enable the schema
|
Set<SchemaObjectWrapper> |
getContent()
Gets the set of SchemaObject elements declared in this schema
|
String[] |
getDependencies()
Gets the names of other schemas that the objects within this
Schema depends upon.
|
String |
getOwner()
Gets the name of the owner of the schema objects within this
Schema.
|
SchemaLoader |
getSchemaLoader()
Gets the SchemaLoader this Schema has to be loaded with
|
String |
getSchemaName()
Gets the name of the logical schema the objects of this Schema
belong to: e.g.
|
boolean |
isDisabled()
Checks whether or not this schema is enabled or disabled.
|
boolean |
isEnabled()
Checks whether or not this schema is enabled or disabled.
|
String |
toString() |
protected static final String DEFAULT_OWNER
protected boolean disabled
protected String[] dependencies
protected String owner
protected String name
protected Set<SchemaObjectWrapper> content
protected SchemaLoader schemaLoader
public DefaultSchema(SchemaLoader schemaLoader, String name)
schemaLoader - The ShcemaLoader to usename - The schema's namepublic DefaultSchema(SchemaLoader schemaLoader, String name, String owner)
schemaLoader - The ShcemaLoader to usename - The schema's nameowner - the schema's ownerpublic DefaultSchema(SchemaLoader schemaLoader, String name, String owner, String[] dependencies)
schemaLoader - The ShcemaLoader to usename - The schema's nameowner - the schema's ownerdependencies - The list of schemas it depends onpublic DefaultSchema(SchemaLoader schemaLoader, String name, String owner, String[] dependencies, boolean disabled)
schemaLoader - The ShcemaLoader to usename - The schema's nameowner - the schema's ownerdependencies - The list of schemas it depends ondisabled - Set the status for this schemapublic String[] getDependencies()
getDependencies in interface Schemapublic void addDependencies(String... dependenciesToAdd)
addDependencies in interface SchemadependenciesToAdd - The dependencies to addpublic String getOwner()
public String getSchemaName()
getSchemaName in interface Schemapublic boolean isDisabled()
isDisabled in interface Schemapublic boolean isEnabled()
public Set<SchemaObjectWrapper> getContent()
getContent in interface Schemapublic SchemaLoader getSchemaLoader()
getSchemaLoader in interface SchemaCopyright © 2003–2019 The Apache Software Foundation. All rights reserved.