[+/-]
- 2.3.4.1 Dictionary Class Constructor
- 2.3.4.2 Dictionary::beginSchemaTrans()
- 2.3.4.3 Dictionary::createDatafile()
- 2.3.4.4 Dictionary::createEvent()
- 2.3.4.5 Dictionary::createForeignKey()
- 2.3.4.6 Dictionary::createHashMap()
- 2.3.4.7 Dictionary::createIndex()
- 2.3.4.8 Dictionary::createLogfileGroup()
- 2.3.4.9 Dictionary::createRecord()
- 2.3.4.10 Dictionary::createTable()
- 2.3.4.11 Dictionary::createTablespace()
- 2.3.4.12 Dictionary::createUndofile()
- 2.3.4.13 Dictionary::dropDatafile()
- 2.3.4.14 Dictionary::dropEvent()
- 2.3.4.15 Dictionary::dropForeignKey()
- 2.3.4.16 Dictionary::dropIndex()
- 2.3.4.17 Dictionary::dropLogfileGroup()
- 2.3.4.18 Dictionary::dropTable()
- 2.3.4.19 Dictionary::dropTablespace()
- 2.3.4.20 Dictionary::dropUndofile()
- 2.3.4.21 Dictionary::endSchemaTrans()
- 2.3.4.22 Dictionary::getDatafile()
- 2.3.4.23 Dictionary::getDefaultHashMap()
- 2.3.4.24 Dictionary::getEvent()
- 2.3.4.25 Dictionary::getForeignKey()
- 2.3.4.26 Dictionary::getHashMap()
- 2.3.4.27 Dictionary::getIndex()
- 2.3.4.28 Dictionary::getLogfileGroup()
- 2.3.4.29 Dictionary::getNdbError()
- 2.3.4.30 Dictionary::getTable()
- 2.3.4.31 Dictionary::getTablespace()
- 2.3.4.32 Dictionary::getUndofile()
- 2.3.4.33 Dictionary::hasSchemaTrans()
- 2.3.4.34 Dictionary::initDefaultHashMap()
- 2.3.4.35 Dictionary::invalidateIndex()
- 2.3.4.36 DIctionary::invalidateTable()
- 2.3.4.37 Dictionary::listEvents()
- 2.3.4.38 Dictionary::listIndexes()
- 2.3.4.39 Dictionary::listObjects()
- 2.3.4.40 Dictionary::prepareHashMap()
- 2.3.4.41 Dictionary::releaseRecord()
- 2.3.4.42 Dictionary::removeCachedTable()
- 2.3.4.43 Dictionary::removeCachedIndex()
Abstract
This section describes the Dictionary class.
Parent class.
NdbDictionary
Child classes.
List
Description. This is used for defining and retrieving data object metadata. It also includes methods for creating and dropping database objects.
Methods. The following table lists the public methods of this class and the purpose or use of each method:
| Method | Purpose / Use |
|---|---|
Dictionary() |
Class constructor method |
~Dictionary() |
Destructor method |
beginSchemaTrans() |
Begins a schema transaction |
createDatafile() |
Creates a datafile |
createEvent() |
Creates an event |
createForeignKey() |
Creates a foreign key |
createHashMap() |
Creates a has map |
createIndex() |
Creates an index |
createLogfileGroup() |
Creates a logfile group |
createRecord() |
Creates an Ndbrecord object |
createTable() |
Creates a table |
createTablespace() |
Creates a tablespace |
createUndofile() |
Creates an undofile |
dropDatafile() |
Drops a datafile |
dropEvent() |
Drops an event |
dropForeignKey() |
Drops a foreign key |
dropIndex() |
Drops an index |
dropLogfileGroup() |
Drops a logfile group |
dropTable() |
Drops a table |
dropTablespace() |
Drops a tablespace |
dropUndofile() |
Drops an undofile |
endSchemaTrans() |
Ends (commits and closes) a schema transaction |
getDatafile() |
Gets the datafile having the given name |
getDefaultHashMap() |
Gets a table's default hash map |
getEvent() |
Gets the event having the given name |
getForeignKey() |
Gets the foreign key having the given name or reference |
getHashMap() |
Gets the hash map given its name or associated table |
getIndex() |
Gets the index having the given name |
getLogfileGroup() |
Gets the logfile group having the given name |
getNdbError() |
Retrieves the latest error |
getTable() |
Gets the table having the given name |
getTablespace() |
Gets the tablespace having the given name |
getUndofile() |
Gets the undofile having the given name |
hasSchemaTrans() |
Tells whether a schema transaction currently exists |
initDefaultHashMap() |
Initializes a atble' default hash map |
invalidateTable() |
Invalidates a table object |
listObjects() |
Fetches a list of the objects in the dictionary |
listIndexes() |
Fetches a list of the indexes defined on a given table |
listEvents() |
Fetches a list of the events defined in the dictionary |
prepareHashMap() |
Creates or retrieves a hash map that can be updated |
removeCachedTable() |
Removes a table from the local cache |
removeCachedIndex() |
Removes an index from the local cache |
Database objects such as tables and indexes created using the
Dictionary::create
methods cannot be seen by the MySQL Server. This means that they
cannot be accessed by MySQL clients, and that they cannot be
replicated. For these reasons, it is often preferable to avoid
working with them.
*()
The Dictionary class does not have any methods
for working directly with columns. You must use
Column class methods for this
purpose—see Section 2.3.2, “The Column Class”, for details.
Types. See Section 2.3.14, “The List Class”, and Section 2.3.5, “The Element Structure”.
Dictionary Class and Subclass Diagram.
This diagram shows all the public members of the
Dictionary class and its
subclasses:
