Opens the database object associated with this ObjectId object, in the specified mode.
Returns eOk if successful, otherwise an Error Code.
openMode must be one of the following: