Opens the database object referenced by the identifier in a specified mode.
Returns a smart pointer to the entity instance if the object was successfull opened; otherwise, the method returns a NULL smart pionter.
The open mode parameter must have one of the following values: