Packages

trait EntityOps extends AnyRef

Ordering
  1. Grouped
  2. Alphabetic
  3. By Inheritance
Inherited
  1. EntityOps
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. implicit class long2DatomicEntity extends DatomicEntity

    Convenience conversion from entity id to DatomicEntity api

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. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  10. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  11. def inspectRetract(eids: Iterable[Long], txMetaDataMolecules: Molecule*)(implicit conn: Future[Conn], ec: ExecutionContext): Future[Unit]

    Inspect retracting multiple entities with optional transaction meta data.

    Inspect retracting multiple entities with optional transaction meta data.

    Without affecting the database, a multiple entity retract action can be inspected by calling the inspectRetract method.

    Here we inspect a possible retraction of two comment entities with transaction meta data asserting that the retraction was done by Ben Goodman:

    inspectRetract(eids, Ref2.str2("meta2"), Ref1.str1("meta1"))

    This will print inspecting info about the retraction to output (without affecting the database):

    ## 1 ## molecule.core.Datomic.inspectRetract
    =============================================================================
    Model(
      TxMetaData(
        Atom("Ref2", "str2", "String", 1, Eq(Seq("meta2")), None, Seq(), Seq()))
      TxMetaData(
        Atom("Ref1", "str1", "String", 1, Eq(Seq("meta1")), None, Seq(), Seq())))
    -----------------------------------------------------------------------------
    List(
      Add(tx,:Ref2/str2,Values(Eq(Seq("meta2")),None),Card(1)),
      Add(tx,:Ref1/str1,Values(Eq(Seq("meta1")),None),Card(1)))
    -----------------------------------------------------------------------------
    List(
      list(
        RetractEntity(17592186045453),
        RetractEntity(17592186045454),
        Add(datomic.tx,:Ref2/str2,meta2,Card(1)),
        Add(datomic.tx,:Ref1/str1,meta1,Card(1))))
    =============================================================================
    eids

    Iterable of entity ids of type Long

    txMetaDataMolecules

    Zero or more transaction meta data molecules

    conn

    Implicit Conn value in scope

    returns

    Unit (prints to output)

  12. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  13. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  15. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  16. def retract(eids: Iterable[Long], txMetaDataMolecules: Molecule*)(implicit conn: Future[Conn], ec: ExecutionContext): Future[TxReport]

    Retract multiple entities with optional transaction meta data.

    Retract multiple entities with optional transaction meta data.

    0 or more transaction meta data molecules can be asserted together with a retraction of entities.

    Here we retract two comment entities with transaction meta data asserting that the retraction was done by Ben Goodman:

    retract(Seq(commentEid1, commentEid2), MetaData.user("Ben Goodman"))

    We can then later see what comments Ben Goodman retracted (op_(false)):

    Comment.e.text.op_(false).Tx(MetaData.user_("Ben Goodman")).getHistory.map(_ ==> List(
      (commentEid1, "I like this"),
      (commentEid2, "I hate this")
    )
    eids

    Iterable of entity ids of type Long

    txMetaDataMolecules

    Zero or more transaction meta data molecules

    conn

    Implicit Conn value in scope

    returns

    TxReport with result of retract

  17. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  18. def toString(): String
    Definition Classes
    AnyRef → Any
  19. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  20. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  21. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()

Inherited from AnyRef

Inherited from Any

Entity operations

Ungrouped