Uses of Class
com.feedzai.commons.sql.abstraction.dml.Expression
-
Packages that use Expression Package Description com.feedzai.commons.sql.abstraction.ddl Contains classes that aid on DDL creation.com.feedzai.commons.sql.abstraction.dml Contains classes to build DML statements.com.feedzai.commons.sql.abstraction.dml.dialect Contains an SQL builder.com.feedzai.commons.sql.abstraction.engine Contains the database engine core.com.feedzai.commons.sql.abstraction.engine.impl Database specific implementations. -
-
Uses of Expression in com.feedzai.commons.sql.abstraction.ddl
Subclasses of Expression in com.feedzai.commons.sql.abstraction.ddl Modifier and Type Class Description classAlterColumnExpression to translateALTER TABLE... ALTER COLUMN...statements.classDropPrimaryKeyTranslates to a statement that allows to drop the primary key of a table.classRenameExpression to rename tables.Methods in com.feedzai.commons.sql.abstraction.ddl that return Expression Modifier and Type Method Description ExpressionRename. getNewName()Gets the new name.ExpressionRename. getOldName()Gets the old name.ExpressionAlterColumn. getTable()Gets the table expression.ExpressionDropPrimaryKey. getTable()Gets the table expression.Constructors in com.feedzai.commons.sql.abstraction.ddl with parameters of type Expression Constructor Description AlterColumn(Expression table, DbColumn column)Creates a new instance ofAlterColumn.DropPrimaryKey(Expression table)Creates a new instance ofDropPrimaryKey.Rename(Expression oldName, Expression newName)Creates a new instance ofRename. -
Uses of Expression in com.feedzai.commons.sql.abstraction.dml
Subclasses of Expression in com.feedzai.commons.sql.abstraction.dml Modifier and Type Class Description classAllRepresents the * or environment.* operator.classBetweenRepresents the BETWEEN operator.classCaseCase SQL Expression.classCastThe cast expression.classCoalesceRepresents the coalesce operator.classConcatPDB Concat Operator.classDeleteRepresents the DELETE operator.classFunctionRepresents SQL functions.classInternalFunctionRepresents functions that are internal to the database engine in place.classJoinRepresents a SQL join operator.classKRepresents a SQL constant.classLiteralRepresents a literal object that will have no specific translation.classModuloThe MOD operator.classNameRepresents a named expression.classQueryRepresents a SQL Query.classRepeatDelimiterRepresents expressions that ca be repeated.classStringAggclassTruncateRepresents the TRUNCATE operator.classUnionThe union clause.classUpdateRepresents the UPDATE operator.classValuesThe Values clause.static classValues.RowA Row belonging to a Values clause.classViewRepresents a SQL view.classWhenclassWithWith SQL Expression.Fields in com.feedzai.commons.sql.abstraction.dml declared as Expression Modifier and Type Field Description ExpressionWhen. actionThe action to be executed if the condition is true.ExpressionStringAgg. columnThe column to aggregate.ExpressionWhen. conditionThe condition to verify.Methods in com.feedzai.commons.sql.abstraction.dml that return Expression Modifier and Type Method Description ExpressionExpression. alias(String alias)Aliases this expression.ExpressionExpression. asc()Sets ordering to ascendant.ExpressionExpression. desc()Sets ordering to descendant.ExpressionExpression. enclose()Encloses this expression with parenthesis.ExpressionExpression. fullOuterJoin(Expression table, Expression expr)Sets a full outer join with the current table.Expression[]Coalesce. getAlternative()Gets the alternative expressions.ExpressionBetween. getAnd()Gets the AND expression.ExpressionView. getAs()Gets the AS expression.ExpressionBetween. getColumn()Gets the column in the expression.ExpressionStringAgg. getColumn()Returns the column to be aggregated.ExpressionConcat. getDelimiter()Gets the concatenation delimiter.ExpressionModulo. getDividend()Gets the dividend.ExpressionModulo. getDivisor()Gets the divisor.ExpressionCoalesce. getExp()Gets the expression to test.ExpressionFunction. getExp()Gets the expression in the function.ExpressionCast. getExpression()Gets the expression.ExpressionCase. getFalseAction()Gets the false action.ExpressionUpdate. getFrom()Gets the FROM expression.ExpressionQuery. getHaving()Gets the HAVING expression.ExpressionJoin. getJoinExpr()Gets the join expression.ExpressionJoin. getJoinTable()Gets the join table.ExpressionDelete. getTable()Gets the TABLE expression.ExpressionTruncate. getTable()Gets the table to truncate.ExpressionUpdate. getTable()Gets the table.ExpressionWith. getThen()Gets the then expression.ExpressionDelete. getWhere()Gets the WHERE expression.ExpressionQuery. getWhere()Gets the WHERE expression.ExpressionUpdate. getWhere()Gets the WHERE expression.ExpressionExpression. innerJoin(Expression table, Expression expr)Sets an inner join with the current table.ExpressionExpression. leftOuterJoin(Expression table, Expression expr)Sets a left outer join with the current table.ExpressionExpression. rightOuterJoin(Expression table, Expression expr)Sets a right outer join with the current table.ExpressionExpression. unquote()Removes the quotes for this expression.ExpressionExpression. withNoLock()Sets no lock keyword on SQL Server tables.Methods in com.feedzai.commons.sql.abstraction.dml that return types with arguments of type Expression Modifier and Type Method Description List<org.apache.commons.lang3.tuple.ImmutablePair<Name,Expression>>With. getClauses()Gets the clauses.List<Expression>Update. getColumns()Gets the columns.Collection<Expression>Concat. getExpressions()Gets the expressions to concatenate.List<Expression>RepeatDelimiter. getExpressions()Gets the expressions.List<Expression>Union. getExpressions()Gets the expressions to union.List<Expression>Values.Row. getExpressions()Gets the list of expressions.List<Expression>Query. getFromColumns()Gets the FROM columns.List<Expression>Query. getGroupbyColumns()Gets the GROUP BY expressions.List<Expression>Query. getOrderbyColumns()Gets the ORDER BY expressions.List<Expression>Query. getSelectColumns()Gets the SELECT columns.Methods in com.feedzai.commons.sql.abstraction.dml with parameters of type Expression Modifier and Type Method Description QueryQuery. andWhere(Expression where)The WHERE clause.WithWith. andWith(String alias, Expression expression)Adds an alias and expression to the with clause.ViewView. as(Expression as)Sets the AS expression.static CaseCase. caseWhen(Expression condition, Expression trueAction)Returns a new "case when" that does the trueAction considering the condition.QueryQuery. from(Expression... fromColumns)Adds the FROM columns.UpdateUpdate. from(Expression from)Adds the FROM expression.ExpressionExpression. fullOuterJoin(Expression table, Expression expr)Sets a full outer join with the current table.QueryQuery. groupby(Expression... groupbyColumns)Adds the GROUP BY columns.QueryQuery. having(Expression having)Adds the HAVING expression.ExpressionExpression. innerJoin(Expression table, Expression expr)Sets an inner join with the current table.ExpressionExpression. leftOuterJoin(Expression table, Expression expr)Sets a left outer join with the current table.QueryQuery. orderby(Expression... orderbyColumns)Adds the ORDER BY columns.CaseCase. otherwise(Expression falseAction)Sets the false action.ExpressionExpression. rightOuterJoin(Expression table, Expression expr)Sets a right outer join with the current table.ValuesValues. row(Expression... expressions)Add a row to values.QueryQuery. select(Expression... selectColumns)Adds the SELECT columns.UpdateUpdate. set(Expression... exps)The set keyword.static StringAggStringAgg. stringAgg(Expression column)Returns a new StringAgg.WithWith. then(Expression thenExpression)Sets the expression to be executed given the clauses.CaseCase. when(Expression condition, Expression action)Adds a new when clause to this case.static WhenWhen. when(Expression condition, Expression action)Creates a new When expression.DeleteDelete. where(Expression where)Sets the where expression.QueryQuery. where(Expression where)The where clause.UpdateUpdate. where(Expression where)Adds the WHERE expression.ConcatConcat. with(Expression expression)Adds an expression to concatenate.Method parameters in com.feedzai.commons.sql.abstraction.dml with type arguments of type Expression Modifier and Type Method Description QueryQuery. from(Collection<? extends Expression> fromColumns)Adds the FROM columns.QueryQuery. groupby(Collection<? extends Expression> groupbyColumns)Adds the GROUP BY columns.QueryQuery. orderby(Collection<? extends Expression> orderbyColumns)Adds the ORDER BY columns.QueryQuery. select(Collection<? extends Expression> selectColumns)Adds the SELECT columns.UpdateUpdate. set(Collection<? extends Expression> exps)The set keyword.Constructors in com.feedzai.commons.sql.abstraction.dml with parameters of type Expression Constructor Description Between(Expression column, Expression exp)Creates a new instance ofBetween.Cast(Expression expression, DbColumnType type)Creates a new cast expression.Coalesce(Expression exp, Expression... alternative)Creates a new instance ofCoalesce.Concat(Expression delimiter, Collection<Expression> expressions)Creates a newConcatobject.Delete(Expression table)Creates a new instance ofDelete.Function(String function, Expression exp)Creates a new instance ofFunction.InternalFunction(String function, Expression exp)Creates a new instance ofInternalFunction.Join(String join, Expression joinTable, Expression joinExpr)Creates a new instance ofJoin.Modulo(Expression dividend, Expression divisor)Creates a new instance ofModulo.RepeatDelimiter(String delimiter, Expression... dbe)Creates a new instance ofRepeatDelimiter.Truncate(Expression table)Creates a new instance ofTruncate.Union(Expression... expressions)Creates a new UNION expression.Update(Expression table)Creates a new instance ofUpdate.With(String alias, Expression expression)Creates a new WITH expression.Constructor parameters in com.feedzai.commons.sql.abstraction.dml with type arguments of type Expression Constructor Description Concat(Expression delimiter, Collection<Expression> expressions)Creates a newConcatobject.RepeatDelimiter(String delimiter, Collection<? extends Expression> dbe)Creates a new instance ofRepeatDelimiter.Union(Collection<Expression> expressions)Creates a new UNION expression. -
Uses of Expression in com.feedzai.commons.sql.abstraction.dml.dialect
Methods in com.feedzai.commons.sql.abstraction.dml.dialect that return Expression Modifier and Type Method Description static ExpressionSqlBuilder. all()Selects all columns in a row.static ExpressionSqlBuilder. all(String tableName)Selects all columns in a table.static ExpressionSqlBuilder. and(Expression... exps)The AND operator.static ExpressionSqlBuilder. and(Collection<? extends Expression> exps)The AND operator.static ExpressionSqlBuilder. avg(Expression exp)The AVG operator.static ExpressionSqlBuilder. ceiling(Expression exp)The CEILING operator.static ExpressionSqlBuilder. count(Expression exp)The COUNT operator.static ExpressionSqlBuilder. div(Expression... exps)The DIV operator.static ExpressionSqlBuilder. div(Collection<? extends Expression> exps)The DIV operator.static ExpressionSqlBuilder. eq(Expression... e1)The equals expression.static ExpressionSqlBuilder. eq(Collection<? extends Expression> e1)The equals expression.static ExpressionSqlBuilder. f(String function)An internal function (provided by the engine in place).static ExpressionSqlBuilder. f(String function, Expression exp)An internal function (provided by the engine in place).static ExpressionSqlBuilder. floor(Expression exp)The FLOOR operator.static ExpressionSqlBuilder. gt(Expression... exps)The GT operator.static ExpressionSqlBuilder. gt(Collection<? extends Expression> exps)The GT operator.static ExpressionSqlBuilder. gteq(Expression... exps)The GTEQ operator.static ExpressionSqlBuilder. gteq(Collection<? extends Expression> exps)The GTEQ operator.static ExpressionSqlBuilder. in(Expression e1, Expression e2)The IN expression.static ExpressionSqlBuilder. join(Expression e1, Expression e2)The same of making eq(e1, e2).static ExpressionSqlBuilder. k(Object o)A constant.static ExpressionSqlBuilder. L(Expression... exps)A list of expressions enclosed.static ExpressionSqlBuilder. L(Collection<? extends Expression> exps)A list of expression enclosed.static ExpressionSqlBuilder. like(Expression... exps)The LIKE operator.static ExpressionSqlBuilder. like(Collection<? extends Expression> exps)The LIKE operator.static ExpressionSqlBuilder. lower(Expression exp)The LOWER operator.static ExpressionSqlBuilder. lt(Expression... exps)The LT operator.static ExpressionSqlBuilder. lt(Collection<? extends Expression> exps)The LT operator.static ExpressionSqlBuilder. lteq(Expression... exps)The LTEQ operator.static ExpressionSqlBuilder. lteq(Collection<? extends Expression> exps)The LTEQ operator.static ExpressionSqlBuilder. max(Expression exp)The MAX operator.static ExpressionSqlBuilder. min(Expression exp)The MIN operator.static ExpressionSqlBuilder. minus(Expression... exps)The MINUS operator.static ExpressionSqlBuilder. minus(Collection<? extends Expression> exps)The MINUS operator.static ExpressionSqlBuilder. mod(Expression exp1, Expression exp2)The MOD operator.static ExpressionSqlBuilder. mult(Expression... exps)The MULT operator.static ExpressionSqlBuilder. mult(Collection<? extends Expression> exps)The MULT operator.static ExpressionSqlBuilder. neq(Expression... exps)The not equal expression.static ExpressionSqlBuilder. neq(Collection<? extends Expression> exps)The not equal expression.static ExpressionSqlBuilder. notIn(Expression e1, Expression e2)The NOT IN expression.static ExpressionSqlBuilder. or(Expression... exps)The OR operator.static ExpressionSqlBuilder. or(Collection<? extends Expression> exps)The OR operator.static ExpressionSqlBuilder. plus(Expression... exps)The PLUS operator.static ExpressionSqlBuilder. plus(Collection<? extends Expression> exps)The PLUS operator.static ExpressionSqlBuilder. stddev(Expression exp)The STDDEV operator.static ExpressionSqlBuilder. sum(Expression exp)The SUM operator.static ExpressionSqlBuilder. udf(String udf)The Used Defined Function operator.static ExpressionSqlBuilder. udf(String udf, Expression exp)The Used Defined Function operator.static ExpressionSqlBuilder. upper(Expression exp)The UPPER operator.Methods in com.feedzai.commons.sql.abstraction.dml.dialect with parameters of type Expression Modifier and Type Method Description static AlterColumnSqlBuilder. alterColumn(Expression table, DbColumn dbColumn)Alter column operator.static AlterColumnSqlBuilder. alterColumn(Expression table, Name column, DbColumnType dbColumnType, DbColumnConstraint... constraints)Alter column operator.static ExpressionSqlBuilder. and(Expression... exps)The AND operator.static ExpressionSqlBuilder. avg(Expression exp)The AVG operator.static BetweenSqlBuilder. between(Expression exp1, Expression exp2, Expression exp3)The BETWEEN operator.static CaseSqlBuilder. caseWhen(Expression condition, Expression trueAction)Creates a case expression.static CastSqlBuilder. cast(Expression expression, DbColumnType type)Creates a cast expression.static ExpressionSqlBuilder. ceiling(Expression exp)The CEILING operator.static CoalesceSqlBuilder. coalesce(Expression exp, Expression... alternative)The coalesce operator.static ConcatSqlBuilder. concat(Expression delimiter, Expression... expressions)The CONCAT keyword.static ConcatSqlBuilder. concat(Expression delimiter, Collection<Expression> expressions)The CONCAT keyword.static ExpressionSqlBuilder. count(Expression exp)The COUNT operator.static DeleteSqlBuilder. delete(Expression table)The DELETE keyword.static ExpressionSqlBuilder. div(Expression... exps)The DIV operator.static DropPrimaryKeySqlBuilder. dropPK(Expression table)Drop primary key table operator.static ExpressionSqlBuilder. eq(Expression... e1)The equals expression.static ExpressionSqlBuilder. f(String function, Expression exp)An internal function (provided by the engine in place).static ExpressionSqlBuilder. floor(Expression exp)The FLOOR operator.static ExpressionSqlBuilder. gt(Expression... exps)The GT operator.static ExpressionSqlBuilder. gteq(Expression... exps)The GTEQ operator.static ExpressionSqlBuilder. in(Expression e1, Expression e2)The IN expression.static ExpressionSqlBuilder. join(Expression e1, Expression e2)The same of making eq(e1, e2).static ExpressionSqlBuilder. L(Expression... exps)A list of expressions enclosed.static ExpressionSqlBuilder. like(Expression... exps)The LIKE operator.static ExpressionSqlBuilder. lower(Expression exp)The LOWER operator.static ExpressionSqlBuilder. lt(Expression... exps)The LT operator.static ExpressionSqlBuilder. lteq(Expression... exps)The LTEQ operator.static ExpressionSqlBuilder. max(Expression exp)The MAX operator.static ExpressionSqlBuilder. min(Expression exp)The MIN operator.static ExpressionSqlBuilder. minus(Expression... exps)The MINUS operator.static ExpressionSqlBuilder. mod(Expression exp1, Expression exp2)The MOD operator.static ExpressionSqlBuilder. mult(Expression... exps)The MULT operator.static ExpressionSqlBuilder. neq(Expression... exps)The not equal expression.static BetweenSqlBuilder. notBetween(Expression exp1, Expression exp2, Expression exp3)The NOT BETWEEN operator.static ExpressionSqlBuilder. notIn(Expression e1, Expression e2)The NOT IN expression.static ExpressionSqlBuilder. or(Expression... exps)The OR operator.static ExpressionSqlBuilder. plus(Expression... exps)The PLUS operator.static RenameSqlBuilder. rename(Expression oldName, Expression newName)Rename table operator.static QuerySqlBuilder. select(Expression... select)Starts a new query.static ExpressionSqlBuilder. stddev(Expression exp)The STDDEV operator.static StringAggSqlBuilder. stringAgg(Expression column)The StringAgg function.static ExpressionSqlBuilder. sum(Expression exp)The SUM operator.static TruncateSqlBuilder. truncate(Expression table)The TRUNCATE keyword.static ExpressionSqlBuilder. udf(String udf, Expression exp)The Used Defined Function operator.static UnionSqlBuilder. union(Expression... expressions)Creates a union expression.static UpdateSqlBuilder. update(Expression table)The UPDATE operator.static ExpressionSqlBuilder. upper(Expression exp)The UPPER operator.static WithSqlBuilder. with(String alias, Expression expression)The With clause.Method parameters in com.feedzai.commons.sql.abstraction.dml.dialect with type arguments of type Expression Modifier and Type Method Description static ExpressionSqlBuilder. and(Collection<? extends Expression> exps)The AND operator.static ConcatSqlBuilder. concat(Expression delimiter, Collection<Expression> expressions)The CONCAT keyword.static ExpressionSqlBuilder. div(Collection<? extends Expression> exps)The DIV operator.static ExpressionSqlBuilder. eq(Collection<? extends Expression> e1)The equals expression.static ExpressionSqlBuilder. gt(Collection<? extends Expression> exps)The GT operator.static ExpressionSqlBuilder. gteq(Collection<? extends Expression> exps)The GTEQ operator.static ExpressionSqlBuilder. L(Collection<? extends Expression> exps)A list of expression enclosed.static ExpressionSqlBuilder. like(Collection<? extends Expression> exps)The LIKE operator.static ExpressionSqlBuilder. lt(Collection<? extends Expression> exps)The LT operator.static ExpressionSqlBuilder. lteq(Collection<? extends Expression> exps)The LTEQ operator.static ExpressionSqlBuilder. minus(Collection<? extends Expression> exps)The MINUS operator.static ExpressionSqlBuilder. mult(Collection<? extends Expression> exps)The MULT operator.static ExpressionSqlBuilder. neq(Collection<? extends Expression> exps)The not equal expression.static ExpressionSqlBuilder. or(Collection<? extends Expression> exps)The OR operator.static ExpressionSqlBuilder. plus(Collection<? extends Expression> exps)The PLUS operator.static QuerySqlBuilder. select(Collection<? extends Expression> select)Starts a new query.static UnionSqlBuilder. union(Collection<Expression> expressions)Creates a union expression. -
Uses of Expression in com.feedzai.commons.sql.abstraction.engine
Methods in com.feedzai.commons.sql.abstraction.engine with parameters of type Expression Modifier and Type Method Description voidAbstractDatabaseEngine. createPreparedStatement(String name, Expression query)voidAbstractDatabaseEngine. createPreparedStatement(String name, Expression query, int timeout)voidDatabaseEngine. createPreparedStatement(String name, Expression query)Creates a prepared statement.voidDatabaseEngine. createPreparedStatement(String name, Expression query, int timeout)Creates a prepared statement.intAbstractDatabaseEngine. executeUpdate(Expression query)Executes the given update.intDatabaseEngine. executeUpdate(Expression query)Executes the given update.Map<String,DbColumnType>AbstractDatabaseEngine. getQueryMetadata(Expression query)Gets the query metadata.Map<String,DbColumnType>DatabaseEngine. getQueryMetadata(Expression query)Gets the query metadata.protected voidAbstractDatabaseEngine. inject(Expression... objs)protected voidAbstractTranslator. inject(Expression... objs)Injects dependencies on the given objects.ResultIteratorAbstractDatabaseEngine. iterator(Expression query)ResultIteratorAbstractDatabaseEngine. iterator(Expression query, int fetchSize)ResultIteratorAbstractDatabaseEngine. iterator(Expression query, int fetchSize, int readTimeoutOverride)ResultIteratorDatabaseEngine. iterator(Expression query)Creates an iterator for the given SQL expression.ResultIteratorDatabaseEngine. iterator(Expression query, int fetchSize)Creates an iterator for the given SQL expression.default ResultIteratorDatabaseEngine. iterator(Expression query, int fetchSize, int readTimeoutOverride)Creates an iterator for the given SQL expression overriding the configured query timeout (seePdbProperties.getSelectQueryTimeout()) if the underlying engine supports query timeouts.List<Map<String,ResultColumn>>AbstractDatabaseEngine. query(Expression query)Executes the given query.List<Map<String,ResultColumn>>AbstractDatabaseEngine. query(Expression query, int readTimeoutOverride)List<Map<String,ResultColumn>>DatabaseEngine. query(Expression query)Executes the given query.default List<Map<String,ResultColumn>>DatabaseEngine. query(Expression query, int readTimeoutOverride)Executes the given query overriding the configured query timeout (seePdbProperties.getSelectQueryTimeout()) if the underlying engine supports query timeouts.StringAbstractDatabaseEngine. translate(Expression query)Translates the given expression to the current dialect.StringDatabaseEngine. translate(Expression query)Translates the given expression to the current dialect.Method parameters in com.feedzai.commons.sql.abstraction.engine with type arguments of type Expression Modifier and Type Method Description protected voidAbstractTranslator. inject(Collection<? extends Expression> objs)Injects dependencies on the given objects.protected UnionAbstractTranslator. rowsToUnion(List<Expression> rows)Transform values' rows into a union. -
Uses of Expression in com.feedzai.commons.sql.abstraction.engine.impl
Methods in com.feedzai.commons.sql.abstraction.engine.impl with parameters of type Expression Modifier and Type Method Description voidOracleEngine. createPreparedStatement(String name, Expression query)intSqlServerEngine. executeUpdate(Expression query)Method parameters in com.feedzai.commons.sql.abstraction.engine.impl with type arguments of type Expression Modifier and Type Method Description protected UnionMySqlTranslator. rowsToUnion(List<Expression> rows)
-