Packages

case class RetractMolecule(txMeta: MoleculeBase) extends Product with Serializable

Wrapper to add retract methods on entity with transaction meta data.

RetractMolecule is created from calling Tx:

val benId = Person.name("Ben").Tx(MyMetaData.action("add member")).save.eid

// Retract entity with tx meta data
benId.Tx(MyMetaData.action("moved away")).retract

// Query for Ben's history and why he was retracted
Person(benId).name.t.op.Tx(MyMetaData.action).getHistory === List(
  ("Ben", 1028, true, "add member"), // Ben added as member
  ("Ben", 1030, false, "moved away") // Ben retracted since he moved away
)
txMeta

A molecule with transaction meta data to be saved with entity retraction

Source
DatomicEntity.scala
Linear Supertypes
Serializable, Serializable, Product, Equals, AnyRef, Any
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. RetractMolecule
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new RetractMolecule(txMeta: MoleculeBase)

    txMeta

    A molecule with transaction meta data to be saved with entity retraction

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 finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  8. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  9. def inspectRetract: Unit

    Inspect entity retraction with transaction meta data.

    Inspect entity retraction with transaction meta data.

    eid.Tx(MyMetaData.action("moved away")).inspectRetract

    This will print generated Datomic transaction statements in a readable format to output:

    ## 1 ## Inspect `retract` on entity with tx meta data
    ========================================================================
    1          List(
      1          List(
        1          :db/retractEntity   17592186045445
        2          :db/add   #db/id[:db.part/tx -1000100]  :myMetaData/action   moved away   Card(1)))
    ========================================================================
  10. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  11. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  13. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  14. def retract: TxReport

    Perform retraction of entity with added transaction meta data against database.

    Perform retraction of entity with added transaction meta data against database.

    returns

    TxReport with result of transaction

  15. def retractAsync(implicit ec: ExecutionContext): Future[TxReport]

    Perform asynchronous retraction of entity with added transaction meta data against database.

    Perform asynchronous retraction of entity with added transaction meta data against database.

    returns

    Future[molecule.facade.TxReport] with result of transaction

  16. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  17. val txMeta: MoleculeBase
  18. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  19. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  20. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped