Packages

o

molecule.transform

Model2Query

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. All

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

Inherited from Helpers

Inherited from DateHandling

Inherited from RegexMatching

Inherited from AnyRef

Inherited from Any

Ungrouped