entitytled.EntityComponent

Entity

Related Doc: package EntityComponent

abstract class Entity[E <: (EntityComponent.this)#Entity[E, I], I] extends AnyRef

Base class for entities.

Extend this class with a case class to define an entity. Entities need to be uniquely identifiable by an ID. Clients need to implement the id member

E

The extending entity type itself (a self bound).

I

The ID type.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Entity
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Entity()(implicit includes: (EntityComponent.this)#Includes[E] = Includes(), includesSetter: (EntityComponent.this)#IncludesSetter[E])

    includes

    The included (eager-loaded) relationships.

    includesSetter

    Helper needed for updating the included relationship values.

Abstract Value Members

  1. abstract val id: Option[I]

    The entity's unique ID.

    The entity's unique ID.

    An entity needs to be uniquely identifiable by this ID.

Concrete Value Members

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

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

    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  5. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean

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

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

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  10. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  11. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  12. def many[T](relationship: (EntityComponent.this)#Relationship[_ <: (EntityComponent.this)#EntityTable[E, I], _ <: slick.driver.JdbcProfile.API.Table[T], E, I, T, Seq]): (EntityComponent.this)#Many[E, I, T]

    Returns a relationship value representation for the given 'to many' relationship.

    Returns a relationship value representation for the given 'to many' relationship.

    T

    The relationship target's type.

    relationship

    The 'to many' relationship the represented value belongs to.

  13. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  16. def one[T](relationship: (EntityComponent.this)#Relationship[_ <: (EntityComponent.this)#EntityTable[E, I], _ <: slick.driver.JdbcProfile.API.Table[T], E, I, T, Option]): (EntityComponent.this)#One[E, I, T]

    Returns a relationship value representation for the given 'to one' relationship.

    Returns a relationship value representation for the given 'to one' relationship.

    T

    The relationship target's type.

    relationship

    The 'to one' relationship the represented value belongs to.

  17. def setInclude[T, C[_]](relationshipRep: (EntityComponent.this)#RelationshipRep[E, I, T, C] with (EntityComponent.this)#Fetched[T, C]): E

    Returns a new instance onto which the given relationship value representation is included (eager-loaded)

    Returns a new instance onto which the given relationship value representation is included (eager-loaded)

    T

    The relationships target type.

    C

    Value container type (scala.Option, scala.Seq, ...)

    relationshipRep

    The relationship value representation to be included (eager-loaded) onto the new instance.

  18. def setInclude[T, C[_]](relationship: (EntityComponent.this)#Relationship[_ <: (EntityComponent.this)#EntityTable[E, I], _ <: slick.driver.JdbcProfile.API.Table[T], E, I, T, C], value: C[T]): E

    Returns a new instance onto which the given value is included (eager-loaded) for the given relationship.

    Returns a new instance onto which the given value is included (eager-loaded) for the given relationship.

    T

    The relationships target type.

    C

    Value container type (scala.Option, scala.Seq, ...)

    relationship

    The relationship the value is associated with.

    value

    The value to include (eager-load) on the new instance.

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

    Definition Classes
    AnyRef
  20. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. def withIncludes(includes: (EntityComponent.this)#Includes[E]): E

    Returns a new instance with the given set if includes (eager-loaded relationship values).

    Returns a new instance with the given set if includes (eager-loaded relationship values).

    includes

    The set of relationship values that are to be included on the new entity instance.

Inherited from AnyRef

Inherited from Any

Ungrouped