Uses of Interface
org.litebridge.orm.engine.ast.QueryNode
Packages that use QueryNode
Package
Description
Condition construction clause implementations.
Fluent API for constructing DELETE statements
Fluent API for constructing
INSERT statements.Fluent API for constructing
MERGE statements.Fluent API for constructing DTO-mapped SQL queries (SELECT statements)
Common implementation classes for select operations.
Fluent API for constructing SQL queries (SELECT statements) without result object mapping
Fluent API for constructing UPDATE statements
Core common ORM API function services.
Abstract Syntax Tree (AST) nodes representing a statement/query.
Compiler for AST query nodes.
Persistence subsystem; contains classes for saving/updating/deleting DTOs
-
Uses of QueryNode in org.litebridge.orm.api.condition
Fields in org.litebridge.orm.api.condition declared as QueryNodeModifier and TypeFieldDescriptionprotected final QueryNodeAbstractCbConditionClauseTerminal.nodeThe current query node in the AST.protected final @Nullable QueryNodeAbstractConditionClauseStart.nodeThe current query node.Methods in org.litebridge.orm.api.condition that return QueryNodeModifier and TypeMethodDescriptionstatic QueryNodeCbConditionClauseTerminalInspector.getNode(AbstractCbConditionClauseTerminal<?, ?, ?, ?> terminal) Returns the current query node.Methods in org.litebridge.orm.api.condition with parameters of type QueryNodeModifier and TypeMethodDescriptionprotected abstract CCTAbstractCbConditionClause.createCbConditionClauseTerminal(QueryNode conditionNode) Creates a new terminal condition clause instance.protected CbDtoConditionClauseTerminal<DTO> CbDtoConditionClause.createCbConditionClauseTerminal(QueryNode conditionNode) protected CbSqlConditionClauseTerminal<ReturnType> CbSqlConditionClause.createCbConditionClauseTerminal(QueryNode conditionNode) Constructors in org.litebridge.orm.api.condition with parameters of type QueryNodeModifierConstructorDescriptionAbstractCbConditionClause(LitebridgeContext litebridgeContext, LogicOperator logicOperator, @Nullable String lhsColumn, @Nullable ExpressionSpec lhsExpression, @Nullable QueryNode node) Constructs a newAbstractCbConditionClause.AbstractCbConditionClauseTerminal(QueryNode node, LitebridgeContext litebridgeContext) Constructs a newAbstractCbConditionClauseTerminal.AbstractConditionClauseStart(@Nullable QueryNode node, LogicOperator logicOperator, LitebridgeContext litebridgeContext) Constructs a newAbstractConditionClauseStart.CbDtoConditionClause(LitebridgeContext litebridgeContext, LogicOperator logicOperator, @Nullable String lhsColumn, @Nullable ExpressionSpec lhsExpression, @Nullable QueryNode node) Constructs a newCbDtoConditionClause.CbDtoConditionClauseTerminal(QueryNode node, LitebridgeContext litebridgeContext) Constructs a newCbDtoConditionClauseTerminal.CbSqlConditionClause(SelectNode selectNode, LitebridgeContext litebridgeContext, LogicOperator logicOperator, @Nullable String lhsColumn, @Nullable ExpressionSpec lhsExpression, @Nullable QueryNode node) Constructs a newCbSqlConditionClause.CbSqlConditionClauseTerminal(SelectNode selectNode, QueryNode node, LitebridgeContext litebridgeContext) Constructs a newCbSqlConditionClauseTerminal.DtoConditionClauseStart(@Nullable QueryNode node, LogicOperator logicOperator, LitebridgeContext litebridgeContext) Creates a new DTO condition clause start.DtoConditionClauseStart(@Nullable QueryNode node, LitebridgeContext litebridgeContext) Creates a new DTO condition clause start.SqlConditionClauseStart(String table, @Nullable QueryNode node, LitebridgeContext litebridgeContext) Creates a new SQL condition clause start.SqlConditionClauseStart(SelectNode selectNode, @Nullable QueryNode node, LitebridgeContext litebridgeContext) Creates a new SQL condition clause start. -
Uses of QueryNode in org.litebridge.orm.api.delete
Methods in org.litebridge.orm.api.delete that return QueryNodeModifier and TypeMethodDescriptionstatic QueryNodeDeleteTerminalInspector.getNode(DeleteTerminal deleteTerminal) Extracts the ASTQueryNodefrom the specifiedDeleteTerminal.Constructors in org.litebridge.orm.api.delete with parameters of type QueryNodeModifierConstructorDescriptionDtoDeleteWhereConditionClauseTerminalImpl(QueryNode node, LitebridgeContext litebridgeContext) Creates a newDtoDeleteWhereConditionClauseTerminalImplinstance.SqlDeleteWhereConditionClauseTerminalImpl(String tableName, QueryNode node, LitebridgeContext litebridgeContext) Creates a newSqlDeleteWhereConditionClauseTerminalImplinstance.Constructor parameters in org.litebridge.orm.api.delete with type arguments of type QueryNodeModifierConstructorDescriptionDtoDeleteWhereConditionClause(LitebridgeContext litebridgeContext, LogicOperator logicOperator, @Nullable String lhsColumn, @Nullable ExpressionSpec lhsExpression, Function<QueryNode, DtoDeleteWhereConditionClauseTerminal<DTO>> terminalRecreator) Creates a newDtoDeleteWhereConditionClauseinstance.SqlDeleteWhereConditionClause(LitebridgeContext litebridgeContext, LogicOperator logicOperator, @Nullable String lhsColumn, @Nullable ExpressionSpec lhsExpression, Function<QueryNode, SqlDeleteWhereConditionClauseTerminal> terminalRecreator) Creates a newSqlDeleteWhereConditionClauseinstance. -
Uses of QueryNode in org.litebridge.orm.api.insert
Methods in org.litebridge.orm.api.insert that return QueryNodeModifier and TypeMethodDescriptionstatic QueryNodeInsertValuesStepInspector.getNode(InsertValuesStep insertValuesStep) Extracts the terminal query node from the providedInsertValuesStepinstance.Constructors in org.litebridge.orm.api.insert with parameters of type QueryNodeModifierConstructorDescriptionInsertValuesStep(QueryNode node, LitebridgeContext litebridgeContext) Creates a newInsertValuesStepinstance. -
Uses of QueryNode in org.litebridge.orm.api.merge
Fields in org.litebridge.orm.api.merge declared as QueryNodeModifier and TypeFieldDescriptionprotected QueryNodeMergeTerminal.nodeThe current query node.protected final QueryNodeMergeUpdateStep.nodeThe current query node in the AST chain.protected final @Nullable QueryNodeMergeOnConditionClauseTerminal.usingQueryNodeprotected final @Nullable QueryNodeMergeStepBase.usingQueryNodeThe using sub-query's terminal nodeprotected final @Nullable QueryNodeMergeStepBase.usingQueryNodeThe using sub-query's terminal nodeprotected final @Nullable QueryNodeMergeStepBase.usingQueryNodeThe using sub-query's terminal nodeMethods in org.litebridge.orm.api.merge that return QueryNodeModifier and TypeMethodDescriptionstatic QueryNodeMergeTerminalInspector.getNode(MergeTerminal mergeTerminal) Extracts the ASTQueryNodefrom the specifiedMergeTerminal.Methods in org.litebridge.orm.api.merge with parameters of type QueryNodeModifier and TypeMethodDescriptionprotected DtoMergeOnConditionClauseTerminal<DTO> DtoMergeOnStep.createMergeOnConditionClauseTerminal(QueryNode conditionNode, @Nullable String alias) protected abstract MCCTMergeOnStep.createMergeOnConditionClauseTerminal(QueryNode conditionNode, @Nullable String alias) protected SqlMergeOnConditionClauseTerminalSqlMergeOnStep.createMergeOnConditionClauseTerminal(QueryNode conditionNode, @Nullable String alias) Constructors in org.litebridge.orm.api.merge with parameters of type QueryNodeModifierConstructorDescriptionDtoMergeOnConditionClauseTerminal(Class<?> usingDtoClass, @Nullable QueryNode usingQueryNode, @Nullable ValuesSpec usingValues, @Nullable String usingAlias, QueryNode on, MergeNode mergeNode, LitebridgeContext litebridgeContext) Creates a newDtoMergeOnConditionClauseTerminalinstance.DtoMergeOnStep(QueryNode subselectNode, @Nullable String usingAlias, MergeNode mergeNode, LitebridgeContext litebridgeContext) Creates a newDtoMergeOnStepinstance using a subquery.DtoMergeUpdateStep(Class<DTO> dtoClass, QueryNode node, LitebridgeContext litebridgeContext) Creates a newDtoMergeUpdateStepinstance.MergeConditionClause(LitebridgeContext litebridgeContext, LogicOperator logicOperator, @Nullable String lhsColumn, @Nullable ExpressionSpec lhsExpression, @Nullable QueryNode node, Function<QueryNode, MCCT> terminalRecreator) Creates a newMergeConditionClauseinstance.MergeOnConditionClauseTerminal(@Nullable String usingTable, @Nullable Class<?> usingDtoClass, @Nullable QueryNode usingQueryNode, @Nullable ValuesSpec usingValues, @Nullable String usingAlias, QueryNode on, MergeNode mergeNode, LitebridgeContext litebridgeContext) Creates a newMergeOnConditionClauseTerminalinstance.MergeOnStep(QueryNode subselectNode, @Nullable String usingAlias, MergeNode mergeNode, LitebridgeContext litebridgeContext) Creates a newMergeOnStepinstance.MergeTerminal(QueryNode node) Creates a newMergeTerminalinstance.protectedMergeUpdateStep(QueryNode node, LitebridgeContext litebridgeContext) Creates a newMergeUpdateStepinstance.MergeWhenMatchedStep(MergeNode mergeNode, QueryNode node, LitebridgeContext litebridgeContext) Creates a newMergeWhenMatchedStepinstance.MergeWhenNotMatchedStep(MergeNode mergeNode, QueryNode node, LitebridgeContext litebridgeContext) Creates a newMergeWhenNotMatchedStepinstance.SqlMergeOnConditionClauseTerminal(String usingTable, @Nullable QueryNode usingQueryNode, @Nullable ValuesSpec usingValues, @Nullable String usingAlias, QueryNode on, MergeNode mergeNode, LitebridgeContext litebridgeContext) Creates a newMergeOnConditionClauseTerminalinstance.SqlMergeOnStep(QueryNode subselectNode, @Nullable String usingAlias, MergeNode mergeNode, LitebridgeContext litebridgeContext) Creates a newSqlMergeOnStepinstance..SqlMergeUpdateStep(String table, QueryNode node, LitebridgeContext litebridgeContext) Creates a newSqlMergeUpdateStepinstance.Constructor parameters in org.litebridge.orm.api.merge with type arguments of type QueryNodeModifierConstructorDescriptionMergeConditionClause(LitebridgeContext litebridgeContext, LogicOperator logicOperator, @Nullable String lhsColumn, @Nullable ExpressionSpec lhsExpression, @Nullable QueryNode node, Function<QueryNode, MCCT> terminalRecreator) Creates a newMergeConditionClauseinstance. -
Uses of QueryNode in org.litebridge.orm.api.select.dto
Constructors in org.litebridge.orm.api.select.dto with parameters of type QueryNodeModifierConstructorDescriptionDtoGroupByClauseTerminal(String[] fields, QueryNode node, SelectEngineTerminal selectEngineTerminal, LitebridgeContext litebridgeContext) Creates a newDtoGroupByClauseTerminalinstance using field names.DtoGroupByClauseTerminal(ExpressionSpec[] expressions, QueryNode node, SelectEngineTerminal selectEngineTerminal, LitebridgeContext litebridgeContext) Creates a newDtoGroupByClauseTerminalinstance using expressions.DtoHavingConditionClause(LitebridgeContext litebridgeContext, LogicOperator logicOperator, @Nullable String lhsField, @Nullable ExpressionSpec lhsExpression, @Nullable QueryNode node, Function<QueryNode, DtoHavingConditionClauseTerminal<DTO>> terminalRecreator) Creates a newDtoHavingConditionClauseinstance.DtoHavingConditionClauseTerminal(QueryNode node, SelectEngineTerminal selectEngineTerminal, LitebridgeContext litebridgeContext) Creates a newDtoHavingConditionClauseTerminalinstance.DtoJoinConditionClause(LitebridgeContext litebridgeContext, LogicOperator logicOperator, @Nullable String lhsColumn, @Nullable ExpressionSpec lhsExpression, QueryNode node, Function<QueryNode, DtoJoinConditionClauseTerminal<DTO>> terminalRecreator) Creates a newDtoJoinConditionClauseinstance.DtoOrderByClause(String[] columns, QueryNode node, SelectEngineTerminal selectEngineTerminal, LitebridgeContext litebridgeContext) Creates a new instance ofDtoOrderByClausewith column names.DtoOrderByClause(ExpressionSpec[] expressions, QueryNode node, SelectEngineTerminal selectEngineTerminal, LitebridgeContext litebridgeContext) Creates a new instance ofDtoOrderByClausewith expressions.DtoOrderByClauseChain(QueryNode node, SelectEngineTerminal selectEngineTerminal, LitebridgeContext litebridgeContext) Creates a new instance ofDtoOrderByClauseChain.DtoWhereConditionClause(LitebridgeContext litebridgeContext, LogicOperator logicOperator, @Nullable String lhsField, @Nullable ExpressionSpec lhsExpression, @Nullable QueryNode node, Function<QueryNode, DtoWhereConditionClauseTerminal<DTO>> terminalRecreator) Creates a newDtoWhereConditionClauseinstance.DtoWhereConditionClauseTerminal(QueryNode node, SelectEngineTerminal selectEngineTerminal, LitebridgeContext litebridgeContext) Constructs a newDtoWhereConditionClauseTerminal.Constructor parameters in org.litebridge.orm.api.select.dto with type arguments of type QueryNodeModifierConstructorDescriptionDtoHavingConditionClause(LitebridgeContext litebridgeContext, LogicOperator logicOperator, @Nullable String lhsField, @Nullable ExpressionSpec lhsExpression, @Nullable QueryNode node, Function<QueryNode, DtoHavingConditionClauseTerminal<DTO>> terminalRecreator) Creates a newDtoHavingConditionClauseinstance.DtoJoinClause(LitebridgeContext litebridgeContext, Function<QueryNode, DtoJoinConditionClauseTerminal<DTO>> terminalCreator) Creates a new instance ofDtoJoinClause.DtoJoinConditionClause(LitebridgeContext litebridgeContext, LogicOperator logicOperator, @Nullable String lhsColumn, @Nullable ExpressionSpec lhsExpression, QueryNode node, Function<QueryNode, DtoJoinConditionClauseTerminal<DTO>> terminalRecreator) Creates a newDtoJoinConditionClauseinstance.DtoWhereConditionClause(LitebridgeContext litebridgeContext, LogicOperator logicOperator, @Nullable String lhsField, @Nullable ExpressionSpec lhsExpression, @Nullable QueryNode node, Function<QueryNode, DtoWhereConditionClauseTerminal<DTO>> terminalRecreator) Creates a newDtoWhereConditionClauseinstance. -
Uses of QueryNode in org.litebridge.orm.api.select.impl
Fields in org.litebridge.orm.api.select.impl declared as QueryNodeFields in org.litebridge.orm.api.select.impl with type parameters of type QueryNodeMethods in org.litebridge.orm.api.select.impl that return QueryNodeModifier and TypeMethodDescriptionstatic QueryNodeSelectTerminalInspector.getNode(SelectTerminal<?> selectTerminal) Retrieves theQueryNodeassociated with the givenSelectTerminal.protected QueryNodeDelegatingSelectTerminal.node()Constructors in org.litebridge.orm.api.select.impl with parameters of type QueryNodeModifierConstructorDescriptionAbstractFromClauseTerminal(@Nullable QueryNode node, SelectEngineTerminal selectEngineTerminal, LitebridgeContext litebridgeContext) Creates a newAbstractFromClauseTerminalinstance.protectedAbstractGroupByClauseTerminal(QueryNode node, SelectEngineTerminal selectEngineTerminal, LitebridgeContext litebridgeContext) Creates a newAbstractGroupByClauseTerminalinstance.AbstractHavingClauseTerminal(QueryNode node, SelectEngineTerminal selectEngineTerminal, LitebridgeContext litebridgeContext) Creates a newAbstractHavingClauseTerminalinstance.AbstractJoinClauseTerminal(@Nullable QueryNode node, SelectEngineTerminal selectEngineTerminal, LitebridgeContext litebridgeContext) Creates a newAbstractJoinClauseTerminalinstance.AbstractWhereClauseTerminal(@Nullable QueryNode node, SelectEngineTerminal selectEngineTerminal, LitebridgeContext litebridgeContext) Creates a newAbstractWhereClauseTerminalinstance.protectedConditionClauseImpl(LitebridgeContext litebridgeContext, LogicOperator logicOperator, @Nullable String lhsColumn, @Nullable ExpressionSpec lhsExpression, @Nullable QueryNode node, Function<QueryNode, CCT> terminalCreator) Creates a newConditionClauseImplinstance.protectedDelegatingSelectTerminal(@Nullable QueryNode node, SelectEngineTerminal selectEngineTerminal, LitebridgeContext litebridgeContext) Creates a newDelegatingSelectTerminalinstance.LimitClauseTerminalImpl(Integer limit, @Nullable QueryNode node, SelectEngineTerminal selectEngineTerminal, LitebridgeContext litebridgeContext) Creates a newLimitClauseTerminalImplinstance with a limit.LimitClauseTerminalImpl(@Nullable QueryNode node, SelectEngineTerminal selectEngineTerminal, LitebridgeContext litebridgeContext) Creates a newLimitClauseTerminalImplinstance without an explicit limit.OrderByClauseTerminalImpl(@Nullable QueryNode node, SelectEngineTerminal selectEngineTerminal, LitebridgeContext litebridgeContext) Creates a newOrderByClauseTerminalImplinstance.Constructor parameters in org.litebridge.orm.api.select.impl with type arguments of type QueryNodeModifierConstructorDescriptionprotectedConditionClauseImpl(LitebridgeContext litebridgeContext, LogicOperator logicOperator, @Nullable String lhsColumn, @Nullable ExpressionSpec lhsExpression, @Nullable QueryNode node, Function<QueryNode, CCT> terminalCreator) Creates a newConditionClauseImplinstance. -
Uses of QueryNode in org.litebridge.orm.api.select.sql
Constructors in org.litebridge.orm.api.select.sql with parameters of type QueryNodeModifierConstructorDescriptionSqlGroupByClauseTerminal(SelectNode selectNode, String[] columns, QueryNode node, SelectEngineTerminal selectEngineTerminal, LitebridgeContext litebridgeContext) Creates a newSqlGroupByClauseTerminalinstance using column names.SqlGroupByClauseTerminal(SelectNode selectNode, ExpressionSpec[] expressions, QueryNode node, SelectEngineTerminal selectEngineTerminal, LitebridgeContext litebridgeContext) Creates a newSqlGroupByClauseTerminalinstance using expressions.SqlHavingConditionClause(LitebridgeContext litebridgeContext, LogicOperator logicOperator, @Nullable String lhsColumn, @Nullable ExpressionSpec lhsExpression, @Nullable QueryNode node, Function<QueryNode, SqlHavingConditionClauseTerminal<ReturnType>> terminalRecreator) Creates a newSqlHavingConditionClauseinstance.SqlHavingConditionClauseTerminal(SelectNode selectNode, QueryNode node, SelectEngineTerminal selectEngineTerminal, LitebridgeContext litebridgeContext) Creates a newSqlHavingConditionClauseTerminalinstance.SqlJoinConditionClause(LitebridgeContext litebridgeContext, LogicOperator logicOperator, @Nullable String lhsField, @Nullable ExpressionSpec lhsExpression, @Nullable QueryNode node, Function<QueryNode, SqlJoinConditionClauseTerminal<ReturnType>> terminalRecreator) Creates a newSqlJoinConditionClauseinstance.SqlOrderByClause(String[] columns, QueryNode node, SelectEngineTerminal selectEngineTerminal, LitebridgeContext litebridgeContext) Creates a new instance ofSqlOrderByClausewith column names.SqlOrderByClause(ExpressionSpec[] expressions, QueryNode node, SelectEngineTerminal selectEngineTerminal, LitebridgeContext litebridgeContext) Creates a new instance ofSqlOrderByClausewith expressions.SqlOrderByClauseChain(QueryNode node, SelectEngineTerminal selectEngineTerminal, LitebridgeContext litebridgeContext) Creates a new instance ofSqlOrderByClauseChain.SqlWhereConditionClause(LitebridgeContext litebridgeContext, LogicOperator logicOperator, @Nullable String lhsField, @Nullable ExpressionSpec lhsExpression, @Nullable QueryNode node, Function<QueryNode, SqlWhereConditionClauseTerminal<ReturnType>> terminalRecreator) Creates a newSqlWhereConditionClauseinstance.SqlWhereConditionClauseTerminal(SelectNode selectNode, QueryNode node, SelectEngineTerminal selectEngineTerminal, LitebridgeContext litebridgeContext) Constructs a newSqlWhereConditionClauseTerminal.Constructor parameters in org.litebridge.orm.api.select.sql with type arguments of type QueryNodeModifierConstructorDescriptionSqlHavingConditionClause(LitebridgeContext litebridgeContext, LogicOperator logicOperator, @Nullable String lhsColumn, @Nullable ExpressionSpec lhsExpression, @Nullable QueryNode node, Function<QueryNode, SqlHavingConditionClauseTerminal<ReturnType>> terminalRecreator) Creates a newSqlHavingConditionClauseinstance.SqlJoinClause(LitebridgeContext litebridgeContext, Function<QueryNode, SqlJoinConditionClauseTerminal<ReturnType>> terminalCreator) Creates a new instance ofSqlJoinClause.SqlJoinConditionClause(LitebridgeContext litebridgeContext, LogicOperator logicOperator, @Nullable String lhsField, @Nullable ExpressionSpec lhsExpression, @Nullable QueryNode node, Function<QueryNode, SqlJoinConditionClauseTerminal<ReturnType>> terminalRecreator) Creates a newSqlJoinConditionClauseinstance.SqlWhereConditionClause(LitebridgeContext litebridgeContext, LogicOperator logicOperator, @Nullable String lhsField, @Nullable ExpressionSpec lhsExpression, @Nullable QueryNode node, Function<QueryNode, SqlWhereConditionClauseTerminal<ReturnType>> terminalRecreator) Creates a newSqlWhereConditionClauseinstance. -
Uses of QueryNode in org.litebridge.orm.api.update
Methods in org.litebridge.orm.api.update that return QueryNodeModifier and TypeMethodDescriptionstatic QueryNodeUpdateQueryInspector.getNode(UpdateQuery updateQuery) Extracts the ASTQueryNodefrom the given update query.Constructors in org.litebridge.orm.api.update with parameters of type QueryNodeModifierConstructorDescriptionDtoUpdateSetStep(String field, QueryNode node, Function<QueryNode, DtoUpdateStep<DTO>> updateStepCreator) Creates a newDtoUpdateSetStepinstance with a field name.DtoUpdateSetStep(ExpressionSpec expressionSpec, QueryNode node, Function<QueryNode, DtoUpdateStep<DTO>> updateStepCreator) Creates a newDtoUpdateSetStepinstance with an expression specification.DtoUpdateStep(QueryNode node, LitebridgeContext litebridgeContext) Creates a newDtoUpdateStepinstance.DtoUpdateWhereConditionClauseTerminalImpl(QueryNode node, LitebridgeContext litebridgeContext) Creates a newDtoUpdateWhereConditionClauseTerminalImplinstance.SqlUpdateSetStep(String column, QueryNode node, Function<QueryNode, SqlUpdateStep> updateStepCreator) Creates a newSqlUpdateSetStepinstance with a column name.SqlUpdateSetStep(ExpressionSpec expressionSpec, QueryNode node, Function<QueryNode, SqlUpdateStep> updateStepCreator) Creates a newSqlUpdateSetStepinstance with an expression specification.SqlUpdateStep(String tableName, QueryNode node, LitebridgeContext litebridgeContext) Creates a newSqlUpdateStepinstance.SqlUpdateWhereConditionClauseTerminalImpl(String tableName, QueryNode node, LitebridgeContext litebridgeContext) Creates a newSqlUpdateWhereConditionClauseTerminalImplinstance.protectedCreates a newUpdateSetStepinstance with a column or field name.protectedUpdateSetStep(ExpressionSpec expressionSpec, QueryNode node, Function<QueryNode, US> updateStepCreator) Creates a newUpdateSetStepinstance with an expression specification.Constructor parameters in org.litebridge.orm.api.update with type arguments of type QueryNodeModifierConstructorDescriptionDtoUpdateSetStep(String field, QueryNode node, Function<QueryNode, DtoUpdateStep<DTO>> updateStepCreator) Creates a newDtoUpdateSetStepinstance with a field name.DtoUpdateSetStep(ExpressionSpec expressionSpec, QueryNode node, Function<QueryNode, DtoUpdateStep<DTO>> updateStepCreator) Creates a newDtoUpdateSetStepinstance with an expression specification.DtoUpdateWhereConditionClause(LitebridgeContext litebridgeContext, LogicOperator logicOperator, @Nullable String lhsField, @Nullable ExpressionSpec lhsExpression, Function<QueryNode, DtoUpdateWhereConditionClauseTerminal<DTO>> terminalRecreator) Creates a newDtoUpdateWhereConditionClauseinstance.SqlUpdateSetStep(String column, QueryNode node, Function<QueryNode, SqlUpdateStep> updateStepCreator) Creates a newSqlUpdateSetStepinstance with a column name.SqlUpdateSetStep(ExpressionSpec expressionSpec, QueryNode node, Function<QueryNode, SqlUpdateStep> updateStepCreator) Creates a newSqlUpdateSetStepinstance with an expression specification.SqlUpdateWhereConditionClause(LitebridgeContext litebridgeContext, LogicOperator logicOperator, @Nullable String lhsColumn, @Nullable ExpressionSpec lhsExpression, Function<QueryNode, SqlUpdateWhereConditionClauseTerminal> terminalRecreator) Creates a newSqlUpdateWhereConditionClauseinstance.protectedCreates a newUpdateSetStepinstance with a column or field name.protectedUpdateSetStep(ExpressionSpec expressionSpec, QueryNode node, Function<QueryNode, US> updateStepCreator) Creates a newUpdateSetStepinstance with an expression specification. -
Uses of QueryNode in org.litebridge.orm.engine
Methods in org.litebridge.orm.engine that return QueryNodeModifier and TypeMethodDescriptionstatic <DTO> QueryNodeDeleteEngine.createDeleteNodeChain(Class<DTO> dtoClass, Function<DtoDeleteStart<DTO>, DeleteTerminal> delete, LitebridgeContext litebridgeContext) Creates a chain of update nodes for the specified mapped DTO/entity type and delete logic.static QueryNodeDeleteEngine.createDeleteNodeChain(String tableName, Function<SqlDeleteStart, DeleteTerminal> delete, LitebridgeContext litebridgeContext) Creates a chain of update nodes for the specified table name and delete logic.static <DTO> QueryNodeUpdateEngine.createUpdateNodeChain(Class<DTO> dtoClass, Function<DtoUpdateStart<DTO>, UpdateQuery> update, LitebridgeContext litebridgeContext) Creates a chain of update nodes for the specified mapped DTO/entity type and update logic.static QueryNodeUpdateEngine.createUpdateNodeChain(String tableName, Function<SqlUpdateStart, UpdateQuery> update, LitebridgeContext litebridgeContext) Creates a chain of update nodes for the specified table name and update logic.Methods in org.litebridge.orm.engine with parameters of type QueryNodeModifier and TypeMethodDescriptionQueryBindValueExtractor.extractBindValues(QueryNode node, LitebridgeContext litebridgeContext) Extracts and collects bind values from the providedQueryNodeinto a list with context.<DTO> Optional<DTO> SelectEngineTerminal.fetchFirst(QueryNode node, LitebridgeContext litebridgeContext) Executes the query and returns the first row if present.<DTO> @Nullable DTOSelectEngineTerminal.fetchFirstOrNull(QueryNode node, LitebridgeContext litebridgeContext) Executes the query and returns the first row if present, ornullif no row matches.<DTO> DTOSelectEngineTerminal.fetchFirstOrThrow(QueryNode node, LitebridgeContext litebridgeContext) Executes the query and returns the first row.<DTO,X extends Throwable>
DTOSelectEngineTerminal.fetchFirstOrThrow(QueryNode node, LitebridgeContext litebridgeContext, Supplier<? extends X> exceptionSupplier) Executes the query and returns the first row.<DTO> List<DTO> SelectEngineTerminal.fetchList(QueryNode node, LitebridgeContext litebridgeContext) Executes the query and returns a list of results.<DTO> Optional<DTO> SelectEngineTerminal.fetchOne(QueryNode node, LitebridgeContext litebridgeContext) Executes the query and returns exactly one result.<DTO> @Nullable DTOSelectEngineTerminal.fetchOneOrNull(QueryNode node, LitebridgeContext litebridgeContext) Executes the query and returns exactly one result, ornullif no row matches.<DTO> DTOSelectEngineTerminal.fetchOneOrThrow(QueryNode node, LitebridgeContext litebridgeContext) Executes the query and returns exactly one result.<DTO,X extends Throwable>
DTOSelectEngineTerminal.fetchOneOrThrow(QueryNode node, LitebridgeContext litebridgeContext, Supplier<? extends X> exceptionSupplier) Executes the query and returns exactly one result.<DTO> Stream<DTO> SelectEngineTerminal.fetchStream(QueryNode node, LitebridgeContext litebridgeContext) Executes the query and returns results as aStream.SelectEngineTerminal.generateSql(QueryNode node, LitebridgeContext litebridgeContext) Generates SQL for the query without executing it.@Nullable QueryPlanCache.CachedOperationRetrieves a cached execution plan for the given select operation.voidQueryPlanCache.put(QueryNode node, QueryPlanCache.CachedOperation cachedOperation) Stores an execution plan in the cache. -
Uses of QueryNode in org.litebridge.orm.engine.ast
Subinterfaces of QueryNode in org.litebridge.orm.engine.astModifier and TypeInterfaceDescriptioninterfaceAn AST node representing a condition.Classes in org.litebridge.orm.engine.ast that implement QueryNodeModifier and TypeClassDescriptionfinal recordRepresents a group of conditions in the query AST.final recordRepresents a JOIN USING condition in the query AST.final recordRepresents a condition within a JOIN, WHERE or HAVING clause in the query AST.final recordQuery condition node for selecting a record by its primary key.final recordRepresents a DELETE statement in the query AST.final recordRepresents a GROUP BY clause in the query AST.final classHAVING clause condition in the query AST.final recordRepresents a VALUES clause of an INSERT STATEMENT in the query AST, specifically for extracting and inserting values from a DTO instance.final recordRepresents an INSERT statement in the query AST.final recordRepresents a VALUES clause of an INSERT STATEMENT in the query AST.final classRepresents a JOIN clause metadata in the query AST.final recordRepresents a LIMIT clause in the query AST.final recordRepresents a MERGE INTO statement in the query AST.final recordRepresents an ORDER BY clause in the query AST.final recordRepresents a SELECT clause in the query AST.final recordRepresents a SET clause in an UPDATE statement in the query AST.final recordRepresents an UPDATE statement in the query AST.final recordRepresents a USING clause in a MERGE statement in the query AST.final recordRepresents a WHEN MATCHED clause in a MERGE statement in the query AST.final recordRepresents a WHEN NOT MATCHED clause in a MERGE statement in the query AST.final classRepresents a WHERE clause condition in the query AST.Methods in org.litebridge.orm.engine.ast that return QueryNodeModifier and TypeMethodDescription@Nullable QueryNodeWhenNotMatchedNode.and()Returns the value of theandrecord component.HavingNode.condition()Returns the HAVING condition node.@Nullable QueryNodeJoinNode.condition()Returns the join condition node.WhereNode.condition()Returns the conditions associated with the WHERE clause.@Nullable QueryNodeSelectNode.fromQueryNode()Returns the value of thefromQueryNoderecord component.WhenNotMatchedNode.insert()Returns the value of theinsertrecord component.ConditionGroupNode.lastChild()Returns the value of thelastChildrecord component.UsingNode.on()Returns the value of theonrecord component.@Nullable QueryNodeConditionGroupNode.previous()Returns the value of thepreviousrecord component.@Nullable QueryNodeConditionJoinUsingNode.previous()Returns the value of thepreviousrecord component.@Nullable QueryNodeConditionNode.previous()Returns the value of thepreviousrecord component.@Nullable QueryNodeConditionWithIdNode.previous()Returns the value of thepreviousrecord component.@Nullable QueryNodeDeleteNode.previous()Returns the value of thepreviousrecord component.@Nullable QueryNodeGroupByNode.previous()Returns the value of thepreviousrecord component.@Nullable QueryNodeHavingNode.previous()@Nullable QueryNodeInsertDtoValuesNode.previous()Returns the value of thepreviousrecord component.@Nullable QueryNodeInsertNode.previous()@Nullable QueryNodeInsertValuesNode.previous()Returns the value of thepreviousrecord component.@Nullable QueryNodeJoinNode.previous()@Nullable QueryNodeLimitNode.previous()Returns the value of thepreviousrecord component.@Nullable QueryNodeMergeNode.previous()@Nullable QueryNodeOrderByNode.previous()Returns the value of thepreviousrecord component.@Nullable QueryNodeQueryNode.previous()Returns the previous node in the chain, ornullif this is the root node.@Nullable QueryNodeSelectNode.previous()@Nullable QueryNodeSetNode.previous()Returns the value of thepreviousrecord component.@Nullable QueryNodeUpdateNode.previous()WhenMatchedNode.previous()Returns the value of thepreviousrecord component.WhenNotMatchedNode.previous()Returns the value of thepreviousrecord component.@Nullable QueryNodeWhereNode.previous()@Nullable QueryNodeUsingNode.query()Returns the value of thequeryrecord component.@Nullable QueryNodeJoinNode.queryNode()WhenMatchedNode.update()Returns the value of theupdaterecord component.Methods in org.litebridge.orm.engine.ast with parameters of type QueryNodeModifier and TypeMethodDescriptionvoidJoinNode.setCondition(@Nullable QueryNode condition) Sets the join condition node.HavingNode.withCondition(QueryNode condition) Sets the HAVING condition node.WhereNode.withCondition(QueryNode condition) Sets the conditions for this WHERE clause, by replacing the current condition.Constructors in org.litebridge.orm.engine.ast with parameters of type QueryNodeModifierConstructorDescriptionConditionGroupNode(@Nullable QueryNode previous, LogicOperator logicOperator, QueryNode lastChild) Creates an instance of aConditionGroupNoderecord class.ConditionJoinUsingNode(@Nullable QueryNode previous, LogicOperator logicOperator, @Nullable String usingColumn, @Nullable ExpressionSpec usingExpression) Creates an instance of aConditionJoinUsingNoderecord class.ConditionNode(@Nullable QueryNode previous, LogicOperator logicOperator, @Nullable String lhsColumn, @Nullable ExpressionSpec lhsExpression, Operator operator, @Nullable Object rhs) Creates a newConditionNodeinstance without a right-hand side column.ConditionNode(@Nullable QueryNode previous, LogicOperator logicOperator, @Nullable String lhsColumn, @Nullable ExpressionSpec lhsExpression, Operator operator, @Nullable Object rhs, @Nullable String rhsColumn) Creates an instance of aConditionNoderecord class.ConditionWithIdNode(@Nullable QueryNode previous, LogicOperator logicOperator, Operator operator, @Nullable Object id) Creates an instance of aConditionWithIdNoderecord class.DeleteNode(@Nullable QueryNode previous, @Nullable String table, @Nullable Class<?> dtoClass) Creates an instance of aDeleteNoderecord class.GroupByNode(@Nullable QueryNode previous, String @Nullable [] columns, ExpressionSpec @Nullable [] expressions) Creates an instance of aGroupByNoderecord class.HavingNode(@Nullable QueryNode previous, QueryNode condition) Creates a newHavingNodeinstance.InsertDtoValuesNode(@Nullable QueryNode previous, Object dto) Creates an instance of aInsertDtoValuesNoderecord class.InsertValuesNode(@Nullable QueryNode previous, @Nullable Object[] values) Creates an instance of aInsertValuesNoderecord class.JoinNode(@Nullable QueryNode previous, Join.JoinType type, @Nullable Class<?> dtoClass, @Nullable Class<?> contextDtoClass, @Nullable String table, @Nullable QueryNode queryNode, @Nullable String alias) Constructs a newJoinNode.Creates an instance of aLimitNoderecord class.OrderByNode(@Nullable QueryNode previous, @Nullable String column, @Nullable ExpressionSpec expression, boolean ascending) Creates an instance of aOrderByNoderecord class.SelectNode(@Nullable String table, @Nullable Class<?> dtoClass, @Nullable Class<?> contextDtoClass, @Nullable QueryNode fromQueryNode, @Nullable String alias, String @Nullable [] columns, ExpressionSpec @Nullable [] expressions, Class<?> @Nullable [] resultTypes) Creates an instance of aSelectNoderecord class.SelectNode(@Nullable QueryNode fromQueryNode, @Nullable String alias, String @Nullable [] columns, ExpressionSpec @Nullable [] expressions, Class<?> @Nullable [] resultTypes) SetNode(@Nullable QueryNode previous, @Nullable String column, @Nullable ExpressionSpec expressionSpec, @Nullable Object value, @Nullable MathOperator mathOperator) Creates an instance of aSetNoderecord class.Creates a newSetNodeinstance targeting a column by name.SetNode(@Nullable QueryNode previous, ExpressionSpec expressionSpec, @Nullable Object value) Creates a newSetNodeinstance targeting a column by expression specification.UsingNode(MergeNode previous, @Nullable String table, @Nullable Class<?> dtoClass, @Nullable QueryNode query, @Nullable ValuesSpec values, @Nullable String alias, QueryNode on) Creates an instance of aUsingNoderecord class.UsingNode(MergeNode previous, ValuesSpec values, @Nullable String alias, QueryNode on) WhenMatchedNode(QueryNode previous, QueryNode update) Creates an instance of aWhenMatchedNoderecord class.WhenNotMatchedNode(QueryNode previous, @Nullable QueryNode and, QueryNode insert) Creates an instance of aWhenNotMatchedNoderecord class.Constructs a newWhereNodeinstance. -
Uses of QueryNode in org.litebridge.orm.engine.compiler
Methods in org.litebridge.orm.engine.compiler with parameters of type QueryNodeModifier and TypeMethodDescriptionCompiles a given query node into a prepared operation.QueryCompiler.compile(QueryNode node, @Nullable List<SelectTarget> contextSelectTargets) -
Uses of QueryNode in org.litebridge.orm.persistence
Fields in org.litebridge.orm.persistence declared as QueryNodeModifier and TypeFieldDescriptionprotected @Nullable QueryNodeAbstractStatementBuilder.nodeThe current query node.Methods in org.litebridge.orm.persistence that return QueryNodeModifier and TypeMethodDescriptionAbstractStatementBuilder.node()ManualUpsert.node()NoOpStatementBuilder.node()Invoking this method will throw anUnsupportedOperationException.StatementBuilder.node()Returns the current query node.Methods in org.litebridge.orm.persistence with parameters of type QueryNodeModifier and TypeMethodDescriptionAdds a WHERE condition to the statement.