Class CheckClassTypeStep

java.lang.Object
com.orientechnologies.orient.core.sql.executor.AbstractExecutionStep
com.orientechnologies.orient.core.sql.executor.CheckClassTypeStep
All Implemented Interfaces:
OExecutionStepInternal

public class CheckClassTypeStep extends AbstractExecutionStep
This step is used just as a gate check for classes (eg. for CREATE VERTEX to make sure that the passed class is a vertex class).

It accepts two values: a target class and a parent class. If the two classes are the same or if the parent class is indeed a parent class of the target class, then the syncPool() returns an empty result set, otherwise it throws an OCommandExecutionException

Author:
Luigi Dell'Aquila (luigi.dellaquila - at - orientdb.com)