Class CheckClassTypeStep
java.lang.Object
com.orientechnologies.orient.core.sql.executor.AbstractExecutionStep
com.orientechnologies.orient.core.sql.executor.CheckClassTypeStep
- All Implemented Interfaces:
OExecutionStepInternal
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)
-
Field Summary
Fields inherited from class com.orientechnologies.orient.core.sql.executor.AbstractExecutionStep
prev -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancopy(OCommandContext ctx) internalStart(OCommandContext context) prettyPrint(OPrintContext ctx) Methods inherited from class com.orientechnologies.orient.core.sql.executor.AbstractExecutionStep
getPrev, setPrevious, startMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.orientechnologies.orient.core.sql.executor.OExecutionStepInternal
deserialize, getName, getSubExecutionPlans, getSubSteps, getTargetNode, getType, serialize, serializeToResult, toResult, toResult
-
Constructor Details
-
CheckClassTypeStep
- Parameters:
targetClass- a class to be checkedparentClass- a class that is supposed to be the same or a parent class of the target class
-
-
Method Details
-
internalStart
- Specified by:
internalStartin classAbstractExecutionStep- Throws:
OTimeoutException
-
prettyPrint
-
copy
-
canBeCached
public boolean canBeCached()
-