search: keywords: ['Java API', 'ODatabaseDocument', 'createVertexClass']
ODatabaseDocument - createVertexClass()
This method creates a new database class, which extends the V class.
Creating Vertex Classes
OrientDB borrows from the Object Oriented programming paradigm the concept of classes, which in these Reference pages is called a database class, to avoid confusion with classes in Java. Internally, each database class is an instance of OClass. Using this method, you can create new database classes on the database, which extend the V edge class.
To create a edge class instead, see createEdgeClass().
Syntax
default OClass ODatabaseDocument().createVertexClass(String name)
| Argument | Type | Description |
|---|---|---|
name | String | Defines the database class name |
Return Value
This method returns an OClass instance that represents the new database class.