The Java Classes

As Java is an object-oriented language, the eXtremeDB Java Native Interface (JNI) is implemented as a "wrapper" over the core C language eXtremeDB libraries. However, the JNI does not simply translate calls to the underlying C API (with all of the appropriate arguments) but implements an object model of the database interface where functionality is grouped and encapsulated in classes.

For example, the Connection class encapsulates the C API connection handle mco_db_h. Instances of Connection internally call the C function mco_db_connect() in their constructors and the function mco_db_disconnect() in their close() methods and in their destructors. So the Connection class logically aggregates wrappers of the C API functions that require a connection handle mco_db_h as the main argument.

Likewise, the class Database implements methods which directly or indirectly call C API functions that are not related to a separate connection, such as mco_runtime_start(), mco_runtime_stop(), mco_db_open(), mco_db_close(), etc.

Please use the links below to view the individual class definitions:

Database
Manages database creation, opening, and closing.
Connection
Provides methods for database operations.
Cursor
Provides methods for iterating through instances of a class.
Aggregator
Performs aggregation.
GroupByResult
Represents the result of a group by aggregation operation.
Sequence
Stores an array field in the database as a sequence.
SequenceIterator
Iterates through sequence fields.
Statistic
Provides runtime database statistics.

SQL Classes

SqlAggregator
Aggregates multiple SqlLocalConnection engines.
SqlCursor
Iterates through the result of an SQL query.
SqlLocalConnection
Provides local (in-process) SQL access.
SqlRemoteConnection
Provides remote SQL access to a SqlServer instance.
SqlResultSet
Represents a data set for SQL query results.
SqlServer
Provides a SQL server for SqlLocalConnection and SqlRemoteConnection access.
SqlTuple
Represents the unit (a row) of SQL query results.

Transaction Logging Classes

LogReader
Reads the eXtremeDB Transaction Logging transaction log.
LogWriter
Writes the eXtremeDB Transaction Logging transaction log.

High Availability Classes

MasterConnection
Extends Connection for eXtremeDB High Availability master applications.
ReplicaConnection
Extends Connection for eXtremeDB High Availability replica applications.
ClusterConnection
Extends Connection for eXtremeDB Cluster applications.