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
- Entity.scala
- Alphabetic
- By Inheritance
- RetractMolecule
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
RetractMolecule(txMeta: MoleculeBase)
- txMeta
A molecule with transaction meta data to be saved with entity retraction
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
debugRetract: Unit
Debug entity retraction with transaction meta data.
Debug entity retraction with transaction meta data.
eid.Tx(MyMetaData.action("moved away")).debugRetractThis will print generated Datomic transaction statements in a readable format to output:
## 1 ## Debug `retract` on entity with tx meta data ======================================================================== 1 List( 1 List( 1 :db.fn/retractEntity 17592186045445 2 :db/add #db/id[:db.part/tx -1000100] :myMetaData/action moved away Card(1))) ========================================================================
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
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
-
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
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
- val txMeta: MoleculeBase
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()

Documentation/API for the Molecule library - a meta DSL for the Datomic database.
Manual | scalamolecule.org | Github | Forum