Class FindStatement<ENTITY extends tech.ydb.yoj.repository.db.Entity<ENTITY>,RESULT>
java.lang.Object
tech.ydb.yoj.repository.ydb.statement.YqlStatement<PARAMS,ENTITY,RESULT>
tech.ydb.yoj.repository.ydb.statement.PredicateStatement<Collection<? extends YqlStatementPart<?>>,ENTITY,RESULT>
tech.ydb.yoj.repository.ydb.statement.FindStatement<ENTITY,RESULT>
- All Implemented Interfaces:
Statement<Collection<? extends YqlStatementPart<?>>,RESULT>
public class FindStatement<ENTITY extends tech.ydb.yoj.repository.db.Entity<ENTITY>,RESULT>
extends PredicateStatement<Collection<? extends YqlStatementPart<?>>,ENTITY,RESULT>
-
Nested Class Summary
Nested classes/interfaces inherited from class tech.ydb.yoj.repository.ydb.statement.PredicateStatement
PredicateStatement.CollectionKind, PredicateStatement.ComplexFieldNested classes/interfaces inherited from interface tech.ydb.yoj.repository.ydb.statement.Statement
Statement.QueryType -
Field Summary
Fields inherited from class tech.ydb.yoj.repository.ydb.statement.YqlStatement
itemsCollector, ORDER_BY_ID_ASCENDING, resultSchema, resultSetReader, schema, tableDescriptor -
Method Summary
Modifier and TypeMethodDescriptionstatic <E extends tech.ydb.yoj.repository.db.Entity<E>,R>
FindStatement<E,R> from(@NonNull tech.ydb.yoj.repository.db.TableDescriptor<E> tableDescriptor, @NonNull tech.ydb.yoj.repository.db.EntitySchema<E> schema, @NonNull Schema<R> outSchema, @NonNull Collection<? extends YqlStatementPart<?>> parts, boolean distinct) Returns parameterized YQL for this query.Returns query type (for query merging purposes).toDebugString(Collection<? extends YqlStatementPart<?>> yqlStatementParts) Returns debug representation of this query with the specified parameter values.Methods inherited from class tech.ydb.yoj.repository.ydb.statement.PredicateStatement
createTQueryParameter, declarations, getParams, getYqlType, getYqlValue, toQueryParametersMethods inherited from class tech.ydb.yoj.repository.ydb.statement.YqlStatement
equals, escape, getDeclaration, getInSchemaType, hashCode, isPreparable, mergeParts, mergeParts, nameEqVars, outNames, readResult, resolveParamNames, storeToCache, table, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface tech.ydb.yoj.repository.ydb.statement.Statement
readFromCache
-
Method Details
-
from
public static <E extends tech.ydb.yoj.repository.db.Entity<E>,R> FindStatement<E,R> from(@NonNull @NonNull tech.ydb.yoj.repository.db.TableDescriptor<E> tableDescriptor, @NonNull @NonNull tech.ydb.yoj.repository.db.EntitySchema<E> schema, @NonNull @NonNull Schema<R> outSchema, @NonNull @NonNull Collection<? extends YqlStatementPart<?>> parts, boolean distinct) -
getQuery
Description copied from interface:StatementReturns parameterized YQL for this query.- Parameters:
tablespace- base path for all tables referenced in the query- Returns:
- YQL
-
getQueryType
Description copied from interface:StatementReturns query type (for query merging purposes).- Returns:
- query type
-
toDebugString
Description copied from interface:StatementReturns debug representation of this query with the specified parameter values.- Parameters:
yqlStatementParts- parameter values. Might benulldepending on the statement type, e.g. for DELETE statements.- Returns:
- debug representation of the query parameterized with
params
-