E - the generic type of the queried object (typically a Bean).public class OrientDbSelectStatementImpl<E> extends AbstractSelectStatement<E,OrientDbSelectStatement<E>,com.orientechnologies.orient.core.record.impl.ODocument> implements OrientDbSelectStatement<E>
OrientDbSelectStatement.| Modifier | Constructor and Description |
|---|---|
|
OrientDbSelectStatementImpl(OrientDbDialect dialect,
EntityAlias<?> alias,
Function<com.orientechnologies.orient.core.record.impl.ODocument,E> mapper,
Class<E> toClass,
PropertyPath<?>... constructorArgs)
The constructor.
|
|
OrientDbSelectStatementImpl(OrientDbDialect dialect,
EntityAlias<?> alias,
Function<com.orientechnologies.orient.core.record.impl.ODocument,E> mapper,
PropertyPath<?>... paths)
The constructor.
|
protected |
OrientDbSelectStatementImpl(OrientDbDialect dialect,
EntityAlias<E> alias,
Function<com.orientechnologies.orient.core.record.impl.ODocument,E> mapper)
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected Object |
doExecute(String sql,
QueryMode mode,
Long offset,
Integer limit)
Creates a select query with the given
SQL and the given arguments. |
<V> Variable<V> |
let(PropertyPath<V> path,
String variable) |
OrientDbSelectStatement<E> |
let(String variable,
PropertyPath<?> path) |
<V> OrientDbSelectStatement<E> |
let(Variable<V> variable,
PropertyPath<V> path) |
static OrientDbSelectStatementImpl<com.orientechnologies.orient.core.record.impl.ODocument> |
of(com.orientechnologies.orient.core.metadata.schema.OClass oClass) |
static <E extends EntityBean> |
ofBean(E prototype,
Function<com.orientechnologies.orient.core.record.impl.ODocument,E> mapper) |
buildStart, createSqlSingleQuery, execute, getMapper, getSelectionPaths, groupBy, limit, offset, orderBy, query, queryCount, queryFirst, queryOne, querySingle, whereaddAlias, addAliases, build, createFeature, createSqlBuilder, feature, getAlias, getBuilder, getDialect, getFeature, getParameters, getResultClass, getSql, isSupportingAlias, self, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetAlias, getDialect, getParameters, getSql, toStringfetch, fetchCount, fetchFirst, fetchFirstRequired, fetchOne, fetchOneRequired, query, queryCount, queryFirst, queryOnewhereorderBy, orderBygroupByoffsetlimitprotected OrientDbSelectStatementImpl(OrientDbDialect dialect, EntityAlias<E> alias, Function<com.orientechnologies.orient.core.record.impl.ODocument,E> mapper)
dialect - - see AbstractStatement.getDialect(). Typically OrientDbDialect.INSTANCE.alias - - see AbstractStatement.getAlias(). E.g. ODB.alias(OClass).mapper - - see AbstractSelectStatement.getMapper().public OrientDbSelectStatementImpl(OrientDbDialect dialect, EntityAlias<?> alias, Function<com.orientechnologies.orient.core.record.impl.ODocument,E> mapper, Class<E> toClass, PropertyPath<?>... constructorArgs)
dialect - - see AbstractStatement.getDialect(). Typically OrientDbDialect.INSTANCE.alias - - see AbstractStatement.getAlias(). E.g. ODB.alias(OClass).mapper - - see AbstractSelectStatement.getMapper().toClass - - see
net.sf.mmm.util.query.api.statement.StatementFactory#selectFrom(EntityAlias, Class, Path...).constructorArgs - - see
net.sf.mmm.util.query.api.statement.StatementFactory#selectFrom(EntityAlias, Class, Path...).public OrientDbSelectStatementImpl(OrientDbDialect dialect, EntityAlias<?> alias, Function<com.orientechnologies.orient.core.record.impl.ODocument,E> mapper, PropertyPath<?>... paths)
dialect - - see AbstractStatement.getDialect(). Typically OrientDbDialect.INSTANCE.alias - - see AbstractStatement.getAlias(). E.g. ODB.alias(OClass).mapper - - see AbstractSelectStatement.getMapper().paths - - see
FeatureSelect.selectFrom(EntityAlias, Class, PropertyPath...)
.protected Object doExecute(String sql, QueryMode mode, Long offset, Integer limit)
AbstractSelectStatementSQL and the given arguments.doExecute in class AbstractSelectStatement<E,OrientDbSelectStatement<E>,com.orientechnologies.orient.core.record.impl.ODocument>sql - the SQL to execute.mode - the QueryMode.offset - the offset.limit - the limit.public <V> OrientDbSelectStatement<E> let(Variable<V> variable, PropertyPath<V> path)
let in interface FeatureLet<OrientDbSelectStatement<E>>V - the generic type of the value represented by the Variable and PropertyPath.variable - the context Variable to bind.path - the PropertyPath to bind to the Variable.public OrientDbSelectStatement<E> let(String variable, PropertyPath<?> path)
let in interface FeatureLet<OrientDbSelectStatement<E>>variable - the context Variable to bind.path - the PropertyPath to bind to the Variable.public <V> Variable<V> let(PropertyPath<V> path, String variable)
let in interface FeatureLet<OrientDbSelectStatement<E>>V - the generic type of the value represented by the Variable and PropertyPath.path - the PropertyPath to bind to the Variable.variable - the context Variable to bind.Variable created for the given String.public static <E extends EntityBean> OrientDbSelectStatementImpl<E> ofBean(E prototype, Function<com.orientechnologies.orient.core.record.impl.ODocument,E> mapper)
E - the generic type of the EntityBean.prototype - the prototype of the EntityBean.mapper - the Function to map from ODocument to <E>.OrientDbSelectStatement.public static OrientDbSelectStatementImpl<com.orientechnologies.orient.core.record.impl.ODocument> of(com.orientechnologies.orient.core.metadata.schema.OClass oClass)
oClass - the OClass.OrientDbSelectStatement.Copyright © 2001–2016 mmm-Team. All rights reserved.