public class DefaultSchema extends Object implements Schema
| 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... dependencies)
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() |
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 String[] getDependencies()
getDependencies in interface Schemapublic void addDependencies(String... dependencies)
addDependencies in interface Schemapublic 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 String toString()
toString in class ObjectObject.toString()Copyright © 2003–2016 The Apache Software Foundation. All rights reserved.