Class OrientUtils
java.lang.Object
com.chutneytesting.component.scenario.infra.orient.OrientUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringaddPaginationParameters(String query) static voidclose(com.orientechnologies.orient.core.db.ODatabaseSession dbSession) static com.orientechnologies.orient.core.metadata.schema.OClasscreateClass(String className, int clusterNb, com.orientechnologies.orient.core.db.ODatabaseSession dbSession) static com.orientechnologies.orient.core.metadata.schema.OClasscreateClass(String className, String superClassName, int clusterNb, com.orientechnologies.orient.core.db.ODatabaseSession dbSession) static voidcreateIndex(String className, com.orientechnologies.orient.core.db.ODatabaseSession dbSession, String indexName, com.orientechnologies.orient.core.metadata.schema.OClass.INDEX_TYPE indexType, String... propertiesToIndex) static voidcreateProperty(String className, com.orientechnologies.orient.core.db.ODatabaseSession dbSession, String propertyName, com.orientechnologies.orient.core.metadata.schema.OType type) static voiddeleteVertex(String recordId, com.orientechnologies.orient.core.db.ODatabaseSession dbSession) static voiddropClassWithData(String className, com.orientechnologies.orient.core.db.ODatabaseSession dbSession) static voiddropdIndex(String indexName, com.orientechnologies.orient.core.db.ODatabaseSession dbSession) static Optional<com.orientechnologies.orient.core.record.OElement>static voidreloadIfDirty(com.orientechnologies.orient.core.record.OElement element) static LongresultSetToCount(com.orientechnologies.orient.core.sql.executor.OResultSet resultSet) static voidrollback(com.orientechnologies.orient.core.db.ODatabaseSession dbSession) static voidsetOnlyOnceProperty(com.orientechnologies.orient.core.record.OElement element, String name, Object value, com.orientechnologies.orient.core.metadata.schema.OType type) static voidsetOrRemoveProperty(com.orientechnologies.orient.core.record.OElement element, String name, Object value, com.orientechnologies.orient.core.metadata.schema.OType type) static voidsetOrRemoveProperty(com.orientechnologies.orient.core.record.OElement element, String name, String value, com.orientechnologies.orient.core.metadata.schema.OType type) static voidsetOrRemoveProperty(com.orientechnologies.orient.core.record.OElement element, String name, Optional<?> value, com.orientechnologies.orient.core.metadata.schema.OType type) static <T> voidsetOrRemoveProperty(com.orientechnologies.orient.core.record.OElement element, String name, T value, Function<T, Boolean> setCondition, com.orientechnologies.orient.core.metadata.schema.OType type) static <T> voidsetOrRemoveProperty(com.orientechnologies.orient.core.record.OElement element, String name, T value, Function<T, Boolean> setCondition, Function<T, Object> extractValueFunction, com.orientechnologies.orient.core.metadata.schema.OType type)
-
Constructor Details
-
OrientUtils
public OrientUtils()
-
-
Method Details
-
setOrRemoveProperty
-
setOrRemoveProperty
-
setOrRemoveProperty
-
setOrRemoveProperty
-
setOrRemoveProperty
-
setOnlyOnceProperty
-
resultSetToCount
public static Long resultSetToCount(com.orientechnologies.orient.core.sql.executor.OResultSet resultSet) -
addPaginationParameters
-
createClass
-
dropClassWithData
public static void dropClassWithData(String className, com.orientechnologies.orient.core.db.ODatabaseSession dbSession) -
createClass
public static com.orientechnologies.orient.core.metadata.schema.OClass createClass(String className, int clusterNb, com.orientechnologies.orient.core.db.ODatabaseSession dbSession) -
close
public static void close(com.orientechnologies.orient.core.db.ODatabaseSession dbSession) -
rollback
public static void rollback(com.orientechnologies.orient.core.db.ODatabaseSession dbSession) -
load
-
reloadIfDirty
public static void reloadIfDirty(com.orientechnologies.orient.core.record.OElement element) -
deleteVertex
public static void deleteVertex(String recordId, com.orientechnologies.orient.core.db.ODatabaseSession dbSession) -
dropdIndex
public static void dropdIndex(String indexName, com.orientechnologies.orient.core.db.ODatabaseSession dbSession) -
createProperty
-
createIndex
-