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. def nextChar(str: String, inc: Int): String
  40. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  41. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  42. final def o(opt: Option[Any]): String
    Attributes
    protected
    Definition Classes
    Helpers
  43. final def os(opt: Option[Set[_]]): String
    Attributes
    protected
    Definition Classes
    Helpers
  44. def postProcess(model: Model, q: Query): Query
  45. def resolve(q: Query, e: String, v: String, element: Element): Query
  46. def resolveAtom(q: Query, e: String, a: Atom, v: String, v1: String, v2: String, v3: String): Query
  47. def resolveAtomKeyedMapMandatory(q: Query, e: String, a0: Atom, v: String, v1: String, v2: String, v3: String, key: String): Query
  48. def resolveAtomKeyedMapOptional(q: Query, e: String, a0: Atom): Query
  49. def resolveAtomKeyedMapTacit(q: Query, e: String, a0: Atom, v: String, v1: String, v2: String, key: String): Query
  50. def resolveAtomMandatory1(q: Query, e: String, a: Atom, v: String, v1: String, v2: String): Query
  51. def resolveAtomMandatory2(q: Query, e: String, a: Atom, v: String, v1: String, v2: String): Query
  52. def resolveAtomMapMandatory(q: Query, e: String, a: Atom, v: String, keys: Seq[String]): Query
  53. def resolveAtomMapOptional(q: Query, e: String, a0: Atom, v: String): Query
  54. def resolveAtomMapTacit(q: Query, e: String, a0: Atom, v: String, keys: Seq[String]): Query
  55. def resolveAtomOptional1(q: Query, e: String, a0: Atom, v: String): Query
  56. def resolveAtomOptional2(q: Query, e: String, a0: Atom, v: String): Query
  57. def resolveAtomTacit(q: Query, e: String, a0: Atom, v: String, v1: String): Query
  58. def resolveDatom(q: Query, e: String, g: Generic, v: String, v1: String, v2: String, v3: String): Query
  59. def resolveDatomMandatory(q: Query, e: String, g: Generic, tpe: String, v0: String, w: String = ""): Query
  60. def resolveDatomTacit(q: Query, e: String, g: Generic, tpe: String, v0: String, w: String = ""): Query
  61. def resolveEnumMandatory1(q: Query, e: String, a: Atom, v: String, v1: String, v2: String, v3: String, prefix: String): Query
  62. def resolveEnumMandatory2(q: Query, e: String, a: Atom, v: String, v1: String, v2: String, v3: String, prefix: String): Query
  63. def resolveEnumOptional1(q: Query, e: String, a0: Atom, v: String, v1: String, v2: String, prefix: String): Query
  64. def resolveEnumOptional2(q: Query, e: String, a0: Atom, v: String, v1: String, v2: String, prefix: String): Query
  65. def resolveEnumTacit(q: Query, e: String, a0: Atom, v: String, v1: String, v2: String, v3: String, prefix: String): Query
  66. def resolveGeneric(q: Query, e: String, g: Generic, v: String, v1: String, v2: String, v3: String): Query
  67. def resolveSchema(q: Query, g: Generic): Query
  68. def resolveSchemaMandatory(g: Generic, q: Query, tpe: String): Query
  69. def resolveSchemaOptional(g: Generic, q: Query): Query
  70. def resolveSchemaOptionalUnique(g: Generic, q: Query): Query
  71. def resolveSchemaTacit(g: Generic, q: Query, tpe: String): Query
  72. final def seq[T](values: Seq[T]): String
    Attributes
    protected
    Definition Classes
    Helpers
  73. def str2date(s: String, zoneOffset: ZoneOffset = localZoneOffset): Date
    Definition Classes
    DateHandling
  74. def str2zdt(s: String, zoneOffset: ZoneOffset = localZoneOffset): ZonedDateTime
    Definition Classes
    DateHandling
  75. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  76. final def time(n: Int, prev: Int = 0): Unit
    Attributes
    protected
    Definition Classes
    Helpers
  77. def toString(): String
    Definition Classes
    AnyRef → Any
  78. def truncateDateStr(dateStr: String): String
    Definition Classes
    DateHandling
  79. final def tupleToSeq(arg: Any): Seq[Any]
    Attributes
    protected
    Definition Classes
    Helpers
  80. def u(t: String, v: String): String
  81. def uri(t: String): Boolean
  82. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  83. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  84. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  85. lazy val zone: ZoneId
    Definition Classes
    DateHandling
  86. object mkDate
    Attributes
    protected
    Definition Classes
    Helpers

Inherited from Helpers

Inherited from DateHandling

Inherited from RegexMatching

Inherited from AnyRef

Inherited from Any

Ungrouped