Package com.exasol.dbbuilder.dialects
Interface DatabaseObject
-
- All Superinterfaces:
AutoCloseable
- All Known Implementing Classes:
AbstractDatabaseObject,AbstractSchema,AbstractSchemaChild,AbstractScript,AbstractUser,AdapterScript,ConnectionDefinition,ExasolSchema,ExasolUser,MySqlSchema,MySqlUser,OracleSchema,OracleTable,OracleUser,PostgreSqlSchema,PostgreSqlUser,Script,Table,UdfScript,VirtualSchema
public interface DatabaseObject extends AutoCloseable
Common interface for database objects.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voidclose()voiddrop()Remove this database object from database incl.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()
Remove this database object from database incl. all contained objects and mark it as deleted. Later operations on this object will throw aDatabaseObjectDeletedExceptionException.
-
close
default void close()
- Specified by:
closein interfaceAutoCloseable
-
-