trait EntityOps extends AnyRef
Operations on multiple entities.
- Source
- EntityOps.scala
- Grouped
- Alphabetic
- By Inheritance
- EntityOps
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
implicit
class
long2DatomicEntity extends DatomicEntity
Convenience conversion from entity id to DatomicEntity api
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()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
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()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
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 theinspectRetractmethod.
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)
-
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(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") )
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
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.
scalamolecule.org | Github | Forum