Package com.mysql.cj.xdevapi
Interface DatabaseObject
- All Known Subinterfaces:
Collection,Schema,Table
- All Known Implementing Classes:
CollectionImpl,SchemaImpl,TableImpl
public interface DatabaseObject
A client-side representation of X Plugin server object, e.g. table, collection, etc.
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classDatabaseObject.DbObjectStatusExistence states of database objects.static classDatabaseObject.DbObjectTypeType of database objects. -
Method Summary
Modifier and Type Method Description DatabaseObject.DbObjectStatusexistsInDatabase()Query the existence of this database object.java.lang.StringgetName()Retrieve the name of the database object represented by the Java object.SchemagetSchema()Retrieve the schema owning this database object.SessiongetSession()Retrieve the session owning the given schema object.
-
Method Details
-
getSession
Session getSession()Retrieve the session owning the given schema object.- Returns:
Session
-
getSchema
Schema getSchema()Retrieve the schema owning this database object.- Returns:
Schema
-
getName
java.lang.String getName()Retrieve the name of the database object represented by the Java object.- Returns:
- name
-
existsInDatabase
DatabaseObject.DbObjectStatus existsInDatabase()Query the existence of this database object.- Returns:
DatabaseObject.DbObjectStatus
-