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', 'getclass', 'get class']

ODatabaseDocument - getClass()

This method retrieves the given class.

Retrieving Classes

OrientDB has the concept of classes used to organize data of similar types. Using this method, you can retrieve a particular OClass instance for the given class name.

Syntax

OClass ODatabaseDocument().getClass(String name)
ArgumentTypeDescription
nameStringDefines the name of the class

Return Value

This method returns the OClass instance corresponding to the given name.