Package com.exasol.dbbuilder.dialects
Interface DatabaseObject
-
- All Known Implementing Classes:
AbstractDatabaseObject,AbstractSchema,AbstractSchemaChild,AbstractScript,AbstractUser,AdapterScript,ConnectionDefinition,ExasolSchema,ExasolUser,MySqlSchema,MySqlUser,PostgreSqlSchema,PostgreSqlUser,Script,Table,UdfScript,VirtualSchema
public interface DatabaseObjectCommon interface for database objects.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddrop()Drop the database object and all contained objects.StringgetFullyQualifiedName()Get the name including the parent object names.StringgetName()Get the name of the database object.DatabaseObjectgetParent()Get the parent object.StringgetType()Get the type of the database object.booleanhasParent()Check if this object has a parent object that sets the scope within the databasebooleanisOwned()Check whether the script is a control object for a database object that already existed in the database.
-
-
-
Method Detail
-
getName
String getName()
Get the name of the database object.- Returns:
- object name
-
getFullyQualifiedName
String getFullyQualifiedName()
Get the name including the parent object names.- Returns:
- fully qualified name
-
getType
String getType()
Get the type of the database object.- Returns:
- type of the database object
-
hasParent
boolean hasParent()
Check if this object has a parent object that sets the scope within the database- Returns:
trueif the object has a parent
-
getParent
DatabaseObject getParent()
Get the parent object.- Returns:
- parent object
-
isOwned
boolean isOwned()
Check whether the script is a control object for a database object that already existed in the database.- Returns:
trueif this is a control object attached to an existing database object
-
drop
void drop()
Drop the database object and all contained objects.
-
-