Uses of Interface
org.litebridge.orm.expression.ExpressionSpec
Packages that use ExpressionSpec
Package
Description
Litebridge ORM
Condition construction clause abstract implementations.
Fluent API for constructing DTO-mapped SQL queries (SELECT statements)
Fluent API for constructing DTO-based deletes (DELETE statements)
Fluent API for constructing DTO-based updates (UPDATE statements)
Fluent API for constructing SQL queries (SELECT statements)
Query/clause specification models used in the query API
Fluent API for constructing SQL queries (SELECT statements) without result object mapping
Fluent API for constructing direct SQL deletes (DELETE statements)
Fluent API for constructing direct SQL updates (UPDATE statements)
Core common ORM API function services.
Select query expressions.
Aggregate SQL function expressions
Date/time-based SQL function expressions
Scalar SQL function expressions
Java-based query expression modifier "expressions"/intents.
Expressions to select specific expressions from a database
Metamodel support.
-
Uses of ExpressionSpec in org.litebridge.orm
Methods in org.litebridge.orm with parameters of type ExpressionSpec -
Uses of ExpressionSpec in org.litebridge.orm.api.condition
Methods in org.litebridge.orm.api.condition with parameters of type ExpressionSpecModifier and TypeMethodDescriptionfinal AbstractCbConditionClause<DTO> AbstractCbConditionClauseTerminal.and(ExpressionSpec expression) final AbstractCbConditionClause<DTO> AbstractCbConditionClauseTerminal.or(ExpressionSpec expression) final AbstractCbConditionClause<DTO> AbstractConditionClauseStart.where(ExpressionSpec expression) Starts a WHERE clause with an expression.protected final AbstractCbConditionClause<DTO> AbstractCbConditionClauseTerminal.whereImpl(LogicOperator logicOperator, ExpressionSpec expression) Internal implementation of the WHERE clause for expressions. -
Uses of ExpressionSpec in org.litebridge.orm.api.dto
Methods in org.litebridge.orm.api.dto that return types with arguments of type ExpressionSpecModifier and TypeMethodDescriptionDtoSelectSpec.createSelectFieldSpecs(String[] fields) Creates select field specifications for the given fields.Methods in org.litebridge.orm.api.dto with parameters of type ExpressionSpecModifier and TypeMethodDescriptionDtoHavingConditionClauseTerminal.and(ExpressionSpec expression) DtoJoinConditionClauseTerminal.and(ExpressionSpec expression) DtoWhereConditionClauseTerminal.and(ExpressionSpec expression) DtoFromClauseTerminal.groupBy(ExpressionSpec... fields) DtoJoinConditionClauseTerminal.groupBy(ExpressionSpec... fields) DtoWhereConditionClauseTerminal.groupBy(ExpressionSpec... fields) DtoGroupByClauseTerminal.having(ExpressionSpec expression) DtoJoinClause.on(ExpressionSpec expression) Adds a join ON condition based on a query expression.DtoHavingConditionClauseTerminal.or(ExpressionSpec expression) DtoJoinConditionClauseTerminal.or(ExpressionSpec expression) DtoWhereConditionClauseTerminal.or(ExpressionSpec expression) DtoFromClauseTerminal.orderBy(ExpressionSpec... fields) DtoGroupByClauseTerminal.orderBy(ExpressionSpec... fields) DtoHavingConditionClauseTerminal.orderBy(ExpressionSpec... fields) DtoJoinConditionClauseTerminal.orderBy(ExpressionSpec... fields) DtoWhereConditionClauseTerminal.orderBy(ExpressionSpec... fields) DtoSelector.select(ExpressionSpec... expressionSpecs) Selects specific fields.DtoOrderByClauseChain.then(ExpressionSpec... fields) DtoFromClauseTerminal.where(ExpressionSpec expression) DtoJoinConditionClauseTerminal.where(ExpressionSpec expression) -
Uses of ExpressionSpec in org.litebridge.orm.api.dto.delete
Methods in org.litebridge.orm.api.dto.delete with parameters of type ExpressionSpecModifier and TypeMethodDescriptionDtoDeleteWhereConditionClauseTerminalImpl.and(ExpressionSpec expression) DtoDeleteWhereConditionClauseTerminalImpl.or(ExpressionSpec expression) DtoDeleteWhereClause.where(ExpressionSpec expression) Creates a condition based on an expression.DtoDeletor.where(ExpressionSpec expression) -
Uses of ExpressionSpec in org.litebridge.orm.api.dto.update
Methods in org.litebridge.orm.api.dto.update with parameters of type ExpressionSpecModifier and TypeMethodDescriptionDtoUpdateWhereConditionClauseTerminalImpl.and(ExpressionSpec expression) DtoUpdateWhereConditionClauseTerminalImpl.or(ExpressionSpec expression) DtoUpdater.where(ExpressionSpec expression) DtoUpdateStep.where(ExpressionSpec expression) Adds a where condition by expression. -
Uses of ExpressionSpec in org.litebridge.orm.api.select
Fields in org.litebridge.orm.api.select declared as ExpressionSpecModifier and TypeFieldDescriptionprotected final ExpressionSpec[]AbstractFromClauseStart.expressionSpecsThe expression specifications to select.protected final ExpressionSpec[]AbstractFromClauseStart.expressionSpecsThe expression specifications to select.Methods in org.litebridge.orm.api.select with parameters of type ExpressionSpecModifier and TypeMethodDescriptionConditionClauseTerminal.and(ExpressionSpec expression) Adds an "AND" condition to the current condition clause using the specified expression.WhereClauseTerminal.groupBy(ExpressionSpec... columns) Adds a GROUP BY clause to the query, specifying the expressions to group the results by.GroupByClauseTerminal.having(ExpressionSpec expression) Starts a HAVING clause for the SQL query.ConditionClauseTerminal.or(ExpressionSpec expression) Adds an "OR" condition to the current condition clause using the specified expression.HavingClauseTerminal.orderBy(ExpressionSpec... columns) Adds an ORDER BY clause to the query, specifying the fields and expressions to sort the results by.WhereClauseTerminal.orderBy(ExpressionSpec... columns) Adds an ORDER BY clause to the query, specifying the fields and expressions to sort the results by.SelectApi.select(ExpressionSpec... expressions) Query data from the database, without mapping results to Data Transfer Objects (DTOs).OrderByClauseChain.then(ExpressionSpec... columns) Adds another ordering expression which again requires an explicit direction.JoinClauseTerminal.where(ExpressionSpec expression) Starts a WHERE clause for the SQL query.Constructors in org.litebridge.orm.api.select with parameters of type ExpressionSpecModifierConstructorDescriptionFromClauseStart(ExpressionSpec[] expressionSpecs, FromClauseEngine fromClauseEngine) Constructs a newFromClauseStartwith the given expression specifications.FromClauseStartTypeOverride(Class<TypeOverride> typeOverride, ExpressionSpec[] expressionSpecs, FromClauseEngine fromClauseEngine) Constructs a newFromClauseStartTypeOverridewith expression specifications. -
Uses of ExpressionSpec in org.litebridge.orm.api.select.model
Fields in org.litebridge.orm.api.select.model with type parameters of type ExpressionSpecMethods in org.litebridge.orm.api.select.model that return ExpressionSpecModifier and TypeMethodDescriptionConditionSpec.getLhs()Gets the left-hand side expression of the condition.Methods in org.litebridge.orm.api.select.model that return types with arguments of type ExpressionSpecModifier and TypeMethodDescriptionGroupBySpec.expressions()Returns the value of theexpressionsrecord component.OrderBySpec.expressions()Returns the expressions to order by.SelectSpec.getExpressions()protected Stream<ExpressionSpec> ProtoExpressionResolver.resolveConvertSpec(ConvertSpec<?> convertSpec, ClauseType clause) Resolves a convert specification.ProtoExpressionResolver.resolveExpression(ExpressionSpec expressionSpec, ClauseType clause) Resolves a proto-expression into anExpressionSpec.ProtoExpressionResolver.resolveExpression(Resolvable resolvable, ClauseType clause) Resolves aResolvableinto anExpressionSpec.ProtoExpressionResolver.resolveExpressions(List<ExpressionSpec> expressionSpecs, ClauseType clause) Resolves a list of expression specifications.Methods in org.litebridge.orm.api.select.model with parameters of type ExpressionSpecModifier and TypeMethodDescriptionSelectSpec.convertToSelectExpressionStream(ExpressionSpec[] expressionSpecs, boolean useSelectReferences) ConditionGroupSpec.newCondition(LogicOperator logicOperator, ExpressionSpec expressionSpec) Adds a new condition to the group and returns its specification.SelectSpec.newOrderBy(ExpressionSpec... expressions) ProtoExpressionResolver.resolveExpression(ExpressionSpec expressionSpec, ClauseType clause) Resolves a proto-expression into anExpressionSpec.voidConditionSpec.setLhs(ExpressionSpec lhs) Sets the left-hand side expression of the condition.Method parameters in org.litebridge.orm.api.select.model with type arguments of type ExpressionSpecModifier and TypeMethodDescriptionvoidSelectSpec.addExpressions(List<? extends ExpressionSpec> expressions) static booleanProtoExpressionResolver.isSupported(Class<? extends ExpressionSpec> type) Checks if a given expression type is supported for resolution.SelectSpec.newOrderBy(List<ExpressionSpec> expressions) ProtoExpressionResolver.resolveExpressions(List<ExpressionSpec> expressionSpecs, ClauseType clause) Resolves a list of expression specifications.voidSelectSpec.setExpressions(List<ExpressionSpec> expressionSpecs) Constructors in org.litebridge.orm.api.select.model with parameters of type ExpressionSpecModifierConstructorDescriptionGroupBySpec(ExpressionSpec[] expressions) Constructs a newGroupBySpecfrom an array of expression specifications.Constructor parameters in org.litebridge.orm.api.select.model with type arguments of type ExpressionSpecModifierConstructorDescriptionGroupBySpec(List<ExpressionSpec> expressions) Creates an instance of aGroupBySpecrecord class.OrderBySpec(List<? extends ExpressionSpec> expressions) Creates a new OrderBySpec with ascending order by default.OrderBySpec(List<? extends ExpressionSpec> expressions, boolean asc) Creates a new OrderBySpec. -
Uses of ExpressionSpec in org.litebridge.orm.api.sql
Methods in org.litebridge.orm.api.sql that return types with arguments of type ExpressionSpecMethods in org.litebridge.orm.api.sql with parameters of type ExpressionSpecModifier and TypeMethodDescriptionSqlHavingConditionClauseTerminal.and(ExpressionSpec expression) SqlJoinConditionClauseTerminal.and(ExpressionSpec expression) SqlWhereConditionClauseTerminal.and(ExpressionSpec expression) SqlFromClauseTerminal.groupBy(ExpressionSpec... columns) SqlJoinConditionClauseTerminal.groupBy(ExpressionSpec... columns) SqlWhereConditionClauseTerminal.groupBy(ExpressionSpec... columns) SqlGroupByClauseTerminal.having(ExpressionSpec expression) SqlHavingConditionClauseTerminal.or(ExpressionSpec expression) SqlJoinConditionClauseTerminal.or(ExpressionSpec expression) SqlWhereConditionClauseTerminal.or(ExpressionSpec expression) SqlFromClauseTerminal.orderBy(ExpressionSpec... columns) SqlGroupByClauseTerminal.orderBy(ExpressionSpec... columns) SqlHavingConditionClauseTerminal.orderBy(ExpressionSpec... columns) SqlJoinConditionClauseTerminal.orderBy(ExpressionSpec... columns) SqlWhereConditionClauseTerminal.orderBy(ExpressionSpec... columns) SqlSelector.select(ExpressionSpec... expressionSpecs) SqlOrderByClauseChain.then(ExpressionSpec... columns) SqlFromClauseTerminal.where(ExpressionSpec expression) SqlJoinConditionClauseTerminal.where(ExpressionSpec expression) -
Uses of ExpressionSpec in org.litebridge.orm.api.sql.delete
Methods in org.litebridge.orm.api.sql.delete with parameters of type ExpressionSpecModifier and TypeMethodDescriptionSqlDeleteWhereConditionClauseTerminalImpl.and(ExpressionSpec expression) SqlDeleteWhereConditionClauseTerminalImpl.or(ExpressionSpec expression) SqlDeleteWhereClause.where(ExpressionSpec expression) SqlDeletor.where(ExpressionSpec expression) -
Uses of ExpressionSpec in org.litebridge.orm.api.sql.update
Methods in org.litebridge.orm.api.sql.update with parameters of type ExpressionSpecModifier and TypeMethodDescriptionSqlUpdateWhereConditionClauseTerminalImpl.and(ExpressionSpec expression) SqlUpdateWhereConditionClauseTerminalImpl.or(ExpressionSpec expression) SqlUpdater.where(ExpressionSpec expression) SqlUpdateStep.where(ExpressionSpec expression) -
Uses of ExpressionSpec in org.litebridge.orm.engine
Methods in org.litebridge.orm.engine with parameters of type ExpressionSpecModifier and TypeMethodDescription<TypeOverride>
DtoFromClauseTerminal<TypeOverride> FromClauseEngine.from(ExpressionSpec[] expressionSpecs, Class<?> dtoClass, Class<TypeOverride> typeOverrideClass, @Nullable RelatedDtoStrategy relatedDtoStrategy) Constructs a DTO-based FROM clause with a type override.<DTO> DtoFromClauseTerminal<DTO> FromClauseEngine.from(ExpressionSpec[] expressionSpecs, Class<DTO> dtoClass, @Nullable RelatedDtoStrategy relatedDtoStrategy) Constructs a DTO-based FROM clause.FromClauseEngine.from(ExpressionSpec[] expressionSpecs, String table) Constructs an SQL-based FROM clause.SelectEngine.select(ExpressionSpec... expressions) -
Uses of ExpressionSpec in org.litebridge.orm.expression
Subinterfaces of ExpressionSpec in org.litebridge.orm.expressionModifier and TypeInterfaceDescriptioninterfaceQuery expression encapsulating a target column.interfaceA query expression that can nest another query expression.interfaceNumber type-overriding nestable expressioninterfaceProto-expression, used to prescribe aExpressionSpectype when sufficient information is available.interfaceA proto-expression capable of nesting other proto-expressions.interfaceString type-overriding nestable expression.interfaceA query expression that overrides the type of the result.Classes in org.litebridge.orm.expression that implement ExpressionSpecModifier and TypeClassDescriptionfinal recordProto-expression, used to specify column names/aliases for use in the target expression type.final recordProto-expression that allows nesting other proto-expressions.final recordType override proto-expression that allows nesting other proto-expressions.Methods in org.litebridge.orm.expression that return ExpressionSpecModifier and TypeMethodDescriptionstatic ExpressionSpecSelects a database column by name.static ExpressionSpecSelects a database column by name.static ExpressionSpecSelects a database column by name.static ExpressionSpecSelects a database column by name and alias.static ExpressionSpecSelects a database column by name and alias.static ExpressionSpecSelects a database column by name and alias.static ExpressionSpecSelects a database column by name.static ExpressionSpecSelects a database column by name.static ExpressionSpecSelects a database column by name.static ExpressionSpecFn.columnAlias(String column, @Nullable String alias) Selects a database column by name and alias.static ExpressionSpecFn.columnAlias(String table, String column, @Nullable String columnAlias) Selects a database column by name and alias.static ExpressionSpecFn.columnAlias(Table table, String column, @Nullable String columnAlias) Selects a database column by name and alias.static ExpressionSpecSelects a DTO field by name for the specified DTO type that is selected/joined in the query.static ExpressionSpecSelects a DTO field by name for the DTO class selected in the query.static ExpressionSpecSelects a DTO field by name for the specified DTO type that is selected/joined in the query.static ExpressionSpecSelects a DTO field by name for the DTO class selected in the query.ProtoNestableExpressionSpec.target()The nested target expression.ProtoNestableTOExpr.target()Returns the value of thetargetrecord component.ExpressionModifier.toExpression()Get anExpressionSpecinstance that represents this modifier.Methods in org.litebridge.orm.expression that return types with arguments of type ExpressionSpecModifier and TypeMethodDescriptionClass<? extends ExpressionSpec> ProtoColumnExpressionSpec.type()Returns the value of thetyperecord component.Class<? extends ExpressionSpec> ProtoNestableBasicExprSpec.type()Returns the value of thetyperecord component.Class<? extends ExpressionSpec> ProtoNestableTOExpr.type()Returns the value of thetyperecord component.Class<? extends ExpressionSpec> Resolvable.type()Returns the type ofExpressionSpecthat thisResolvablecan resolve to.Methods in org.litebridge.orm.expression with parameters of type ExpressionSpecModifier and TypeMethodDescriptionstatic ProtoNestableTOExpr<Number> Fn.abs(ExpressionSpec expressionSpec) ABS(): Absolute value of a number.static TypeOverrideExpressionSpec<Number> Fn.avg(ExpressionSpec expressionSpec) AVG(): Returns the average value of a column/field.static <T> ConvertIntent<T> Fn.convert(Class<T> returnType, ExpressionSpec... expressions) Converts the results of multiple expressions into a single Java object of the specified type.static <T> ConvertSpec<T> Fn.convert(ExpressionSpec expression, Class<T> returnType) Converts a database result into the specified Java type.static ProtoNestableTOExpr<String> Fn.lower(ExpressionSpec expressionSpec) LOWER(): Returns the lowercase value of a column's text.static TypeOverrideExpressionSpec<Number> Fn.max(ExpressionSpec expressionSpec) MAX(): Returns the highest or largest value within a specified expression.static TypeOverrideExpressionSpec<Number> Fn.min(ExpressionSpec expressionSpec) MIN(): Returns the lowest or smallest value within a specified column or expressionstatic ConvertIntent<Row> Fn.row(ExpressionSpec... expressions) Converts the results of multiple expressions into a single databaseRowobject.static ProtoNestableTOExpr<String> Fn.substring(ExpressionSpec expressionSpec, int start) SUBSTRING(): Returns the lowercase value of a column's text.static ProtoNestableTOExpr<String> Fn.substring(ExpressionSpec expressionSpec, int start, int length) SUBSTRING(): Returns the lowercase value of a column's text.static ProtoNestableTOExpr<String> Fn.upper(ExpressionSpec expressionSpec) UPPER(): Returns the uppercase value of a column's text.Constructors in org.litebridge.orm.expression with parameters of type ExpressionSpecModifierConstructorDescriptionProtoNestableTOExpr(Class<T> typeOverride, Class<? extends ExpressionSpec> type, ExpressionSpec target, @Nullable String alias) Constructs a new ProtoTOColumnExpression instance with empty extra arguments.ProtoNestableTOExpr(Class<T> typeOverride, Class<? extends ExpressionSpec> type, ExpressionSpec target, @Nullable String alias, @Nullable Object @Nullable [] args) Creates an instance of aProtoNestableTOExprrecord class.Constructor parameters in org.litebridge.orm.expression with type arguments of type ExpressionSpecModifierConstructorDescriptionProtoColumnExpressionSpec(Class<? extends ExpressionSpec> type, String column) Creates a new ProtoColumnExpressionSpec with no alias.ProtoColumnExpressionSpec(Class<? extends ExpressionSpec> type, String column, @Nullable String alias) Creates a new ProtoColumnExpressionSpec.ProtoColumnExpressionSpec(Class<? extends ExpressionSpec> type, String column, @Nullable String alias, @Nullable Object @Nullable [] args) Creates an instance of aProtoColumnExpressionSpecrecord class.ProtoNestableBasicExprSpec(Class<? extends ExpressionSpec> type, String column, @Nullable String alias) Constructs a new ProtoNestableBasicExprSpec instance via column name.ProtoNestableBasicExprSpec(Class<? extends ExpressionSpec> type, ProtoExpressionSpec target, @Nullable String alias) Creates a new ProtoNestableBasicExprSpec. -
Uses of ExpressionSpec in org.litebridge.orm.expression.function.aggregate
Classes in org.litebridge.orm.expression.function.aggregate that implement ExpressionSpecModifier and TypeClassDescriptionfinal recordAvgSpec<T>AVG(): Returns the average value of a column.final recordCOUNT(): Selects the count of rows matching the query.final recordMaxSpec<T>MAX(): Returns the highest or largest value within a specified column or expressionfinal recordMinSpec<T>MIN(): Returns the lowest or smallest value within a specified column or expression -
Uses of ExpressionSpec in org.litebridge.orm.expression.function.date
Classes in org.litebridge.orm.expression.function.date that implement ExpressionSpecModifier and TypeClassDescriptionfinal classCURRENT_TIMESTAMP(): Returns the current date/time from the database. -
Uses of ExpressionSpec in org.litebridge.orm.expression.function.scalar
Classes in org.litebridge.orm.expression.function.scalar that implement ExpressionSpecModifier and TypeClassDescriptionfinal recordABS(): Absolute value of a number.final recordLOWER(): Returns the lowercase value of a column.final recordSUBSTRING(): Returns a substring of a column's text.final recordUPPER(): Returns the uppercase value of a column. -
Uses of ExpressionSpec in org.litebridge.orm.expression.intent
Classes in org.litebridge.orm.expression.intent that implement ExpressionSpecModifier and TypeClassDescriptionfinal classConvertSpec<T>Converts a database result into the specified Java type.final recordArray of expression specifications.Methods in org.litebridge.orm.expression.intent that return ExpressionSpecModifier and TypeMethodDescriptionExpressionSpecArray.expressions()Returns the value of theexpressionsrecord component.ConvertIntent.target()Returns the value of thetargetrecord component.ConvertSpec.target()Gets the target expression for conversion.Methods in org.litebridge.orm.expression.intent that return types with arguments of type ExpressionSpecMethods in org.litebridge.orm.expression.intent with parameters of type ExpressionSpecModifier and TypeMethodDescriptionConvertSpec.replaceTarget(ExpressionSpec resolvedExpressionSpec) Creates a newConvertSpecwith a replaced target expression.Constructors in org.litebridge.orm.expression.intent with parameters of type ExpressionSpecModifierConstructorDescriptionConvertIntent(ExpressionSpec[] target, Class<T> returnType) Creates an instance of aConvertIntentrecord class.ConvertSpec(ExpressionSpec target, Class<T> returnType) Constructs aConvertSpecwith the specified target expression and return type.ExpressionSpecArray(ExpressionSpec[] expressions) Creates an instance of aExpressionSpecArrayrecord class. -
Uses of ExpressionSpec in org.litebridge.orm.expression.select
Classes in org.litebridge.orm.expression.select that implement ExpressionSpecModifier and TypeClassDescriptionclassExpression that selects a database column.final classExpression spec that selects a DTO field.final record -
Uses of ExpressionSpec in org.litebridge.orm.meta
Classes in org.litebridge.orm.meta that implement ExpressionSpecModifier and TypeClassDescriptionfinal classMetamodel field for querying numeric-based columns in a type-safe manner.classBasic metamodel field definition.final classMetamodel field for querying string-based columns in a type-safe manner.