Packages

object Model2Query extends Helpers

Model to Query transformation.

Second transformation in Molecules series of transformations from custom boilerplate DSL constructs to Datomic queries:

Custom DSL molecule --> Model --> Query --> Datomic query string

Source
Model2Query.scala
See also

http://www.scalamolecule.org/dev/transformation/

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Model2Query
  2. Helpers
  3. DateHandling
  4. RegexMatching
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. implicit class Regex extends AnyRef
    Definition Classes
    RegexMatching

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. var _model: Model
  5. def abort(msg: String): Nothing
  6. def apply(model: Model): (Query, Option[Query], Query, Option[Query])
  7. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  8. def cast(value: Any): String
    Attributes
    protected
    Definition Classes
    Helpers
  9. def clean(attr: String): String
    Definition Classes
    Helpers
  10. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  11. def coalesce(fn: String): Boolean
  12. def date2datomicStr(date: Date, zoneOffset: ZoneOffset = localZoneOffset): String
    Definition Classes
    DateHandling
  13. def date2str(date: Date, zoneOffset: ZoneOffset = localZoneOffset): String
    Definition Classes
    DateHandling
  14. val datomGeneric: Seq[String]
  15. def daylight(ms: Long): Int
    Definition Classes
    DateHandling
  16. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  18. def escStr(s: String): String
    Definition Classes
    Helpers
  19. def expandDateStr(dateStr: String): String
    Definition Classes
    DateHandling
  20. final def f(a: Any): Any
    Attributes
    protected
    Definition Classes
    Helpers
  21. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  22. val fns: String
  23. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  24. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  25. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  26. lazy val localOffset: String
    Definition Classes
    DateHandling
  27. lazy val localZoneOffset: ZoneOffset
    Definition Classes
    DateHandling
  28. def make(model: Model, query: Query, element: Element, e: String, v: String, prevNs: String, prevAttr: String, prevRefNs: String): (Query, String, String, String, String, String)
  29. def makeAtom(query: Query, atom: Atom, e: String, v: String, w: String, prevNs: String, prevAttr: String, prevRefNs: String): (Query, String, String, String, String, String)
  30. def makeAtomUnify(query: Query, a: Atom, nsFull: String, attr: String, e: String, v: String, w: String, prevNs: String): (Query, String, String, String, String, String)
  31. def makeBond(query: Query, bond: Bond, e: String, v: String, w: String, prevNs: String, prevAttr: String, prevRefNs: String): (Query, String, String, String, String, String)
  32. def makeComposite(model: Model, query: Query, composite: Composite, e: String, v: String, prevNs: String, prevAttr: String, prevRefNs: String): (Query, String, String, String, String, String)
  33. def makeGeneric(query: Query, g: Generic, e: String, v: String, w: String, y: String, prevNs: String, prevAttr: String, prevRefNs: String): (Query, String, String, String, String, String)
  34. def makeNested(model: Model, query: Query, nested: Nested, e: String, v: String, w: String, prevNs: String, prevAttr: String, prevRefNs: String): (Query, String, String, String, String, String)
  35. def makeReBond(model: Model, query: Query, rb: ReBond, v: String): (Query, String, String, String, String, String)
  36. def makeTxMetaData(model: Model, query0: Query, txMetaData: TxMetaData, w: String, prevNs: String, prevAttr: String, prevRefNs: String): (Query, String, String, String, String, String)
  37. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  38. var nestedEntityClauses: List[Funct]
  39. var nestedEntityVars: List[Var]
  40. var nestedLevel: Int
  41. def nextChar(str: String, inc: Int): String
  42. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  43. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  44. final def o(opt: Option[Any]): String
    Attributes
    protected
    Definition Classes
    Helpers
  45. final def os(opt: Option[Set[_]]): String
    Attributes
    protected
    Definition Classes
    Helpers
  46. def postProcess(model: Model, q: Query): Query
  47. def resolve(q: Query, e: String, v: String, element: Element): Query
  48. def resolveAtom(q: Query, e: String, a: Atom, v: String, v1: String, v2: String, v3: String): Query
  49. def resolveAtomKeyedMapMandatory(q: Query, e: String, a0: Atom, v: String, v1: String, v2: String, v3: String, key: String): Query
  50. def resolveAtomKeyedMapOptional(q: Query, e: String, a0: Atom): Query
  51. def resolveAtomKeyedMapTacit(q: Query, e: String, a0: Atom, v: String, v1: String, v2: String, key: String): Query
  52. def resolveAtomMandatory1(q: Query, e: String, a: Atom, v: String, v1: String): Query
  53. def resolveAtomMandatory2(q: Query, e: String, a: Atom, v: String, v1: String): Query
  54. def resolveAtomMapMandatory(q: Query, e: String, a: Atom, v: String, keys: Seq[String]): Query
  55. def resolveAtomMapOptional(q: Query, e: String, a0: Atom, v: String): Query
  56. def resolveAtomMapTacit(q: Query, e: String, a0: Atom, v: String, keys: Seq[String]): Query
  57. def resolveAtomOptional1(q: Query, e: String, a0: Atom, v: String, v1: String): Query
  58. def resolveAtomOptional2(q: Query, e: String, a0: Atom, v: String, v1: String): Query
  59. def resolveAtomTacit(q: Query, e: String, a0: Atom, v: String, v1: String): Query
  60. def resolveDatom(q: Query, e: String, g: Generic, v: String, v1: String): Query
  61. def resolveDatomMandatory(q: Query, g: Generic, tpe: String, v0: String, w: String = ""): Query
  62. def resolveDatomTacit(q: Query, e: String, g: Generic, tpe: String, v0: String, w: String = ""): Query
  63. def resolveEnumMandatory1(q: Query, e: String, a: Atom, v: String, v2: String, v3: String, prefix: String): Query
  64. def resolveEnumMandatory2(q: Query, e: String, a: Atom, v: String, v2: String, v3: String, prefix: String): Query
  65. def resolveEnumOptional1(q: Query, e: String, a0: Atom, v: String, v2: String, prefix: String): Query
  66. def resolveEnumOptional2(q: Query, e: String, a0: Atom, v: String, v2: String): Query
  67. def resolveEnumTacit(q: Query, e: String, a0: Atom, v: String, v2: String, v3: String, prefix: String): Query
  68. def resolveGeneric(q: Query, e: String, g: Generic, v: String, v1: String, v2: String, v3: String): Query
  69. def resolveSchema(q: Query, g: Generic): Query
  70. def resolveSchemaMandatory(g: Generic, q: Query, tpe: String): Query
  71. def resolveSchemaOptional(g: Generic, q: Query): Query
  72. def resolveSchemaOptionalUnique(g: Generic, q: Query): Query
  73. def resolveSchemaTacit(g: Generic, q: Query, tpe: String): Query
  74. final def seq[T](values: Seq[T]): String
    Attributes
    protected
    Definition Classes
    Helpers
  75. def str2date(s: String, zoneOffset: ZoneOffset = localZoneOffset): Date
    Definition Classes
    DateHandling
  76. def str2zdt(s: String, zoneOffset: ZoneOffset = localZoneOffset): ZonedDateTime
    Definition Classes
    DateHandling
  77. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  78. final def time(n: Int, prev: Int = 0): Unit
    Attributes
    protected
    Definition Classes
    Helpers
  79. def toString(): String
    Definition Classes
    AnyRef → Any
  80. def truncateDateStr(dateStr: String): String
    Definition Classes
    DateHandling
  81. final def tupleToSeq(arg: Any): Seq[Any]
    Attributes
    protected
    Definition Classes
    Helpers
  82. def u(t: String, v: String): String
  83. def unescStr(s: String): String
    Definition Classes
    Helpers
  84. def uri(t: String): Boolean
  85. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  86. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  87. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  88. lazy val zone: ZoneId
    Definition Classes
    DateHandling
  89. object mkDate
    Attributes
    protected
    Definition Classes
    Helpers

Inherited from Helpers

Inherited from DateHandling

Inherited from RegexMatching

Inherited from AnyRef

Inherited from Any

Ungrouped