trait ManyAttrExpr[Ns, Add, OldNew, Rem] extends AnyRef
Value update methods for card-many attributes.
- Source
- AttrExpressions.scala
- Alphabetic
- By Inheritance
- ManyAttrExpr
- 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
assert(values: Iterable[Add]): Ns with Attr
Assert Iterable of card-many attribute values.
Assert Iterable of card-many attribute values.
Person.hobbies.get === List(Set("golf", "diving")) // Assert/add values of Iterable Person(benId).hobbies.assert(Seq("stamps", "walking", "theater")).update Person.hobbies.get === List(Set("golf", "diving", "stamps", "walking", "theater"))
- values
Iterable of attribute values
- returns
Molecule to be updated
-
def
assert(value: Add, moreValues: Add*): Ns with Attr
Assert one or more card-many attribute values.
Assert one or more card-many attribute values.
Person.hobbies.get === List(Set("golf", "diving")) // Assert/add value Person(benId).hobbies.assert("stamps").update // Assert multiple values Person(benId).hobbies.assert("walking", "theater").update Person.hobbies.get === List(Set("golf", "diving", "stamps", "walking", "theater"))
- value
New attribute value
- moreValues
Optional additional new attribute values
- returns
Molecule to be updated
-
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()
-
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
replace(oldNews: Iterable[OldNew]): Ns with Attr
Replace Iterable of card-many attribute values.
Replace Iterable of card-many attribute values.
Retracts old value and asserts new value.Person.hobbies.get === List(Set("golf", "diving")) // Replace values by applying Iterable of old/new value pairs Person(benId).hobbies.replace("theater" -> "concerts", "diving" -> "football").update Person.hobbies.get === List(Set("concerts", "football"))
- oldNews
Iterable of old/new attribute values. For map attributes it's key/value pairs.
- returns
Molecule to be updated
-
def
replace(oldNew: OldNew, oldNews: OldNew*): Ns with Attr
Replace one or more card-many attribute values.
Replace one or more card-many attribute values.
Retracts old value and asserts new value.Person.hobbies.get === List(Set("golf", "diving")) // Replace value by applying old/new value pair Person(benId).hobbies.replace("golf" -> "theater").update // Replace multiple values by applying multiple old/new value pairs Person(benId).hobbies.replace("theater" -> "concerts", "diving" -> "football").update Person.hobbies.get === List(Set("concerts", "football"))
- oldNew
Pair of old/new value
- oldNews
Optional additional pairs of old/new value
- returns
Molecule to be updated
-
def
retract(values: Iterable[Rem]): Ns with Attr
Retract Iterable of card-many attribute values.
Retract Iterable of card-many attribute values.
Person.hobbies.get === List(Set("golf", "diving", "stamps", "walking", "theater")) // Retract multiple values Person(benId).hobbies.retract(List("walking", "theater")).update Person.hobbies.get === List(Set("golf", "diving", "stamps"))
- values
Iterable of attribute values to be retracted
- returns
Molecule to be updated
-
def
retract(value: Rem, moreValues: Rem*): Ns with Attr
Retract one or more card-many attribute values.
Retract one or more card-many attribute values.
Person.hobbies.get === List(Set("golf", "diving", "stamps", "walking", "theater")) // Retract value Person(benId).hobbies.retract("theater").update // Retract multiple values Person(benId).hobbies.retract("stamps", "walking").update Person.hobbies.get === List(Set("golf", "diving"))
- value
Attribute value to be retracted
- moreValues
Optional additional attribute values to be retracted
- returns
Molecule to be updated
-
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.
Manual | scalamolecule.org | Github | Forum