trait GetAsyncObjList[Obj, Tpl] extends AnyRef
Default asynchronous data getter methods on molecules returning Future[List[Obj]].
For expected smaller result sets it's convenient to return Lists of objects of data.
for { persons <- Person.name.age.getAsyncObjList } yield { persons.map(p => s"${p.name} is ${p.age} years old")) === List( "Ben is 42 years old", "Liz is 37 years old" ) }
Each asynchronous getter in this package simply wraps the result of its equivalent synchronous getter in a Future.
getAsyncObjListAsOf thus wraps the result of getObjListAsOf in a Future and so on.
- Self Type
- Molecule_0[Obj, Tpl] with GetAsyncObjArray[Obj, Tpl]
- Source
- GetAsyncObjList.scala
- Grouped
- Alphabetic
- By Inheritance
- GetAsyncObjList
- 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[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] )
-
def
getAsyncObjList(n: Int)(implicit conn: Conn): Future[List[Obj]]
Get
FuturewithListof n rows as objects matching molecule.Get
FuturewithListof n rows as objects matching molecule.
For more info and code examples see equivalent synchronous get method.- n
Int Number of rows returned
- conn
Implicit Conn value in scope
- returns
Future[List[Obj]]where Obj is an object type having property types matching the attributes of the molecule
-
def
getAsyncObjList(implicit conn: Conn): Future[List[Obj]]
Get
FuturewithListof all rows as objects matching molecule. -
def
getAsyncObjListAsOf(date: Date, n: Int)(implicit conn: Conn): Future[List[Obj]]
Get
FuturewithListof n rows as objects matching molecule as of date.Get
FuturewithListof n rows as objects matching molecule as of date.
Get data at a human point in time (a java.util.Date).
For more info and code examples see equivalent synchronous getAsOf method.- date
java.util.Date
- n
Int Number of rows returned
- conn
Implicit Conn value in scope
- returns
Future[List[Obj]]where Obj is an object type having property types matching the attributes of the molecule
-
def
getAsyncObjListAsOf(date: Date)(implicit conn: Conn): Future[List[Obj]]
Get
FuturewithListof all rows as objects matching molecule as of date.Get
FuturewithListof all rows as objects matching molecule as of date.
Get data at a human point in time (a java.util.Date).
For more info and code examples see equivalent synchronous getAsOf method.- date
java.util.Date
- conn
Implicit Conn value in scope
- returns
Future[List[Obj]]where Obj is an object type having property types matching the attributes of the molecule
-
def
getAsyncObjListAsOf(tx: TxReport, n: Int)(implicit conn: Conn): Future[List[Obj]]
Get
FuturewithListof n rows as objects matching molecule as of tx.Get
FuturewithListof n rows as objects matching molecule as of tx.
Datomic's internalasOfmethod can take a transaction entity id as argument to retrieve a database value as of that transaction (including).
Instead of supplying the transaction entity id, in Molecule we supply a TxReport that contains the transaction entity id (which is used as argument to Datomic internally). This is more convenient when using Molecule since we get a TxReport from transaction operations likeget,update,retractetc.
For more info and code examples see equivalent synchronous getAsOf method. -
def
getAsyncObjListAsOf(tx: TxReport)(implicit conn: Conn): Future[List[Obj]]
Get
FuturewithListof all rows as objects matching molecule as of tx.Get
FuturewithListof all rows as objects matching molecule as of tx.
Datomic's internalasOfmethod can take a transaction entity id as argument to retrieve a database value as of that transaction (including).
Instead of supplying the transaction entity id, in Molecule we supply a TxReport that contains the transaction entity id (which is used as argument to Datomic internally). This is more convenient when using Molecule since we get a TxReport from transaction operations likeget,update,retractetc.
For more info and code examples see equivalent synchronous getAsOf method. -
def
getAsyncObjListAsOf(t: Long, n: Int)(implicit conn: Conn): Future[List[Obj]]
Get
FuturewithListof n rows as objects matching molecule as of transaction timet.Get
FuturewithListof n rows as objects matching molecule as of transaction timet.
Transaction timetis an auto-incremented transaction number assigned internally by Datomic.
tcan for instance be retrieved in a getHistory call for an attribute and then be used to get data as of that point in time (including that transaction).
For more info and code examples see equivalent synchronous getAsOf method.- t
Long Transaction time t
- n
Int Number of rows returned
- conn
Implicit Conn value in scope
- returns
Future[List[Obj]]where Obj is an object type having property types matching the attributes of the molecule
-
def
getAsyncObjListAsOf(t: Long)(implicit conn: Conn): Future[List[Obj]]
Get
FuturewithListof all rows as objects matching molecule as of transaction timet.Get
FuturewithListof all rows as objects matching molecule as of transaction timet.
Transaction timetis an auto-πincremented transaction number assigned internally by Datomic.
tcan for instance be retrieved in a getHistory call for an attribute and then be used to get data as of that point in time (including that transaction).
For more info and code examples see equivalent synchronous getAsOf method.- t
Transaction time t
- conn
Implicit Conn value in scope
- returns
Future[List[Obj]]where Obj is an object type having property types matching the attributes of the molecule
-
def
getAsyncObjListHistory(implicit conn: Conn): Future[List[Obj]]
Get
Futurewith history of operations asListon an attribute in the db.Get
Futurewith history of operations asListon an attribute in the db.
For more info and code examples see equivalent synchronous getHistory method.- conn
Implicit Conn value in scope
- returns
Future[List[Obj]]where Obj is an object type having property types matching the attributes of the molecule
-
def
getAsyncObjListSince(date: Date, n: Int)(implicit conn: Conn): Future[List[Obj]]
Get
FuturewithListof n rows as objects matching molecule since date.Get
FuturewithListof n rows as objects matching molecule since date.
Get data added/retracted since a human point in time (a java.util.Date).
For more info and code examples see equivalent synchronous getSince method.- date
java.util.Date
- n
Int Number of rows returned
- conn
Implicit Conn value in scope
- returns
Future[List[Obj]]where Obj is an object type having property types matching the attributes of the molecule
-
def
getAsyncObjListSince(date: Date)(implicit conn: Conn): Future[List[Obj]]
Get
FuturewithListof all rows as objects matching molecule since date.Get
FuturewithListof all rows as objects matching molecule since date.
Get data added/retracted since a human point in time (a java.util.Date).
For more info and code examples see equivalent synchronous getSince method.- date
java.util.Date
- conn
Implicit Conn value in scope
- returns
Future[List[Obj]]where Obj is an object type having property types matching the attributes of the molecule
-
def
getAsyncObjListSince(tx: TxReport, n: Int)(implicit conn: Conn): Future[List[Obj]]
Get
FuturewithListof n rows as objects matching molecule since tx.Get
FuturewithListof n rows as objects matching molecule since tx.
Datomic's internalsincecan take a transaction entity id as argument to retrieve a database value since that transaction (excluding the transaction itself).
Instead of supplying the transaction entity id, in Molecule we supply a TxReport that contains the transaction entity id (which is used as argument to Datomic internally). This is more convenient when using Molecule since we get a TxReport from transaction operations likeget,update,retractetc.
For more info and code examples see equivalent synchronous getSince method. -
def
getAsyncObjListSince(tx: TxReport)(implicit conn: Conn): Future[List[Obj]]
Get
FuturewithListof all rows as objects matching molecule since tx.Get
FuturewithListof all rows as objects matching molecule since tx.
Datomic's internalsincecan take a transaction entity id as argument to retrieve a database value since that transaction (excluding the transaction itself).
Instead of supplying the transaction entity id, in Molecule we supply a TxReport that contains the transaction entity id (which is used as argument to Datomic internally). This is more convenient when using Molecule since we get a TxReport from transaction operations likeget,update,retractetc.
For more info and code examples see equivalent synchronous getSince method. -
def
getAsyncObjListSince(t: Long, n: Int)(implicit conn: Conn): Future[List[Obj]]
Get
FuturewithListof n rows as objects matching molecule since transaction timet.Get
FuturewithListof n rows as objects matching molecule since transaction timet.
Transaction timetis an auto-incremented transaction number assigned internally by Datomic.
For more info and code examples see equivalent synchronous getSince method.- t
Transaction time t
- n
Int Number of rows returned
- conn
Implicit Conn value in scope
- returns
Future[List[Obj]]where Obj is an object type having property types matching the attributes of the molecule
-
def
getAsyncObjListSince(t: Long)(implicit conn: Conn): Future[List[Obj]]
Get
FuturewithListof all rows as objects matching molecule since transaction timet.Get
FuturewithListof all rows as objects matching molecule since transaction timet.
Transaction timetis an auto-incremented transaction number assigned internally by Datomic.
For more info and code examples see equivalent synchronous getSince method.- t
Transaction time t
- conn
Implicit Conn value in scope
- returns
Future[List[Obj]]where Obj is an object type having property types matching the attributes of the molecule
-
def
getAsyncObjListWith(txData: List[_], n: Int)(implicit conn: Conn): Future[List[Obj]]
Get
FuturewithListof n rows as objects matching molecule with applied raw transaction data.Get
FuturewithListof n rows as objects matching molecule with applied raw transaction data.
Apply raw transaction data to in-memory "branch" of db without affecting db.
For more info and code examples see equivalent synchronous getWith method.- txData
Raw transaction data as java.util.List[Object]
- n
Int Number of rows returned
- conn
Implicit Conn value in scope
- returns
Future[List[Obj]]where Obj is an object type having property types matching the attributes of the molecule
-
def
getAsyncObjListWith(txData: List[_])(implicit conn: Conn): Future[List[Obj]]
Get
FuturewithListof all rows as objects matching molecule with applied raw transaction data.Get
FuturewithListof all rows as objects matching molecule with applied raw transaction data.
Apply raw transaction data to in-memory "branch" of db without affecting db.
For more info and code examples see equivalent synchronous getWith method.- txData
Raw transaction data as java.util.List[Object]
- conn
Implicit Conn value in scope
- returns
Future[List[Obj]]where Obj is an object type having property types matching the attributes of the molecule
-
def
getAsyncObjListWith(n: Int, txMolecules: Seq[Seq[Statement]]*)(implicit conn: Conn): Future[List[Obj]]
Get
FuturewithListof n rows as objects matching molecule with applied molecule transaction data.Get
FuturewithListof n rows as objects matching molecule with applied molecule transaction data.
Apply one or more molecule transactions to in-memory "branch" of db without affecting db.
For more info and code examples see equivalent synchronous getWith method.- n
Int Number of rows returned
- txMolecules
Transaction statements from applied Molecules with test data
- conn
Implicit Conn value in scope
- returns
Future[List[Obj]]where Obj is an object type having property types matching the attributes of the molecule
- Note
Note how the
nparameter has to come before thetxMoleculesvararg.
-
def
getAsyncObjListWith(txMolecules: Seq[Seq[Statement]]*)(implicit conn: Conn): Future[List[Obj]]
Get
FuturewithListof all rows as objects matching molecule with applied molecule transaction data.Get
FuturewithListof all rows as objects matching molecule with applied molecule transaction data.
Apply one or more molecule transactions to in-memory "branch" of db without affecting db.
For more info and code examples see equivalent synchronous getWith method. Multiple transactions can be applied to test more complex what-if scenarios!- txMolecules
Transaction statements from applied Molecules with test data
- conn
Implicit Conn value in scope
- returns
Future[List[Obj]]where Obj is an object type having property types matching the attributes of the molecule
-
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
-
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()
-
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