trait ItemsList[T <: Mapper[T]] extends AnyRef

Keeps track of pending adds to and removes from a list of mappers. Supports in-memory sorting by a field. Usage: override metaMapper with a MetaMapper instance, call sortBy to specify the field to sort by. If it is already sorted by that field it will sort descending, otherwise ascending. Call save to actualize changes.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ItemsList
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def metaMapper: T with MetaMapper[T]

    The MetaMapper that provides create and findAll functionality etc.

    The MetaMapper that provides create and findAll functionality etc. Must itself be a T (the mapper type it represents)

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. def add: Unit

    Adds a new, unsaved item

  5. val added: List[T]

    The list of items pending to be added to the database

  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. val ascending: Boolean

    The sort direction

  8. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. val current: List[T]

    The list of items that correspond to items in the database

  10. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  11. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  12. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
  14. def hashCode(): Int
    Definition Classes
    AnyRef → Any
  15. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  16. def items: Seq[T]

    Returns the items (current + added - removed), sorted.

    Returns the items (current + added - removed), sorted. Sorting sorts strings case-insensitive, as well as Ordered and java.lang.Comparable. Anything else where both values are nonnull are sorted via their toString method (case sensitive)

  17. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  18. final def notify(): Unit
    Definition Classes
    AnyRef
  19. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  20. def refresh: Unit

    Reloads the contents of 'current' from the database

  21. def reload: Unit

    Reset the ItemsList from the database: calls refresh, and 'added' and 'removed' are cleared.

  22. def remove(i: T): Unit

    Marks an item pending for removal

  23. val removed: List[T]

    The list of items to be deleted from current

  24. def save: Unit

    Sends to the database: added is saved removed is deleted (current - removed) is saved

  25. def sortBy(field: MappedField[_, T]): Unit
  26. val sortField: Option[MappedField[_, T]]

    The field to sort by, if any

  27. def sortFn(field: MappedField[_, T]): () ⇒ Unit
  28. val sortNullFirst: Boolean

    Whether the sorting algorithm should put null first or last

  29. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  30. def toString(): String
    Definition Classes
    AnyRef → Any
  31. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped