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 API', 'OElement', 'is edge', 'isEdge']

OElement - isEdge()

This method determines whether the record is an edge.

Checking Edges

When OrientDB is serving as a Graph database, OElement serves as the superclass to both edges and vertices. Using this method you can check whether or not the element is an edge on the database. To determine whether the record is a vertex, see isVertex.

Syntax

Boolean OElement().isEdge()

Return Value

This method returns a Boolean instance. If the return value is true, the element is an edge.