User`s guide

About Database Toolbox Objects and Methods
6-39
About Database Toolbox Objects and Methods
This toolbox is an object-oriented application. You do not need to be familiar with the
product's object-oriented implementation to use it; this information is provided for
reference purposes.
Database Toolbox software includes the following objects:
Cursor
Database
Database metadata
Driver
Drivermanager
Resultset
Resultset metadata
Each object has its own method folder, whose name begins with an @ sign, in the
matlabroot/toolbox/database/database folder. Functions in the folder for each
object provide methods for operating on the object.
Object-oriented characteristics of the toolbox enable you to:
Use constructor functions to create and return information about objects.
For example, to create a cursor object containing query results, run the fetch
function. The object and stored information about the object are returned. Because
objects are MATLAB structures, you can view elements of the returned object.
Use overloaded functions.
Objects allow the use of overloaded functions, which simplify usage because you only
need to use one function to operate on objects.For example, use the get function to
view properties of an object.
Create custom methods that operate on Database Toolbox objects and store them in
the MATLAB workspace.