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
|
Constructor and Description |
---|
DefaultSchema(String name)
Creates a new instance of DefaultSchema.
|
DefaultSchema(String name,
String owner)
Creates a new instance of DefaultSchema.
|
DefaultSchema(String name,
String owner,
String[] dependencies)
Creates a new instance of DefaultSchema.
|
DefaultSchema(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.
|
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 Set<SchemaObjectWrapper> content
public DefaultSchema(String name)
name
- The schema's namepublic DefaultSchema(String name, String owner)
name
- The schema's nameowner
- the schema's ownerpublic DefaultSchema(String name, String owner, String[] dependencies)
name
- The schema's nameowner
- the schema's ownerdependencies
- The list of schemas it depends onpublic DefaultSchema(String name, String owner, String[] dependencies, boolean disabled)
name
- 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 Schema
public void addDependencies(String... dependenciesToAdd)
addDependencies
in interface Schema
dependenciesToAdd
- The dependencies to addpublic String getOwner()
public String getSchemaName()
getSchemaName
in interface Schema
public boolean isDisabled()
isDisabled
in interface Schema
public boolean isEnabled()
public Set<SchemaObjectWrapper> getContent()
getContent
in interface Schema
Copyright © 2003-2014 The Apache Software Foundation. All Rights Reserved.