trait EntityOps extends AnyRef
- Grouped
- Alphabetic
- By Inheritance
- EntityOps
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
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[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
debugRetract(eids: Iterable[Long], txMetaDataMolecules: MoleculeBase*)(implicit conn: Conn): Unit
Debug retracting multiple entities with optional transaction meta data.
Debug retracting multiple entities with optional transaction meta data.
Without affecting the database, a multiple entity retract action can be debugged by adding a 'D' (for 'Debug') to the retract method.
Here we debug a possible retraction of two comment entities with transaction meta data asserting that the retraction was done by Ben Goodman:debugRetract(Seq(commentEid1, commentEid2), MetaData.user("Ben Goodman"))
This will print debugging info about the retraction to output (without affecting the database):
## 1 ## molecule.Datomic.debugRetract =================================================================================================================== 1 Model( 1 TxMetaData( 1 Atom(metaData,user,String,1,Eq(List(Ben Goodman)),None,List(),List()))) ------------------------------------------------ 2 List( 1 :db/add 'tx :MetaData/user Values(Eq(List(Ben Goodman)),None) Card(1)) ------------------------------------------------ 3 List( 1 List( 1 :db.fn/retractEntity 17592186045445 2 :db.fn/retractEntity 17592186045446 3 :db/add #db/id[:db.part/tx -1000097] :MetaData/user b 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
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.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()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
implicit final
def
long2Entity(id: Long)(implicit conn: Conn): Entity
Long -> Entity api implicit.
-
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: MoleculeBase*)(implicit conn: Conn): 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 === List( (commentEid1, "I like this"), (commentEid2, "I hate this") )
-
def
retractAsync(eids: Iterable[Long], txMetaDataMolecules: MoleculeBase*)(implicit conn: Conn, ec: ExecutionContext): Future[TxReport]
Asynchronously retract multiple entities with optional transaction meta data.
Asynchronously 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 asynchronously retract two comment entities with transaction meta data asserting that the retraction was done by Ben Goodman:retractAsync(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 === 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
- @native() @throws( ... )
Documentation/API for the Molecule library - a meta DSL for the Datomic database.
Manual | scalamolecule.org | Github | Forum