MySQL Shell API 8.0.38
Unified development interface for MySQL Products
Methods | Properties | List of all members
DatabaseObject Class Reference

Provides base functionality for database objects. More...

Methods

String getName ()
 Returns the name of this database object.

Returns
The name this database object.

 
Object getSession ()
 Returns the Session object of this database object.

Returns
The Session object used to get to this object.
More...
 
Object getSchema ()
 Returns the Schema object of this database object.

Returns
The Schema object used to get to this object.
More...
 
Bool existsInDatabase ()
 Verifies if this object exists in the database.

Returns
A boolean indicating if the object still exists on the database.

 

Properties

String name
 The name of this database object.
 
Object session
 The Session object of this database object.
 
Object schema
 The Schema object of this database object.
 

Detailed Description

Provides base functionality for database objects.

Member Function Documentation

◆ getSession()

Object getSession ( )

Returns the Session object of this database object.

Returns
The Session object used to get to this object.

Note that the returned object can be any of:

  • Session: if the object was created/retrieved using an Session instance.
  • ClassicSession: if the object was created/retrieved using an ClassicSession.

◆ getSchema()

Object getSchema ( )

Returns the Schema object of this database object.

Returns
The Schema object used to get to this object.

Note that the returned object can be any of:

  • Schema: if the object was created/retrieved using a Schema instance.
  • ClassicSchema: if the object was created/retrieved using an ClassicSchema.
  • Null: if this database object is a Schema or ClassicSchema.