datomisca

RichEntity

Related Doc: package datomisca

implicit class RichEntity extends AnyRef

Source
package.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. RichEntity
  2. AnyRef
  3. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new RichEntity(entity: Entity)

Type Members

  1. class ReadHelper[T] extends AnyRef

  2. class ReadOptHelper[T] extends AnyRef

Value Members

  1. final def !=(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Definition Classes
    AnyRef → Any
  3. def +(other: String): String

    Implicit information
    This member is added by an implicit conversion from RichEntity to any2stringadd[RichEntity] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (RichEntity, B)

    Implicit information
    This member is added by an implicit conversion from RichEntity to ArrowAssoc[RichEntity] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  6. def apply[DD <: AnyRef, Card <: Cardinality, T](attr: Attribute[DD, Card])(implicit attrC: Attribute2EntityReaderInj[DD, Card, T]): T

    Returns the value associated with an attribute.

    Returns the value associated with an attribute.

    attr

    the attribute to lookup in the entity.

    returns

    the value associated with attr in this entity.

    Exceptions thrown

    EntityKeyNotFoundException when the attribute does not exist.

    Note

    The return type is inferred automatically as the implicit ensures there is a unique return type for the Datomic data type specified by the attribute.

  7. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  8. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. def ensuring(cond: (RichEntity) ⇒ Boolean, msg: ⇒ Any): RichEntity

    Implicit information
    This member is added by an implicit conversion from RichEntity to Ensuring[RichEntity] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  10. def ensuring(cond: (RichEntity) ⇒ Boolean): RichEntity

    Implicit information
    This member is added by an implicit conversion from RichEntity to Ensuring[RichEntity] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  11. def ensuring(cond: Boolean, msg: ⇒ Any): RichEntity

    Implicit information
    This member is added by an implicit conversion from RichEntity to Ensuring[RichEntity] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  12. def ensuring(cond: Boolean): RichEntity

    Implicit information
    This member is added by an implicit conversion from RichEntity to Ensuring[RichEntity] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  13. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  14. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  15. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  16. def formatted(fmtstr: String): String

    Implicit information
    This member is added by an implicit conversion from RichEntity to StringFormat[RichEntity] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  17. def get[DD <: AnyRef, Card <: Cardinality, T](attr: Attribute[DD, Card])(implicit attrC: Attribute2EntityReaderInj[DD, Card, T]): Option[T]

    Optionally returns the value associated with an attribute.

    Optionally returns the value associated with an attribute.

    attr

    the attribute to lookup in the entity.

    returns

    an option value containing the value associated with attr in this entity, or None if none exists.

    Note

    The return type is inferred automatically as the implicit ensures there is a unique return type for the Datomic data type specified by the attribute.

  18. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  19. def getIdView[T](attr: Attribute[DatomicRef.type, one.type])(implicit attrC: Attribute2EntityReaderCast[DatomicRef.type, one.type, IdView[T]]): Option[IdView[T]]

    Optionally returns an IdView of the entity associated with a ref attribute.

    Optionally returns an IdView of the entity associated with a ref attribute.

    attr

    the attribute to lookup in the entity.

    returns

    an option value containing the IdView of the entity associated with attr in this entity, or None if none exists.

    Note

    The return type must be explicitly specified, and the implicit ensures that it is a valid pairing with the Datomic data type specified by the attribute.

  20. def getIdViews[T](attr: Attribute[DatomicRef.type, many.type])(implicit attrC: Attribute2EntityReaderCast[DatomicRef.type, many.type, Set[IdView[T]]]): Option[Set[IdView[T]]]

    Optionally returns a set of IdViews of the entities associated with a many-ref attribute.

    Optionally returns a set of IdViews of the entities associated with a many-ref attribute.

    attr

    the attribute to lookup in the entity.

    returns

    an option value containing the set of IdViews of the entities associated with attr in this entity, or None if none exists.

    Note

    The return type must be explicitly specified, and the implicit ensures that it is a valid pairing with the Datomic data type specified by the attribute.

  21. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  22. def idView[T](attr: Attribute[DatomicRef.type, one.type])(implicit attrC: Attribute2EntityReaderCast[DatomicRef.type, one.type, IdView[T]]): IdView[T]

    Returns an IdView of the entity associated with a ref attribute.

    Returns an IdView of the entity associated with a ref attribute.

    attr

    the attribute to lookup in the entity.

    returns

    the IdView of the entity associated with attr in this entity.

    Exceptions thrown

    EntityKeyNotFoundException when the attribute does not exist.

    Note

    The return type must be explicitly specified, and the implicit ensures that it is a valid pairing with the Datomic data type specified by the attribute.

  23. def idViews[T](attr: Attribute[DatomicRef.type, many.type])(implicit attrC: Attribute2EntityReaderCast[DatomicRef.type, many.type, Set[IdView[T]]]): Set[IdView[T]]

    Returns a set of IdViews of the entities associated with a many-ref attribute.

    Returns a set of IdViews of the entities associated with a many-ref attribute.

    attr

    the attribute to lookup in the entity.

    returns

    the set of IdViews of the entities associated with attr in this entity.

    Exceptions thrown

    EntityKeyNotFoundException when the attribute does not exist.

    Note

    The return type must be explicitly specified, and the implicit ensures that it is a valid pairing with the Datomic data type specified by the attribute.

  24. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  25. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  26. final def notify(): Unit

    Definition Classes
    AnyRef
  27. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  28. def read[T]: ReadHelper[T]

    Returns the value associated with an attribute.

    Returns the value associated with an attribute.

    returns

    the value associated with attr in this entity.

    Exceptions thrown

    EntityKeyNotFoundException when the attribute does not exist.

    Note

    The return type must be explicitly specified, and the implicit ensures that it is a valid pairing with the Datomic data type specified by the attribute.

  29. def readOpt[T]: ReadOptHelper[T]

    Optionally returns the value associated with an attribute.

    Optionally returns the value associated with an attribute.

    returns

    an option value containing the value associated with attr in this entity, or None if none exists.

    Note

    The return type must be explicitly specified, and the implicit ensures that it is a valid pairing with the Datomic data type specified by the attribute.

  30. def readOrElse[DD <: AnyRef, Card <: Cardinality, T](attr: Attribute[DD, Card], default: ⇒ T)(implicit attrC: Attribute2EntityReaderCast[DD, Card, T]): T

    Returns the value associated with an attribute, or a default value if the attribute is not contained in the entity.

    Returns the value associated with an attribute, or a default value if the attribute is not contained in the entity.

    attr

    the attribute to lookup in the entity.

    default

    a computation that yields a default value in case the attribute is not found in the entity.

    returns

    the value associated with attr in this entity, otherwise the result of the default computation..

    Note

    The default value guides the type inference, and the implicit ensures that it is a valid pairing with the Datomic data type specified by the attribute.

  31. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  32. def toString(): String

    Definition Classes
    AnyRef → Any
  33. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  35. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  36. def [B](y: B): (RichEntity, B)

    Implicit information
    This member is added by an implicit conversion from RichEntity to ArrowAssoc[RichEntity] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from RichEntity to any2stringadd[RichEntity]

Inherited by implicit conversion StringFormat from RichEntity to StringFormat[RichEntity]

Inherited by implicit conversion Ensuring from RichEntity to Ensuring[RichEntity]

Inherited by implicit conversion ArrowAssoc from RichEntity to ArrowAssoc[RichEntity]

Ungrouped