Package com.exasol.dbbuilder.dialects
Class AbstractSchemaChild
- java.lang.Object
-
- com.exasol.dbbuilder.dialects.AbstractDatabaseObject
-
- com.exasol.dbbuilder.dialects.AbstractSchemaChild
-
- All Implemented Interfaces:
DatabaseObject
- Direct Known Subclasses:
AbstractScript,Table
public abstract class AbstractSchemaChild extends AbstractDatabaseObject
Base class for all database objects in the scope of a database schema.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAbstractSchemaChild.BuilderBuilder forAbstractSchemaChild.
-
Field Summary
Fields Modifier and Type Field Description protected SchemaparentSchemaParent schema-
Fields inherited from class com.exasol.dbbuilder.dialects.AbstractDatabaseObject
name, owned
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractSchemaChild(AbstractSchemaChild.Builder builder)Create a new instance ofAbstractSchemaChildfrom it'sAbstractSchemaChild.Builder.protectedAbstractSchemaChild(Schema parentSchema, com.exasol.db.Identifier name, boolean owned)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.dialects.AbstractDatabaseObject
drop, dropInternally, getFullyQualifiedName, getName, isOwned, markDeleted, verifyNotDeleted
-
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.dialects.DatabaseObject
getType
-
-
-
-
Field Detail
-
parentSchema
protected final Schema parentSchema
Parent schema
-
-
Constructor Detail
-
AbstractSchemaChild
protected AbstractSchemaChild(Schema parentSchema, com.exasol.db.Identifier name, boolean owned)
Create a new child object of a database schema.- Parameters:
parentSchema- parent schemaname- name of the database objectowned-trueif the object is owned by the TDDB,falseif the TDDB attached to a database object that already existed
-
AbstractSchemaChild
protected AbstractSchemaChild(AbstractSchemaChild.Builder builder)
Create a new instance ofAbstractSchemaChildfrom it'sAbstractSchemaChild.Builder.- Parameters:
builder- builder to read the parameters from
-
-
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
-
-