Package com.exasol.dbbuilder
Class AbstractSchemaChild
- java.lang.Object
-
- com.exasol.dbbuilder.AbstractDatabaseObject
-
- com.exasol.dbbuilder.AbstractSchemaChild
-
- All Implemented Interfaces:
DatabaseObject
- Direct Known Subclasses:
AdapterScript,Script,Table
public abstract class AbstractSchemaChild extends AbstractDatabaseObject
Base class for all database objects in the scope of a database schema.
-
-
Field Summary
Fields Modifier and Type Field Description protected SchemaparentSchema-
Fields inherited from class com.exasol.dbbuilder.AbstractDatabaseObject
name, writer
-
-
Constructor Summary
Constructors Constructor Description AbstractSchemaChild(DatabaseObjectWriter writer, Schema parentSchema, String name)Create a new child object of a database schema.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DatabaseObjectgetParent()Get the parent object.booleanhasParent()Check if this object has a parent object that sets the scope within the database-
Methods inherited from class com.exasol.dbbuilder.AbstractDatabaseObject
getFullyQualifiedName, getName
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.exasol.dbbuilder.DatabaseObject
getType
-
-
-
-
Field Detail
-
parentSchema
protected final Schema parentSchema
-
-
Constructor Detail
-
AbstractSchemaChild
public AbstractSchemaChild(DatabaseObjectWriter writer, Schema parentSchema, String name)
Create a new child object of a database schema.- Parameters:
writer- database object writer to useparentSchema- parent schemaname- name of the datbase object
-
-
Method Detail
-
hasParent
public boolean hasParent()
Description copied from interface:DatabaseObjectCheck if this object has a parent object that sets the scope within the database- Returns:
trueif the object has a parent
-
getParent
public DatabaseObject getParent()
Description copied from interface:DatabaseObjectGet the parent object.- Returns:
- parent object
-
-