Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help


search: keywords: ['java', 'odatabasedocument', 'isclosed']

ODatabaseDocument - isClosed()

Determines whether the current database is closed or open.

Checking Database

When you finish with an ODatabaseDocument instance, you should close it to free up resources, using the close() method. In cases where you are uncertain as to whether the database instance is open or whether it was closed at this particular point in your application, you can check whether it is closed using this method.

Syntax

boolean ODatabaseDocument().isClosed()

Return Value

This method returns a boolean value, if true it indicates that the database is closed. Otherwise, it is currently open.