datomisca

Entity

Related Docs: object Entity | package datomisca

final class Entity extends AnyVal

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

Instance Constructors

  1. new Entity(entity: datomic.Entity)

Value Members

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

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

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

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

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

    Definition Classes
    Any
  6. def apply(keyword: Keyword): Any

  7. def as[T](keyword: Keyword)(implicit fdat: FromDatomicCast[T]): T

  8. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  9. def contains(keyword: Keyword): Boolean

  10. def database: Database

    the database value that is the basis for this entity

  11. def ensuring(cond: (Entity) ⇒ Boolean, msg: ⇒ Any): Entity

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

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

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

    Implicit information
    This member is added by an implicit conversion from Entity to Ensuring[Entity] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  15. val entity: datomic.Entity

  16. def formatted(fmtstr: String): String

    Implicit information
    This member is added by an implicit conversion from Entity to StringFormat[Entity] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  17. def get(keyword: Keyword): Option[Any]

  18. def getAs[T](keyword: Keyword)(implicit fdat: FromDatomicCast[T]): Option[T]

  19. def getClass(): Class[_ <: AnyVal]

    Definition Classes
    AnyVal → Any
  20. 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.

    Implicit information
    This member is added by an implicit conversion from Entity to RichEntity performed by method RichEntity in datomisca.
    Definition Classes
    RichEntity
    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 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.

    Implicit information
    This member is added by an implicit conversion from Entity to RichEntity performed by method RichEntity in datomisca.
    Definition Classes
    RichEntity
    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.

  22. def id: Long

  23. 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.

    Implicit information
    This member is added by an implicit conversion from Entity to RichEntity performed by method RichEntity in datomisca.
    Definition Classes
    RichEntity
    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. 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.

    Implicit information
    This member is added by an implicit conversion from Entity to RichEntity performed by method RichEntity in datomisca.
    Definition Classes
    RichEntity
    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.

  25. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  26. def keySet: Set[String]

  27. 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.

    Implicit information
    This member is added by an implicit conversion from Entity to RichEntity performed by method RichEntity in datomisca.
    Definition Classes
    RichEntity
    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.

  28. 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.

    Implicit information
    This member is added by an implicit conversion from Entity to RichEntity performed by method RichEntity in datomisca.
    Definition Classes
    RichEntity
    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 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..

    Implicit information
    This member is added by an implicit conversion from Entity to RichEntity performed by method RichEntity in datomisca.
    Definition Classes
    RichEntity
    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.

  30. def toMap: Map[String, Any]

  31. def toString(): String

    Definition Classes
    Entity → Any
  32. def touch(): Entity

  33. def [B](y: B): (Entity, B)

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

Shadowed Implicit Value Members

  1. 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.

    Implicit information
    This member is added by an implicit conversion from Entity to RichEntity performed by method RichEntity in datomisca.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (entity: RichEntity).apply(attr)(attrC)
    Definition Classes
    RichEntity
    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.

  2. 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.

    Implicit information
    This member is added by an implicit conversion from Entity to RichEntity performed by method RichEntity in datomisca.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (entity: RichEntity).get(attr)(attrC)
    Definition Classes
    RichEntity
    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.

Inherited from AnyVal

Inherited from Any

Inherited by implicit conversion RichEntity from Entity to RichEntity

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

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

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

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

Ungrouped