c

org.tresql

Macros

class Macros extends AnyRef

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Macros
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Macros()

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def _deferred_build(b: ORT, exp: Exp): DeferredBuildExpr
  5. def _delete_missing_children(b: ORT, objName: ConstExpr, key: ArrExpr, keyValExprs: ArrExpr, deleteExpr: Expr): DeleteMissingChildrenExpr
  6. def _id_by_key(b: ORT, idExpr: Expr): IdByKeyExpr
  7. def _id_ref_id(b: ORT, idRef: IdentExpr, id: IdentExpr): IdRefIdExpr
  8. def _lookup_upsert(b: ORT, objProp: ConstExpr, idProp: ConstExpr, lookupUpsertExpr: Expr, idSelExpr: Expr): LookupUpsertExpr

    Below ORT functionality macros

  9. def _not_delete_keys(b: ORT, key: ArrExpr, keyValExprs: ArrExpr): NotDeleteKeysExpr
  10. def _update_by_key(b: ORT, table: IdentExpr, setIdExpr: Expr, updateExpr: Expr): UpdateByKeyExpr
  11. def _upsert(b: ORT, updateExpr: Expr, insertExpr: Expr): UpsertExpr
  12. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  13. def bin_op_function(b: QueryBuilder, op: ConstExpr, lop: Expr, rop: Expr): Expr
  14. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native() @HotSpotIntrinsicCandidate()
  15. def concat_exps(p: QueryParsers, prefix: Exp, sep: Exp, postfix: Exp, exprs: Exp*): Exp

    Similar to scala

    Similar to scala

    list.mkString(start, sep, end)

    method prefix, sep, postfix parameters must be string constants Resulting string must be parseable tresql expression

    list.mkString(start, sep, end) }}} prefix, sep, postfix parameters must be string constants Resulting string must be parseable tresql expression

  16. def dynamic_table(b: QueryBuilder, table_name: VarExpr): Table

    Allows to specify table name as bind variable value.

    Allows to specify table name as bind variable value. Like

    []dynamic_table(:table)[deptno = 10]{dname}
  17. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  18. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  19. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  20. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  21. def if_all_defined(b: QueryBuilder, e: Expr*): Expr
  22. def if_all_missing(b: QueryBuilder, e: Expr*): Expr
  23. def if_any_defined(b: QueryBuilder, e: Expr*): Expr
  24. def if_any_missing(b: QueryBuilder, e: Expr*): Expr
  25. def if_defined(b: QueryBuilder, v: Expr, e: Expr): Expr
  26. def if_defined_or_else(b: QueryBuilder, v: Expr, e1: Expr, e2: Expr): Expr
  27. def if_missing(b: QueryBuilder, v: Expr, e: Expr): Expr
  28. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  29. def map_exps(p: QueryParsers, exp: Exp): Exp

    Transforms expression passed in an argument as follows:

    Transforms expression passed in an argument as follows:

    1. Finds array expressions in an argument and checks whether all arrays are equal (otherwise throws assertion error) 2. maps all elements in an array found to transformed expression which replaces array found with concrete element 3. Returns resulting array expression

    Examples:

    map_exprs(parser, parser.parseExp("x || [a, b, c]")).tresql

    returns

    [x || a, x || b, x || c]
    map_exprs(parser, parser.parseExp("fun(x || [a, b, c] || y, [a, b, c])")).tresql

    returns

    [fun(x || a || y, a), fun(x || b || y, b), fun(x || c || y, c)]

    NOTE: function may throw an error array element is transformed into the place where array is required, like in Values expresion for example.

    map_exprs(parser, parser.parseExp("fun(x || [a, b, c] || y, [a, b, c])")).tresql }}}

    [fun(x || a || y, a), fun(x || b || y, b), fun(x || c || y, c)]

    NOTE: function may throw an error array element is transformed into the place where array is required, like in Values expresion for example.

    map_exprs(parser, parser.parseExp("x || [a, b, c]")).tresql }}}

    [x || a, x || b, x || c]
    map_exprs(parser, parser.parseExp("fun(x || [a, b, c] || y, [a, b, c])")).tresql

    returns

    [fun(x || a || y, a), fun(x || b || y, b), fun(x || c || y, c)]

    NOTE: function may throw an error array element is transformed into the place where array is required, like in Values expresion for example.

    map_exprs(parser, parser.parseExp("fun(x || [a, b, c] || y, [a, b, c])")).tresql }}}

    [fun(x || a || y, a), fun(x || b || y, b), fun(x || c || y, c)]

    NOTE: function may throw an error array element is transformed into the place where array is required, like in Values expresion for example.

  30. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  31. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  32. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  33. def sql(b: QueryBuilder, const: ConstExpr): SQLExpr
  34. def sql_concat(b: QueryBuilder, exprs: Expr*): Expr
  35. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  36. def toString(): String
    Definition Classes
    AnyRef → Any
  37. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  38. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  39. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] ) @Deprecated
    Deprecated

Inherited from AnyRef

Inherited from Any

Ungrouped