Class

be.wegenenverkeer.atomium.server.slick

AbstractSlickFeedStore

Related Doc: package slick

Permalink

abstract class AbstractSlickFeedStore[E] extends AbstractFeedStore[E, SlickJdbcContext]

An AbstractFeedStore implementation that stores feeds and pages in a SQL database. This implementation automatically manages the entries tables for each feed.

E

type of the elements in the feed

Linear Supertypes
AbstractFeedStore[E, SlickJdbcContext], FeedStoreSupport[E], FeedStore[E, SlickJdbcContext], AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. AbstractSlickFeedStore
  2. AbstractFeedStore
  3. FeedStoreSupport
  4. FeedStore
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new AbstractSlickFeedStore(feedName: String, title: Option[String], ser: (E) ⇒ String, deser: (String) ⇒ E, url: Url)

    Permalink

    feedName

    the name of the feed

    title

    the optional title of the feed

    ser

    function to serialize an element to a String

    deser

    function to deserialize a String to an element

    url

    the base Url

Type Members

  1. case class FeedEntry extends Product with Serializable

    Permalink
    Definition Classes
    FeedStoreSupport
  2. case class FeedParams extends Product with Serializable

    Permalink
    Definition Classes
    FeedStoreSupport
  3. case class ProcessedFeedEntries extends Product with Serializable

    Permalink
    Definition Classes
    FeedStoreSupport

Abstract Value Members

  1. abstract val feedComponent: FeedComponent

    Permalink
  2. abstract def getEntryTableQuery: scala.slick.driver.JdbcProfile.SimpleQL.TableQuery[EntryTable]

    Permalink
    Attributes
    protected

Concrete Value Members

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

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

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

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

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. def close(): Unit

    Permalink
    Definition Classes
    FeedStore
  7. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  9. def feedLink(startId: Long, count: Int, forward: Boolean): String

    Permalink
    Attributes
    protected
    Definition Classes
    FeedStoreSupport
  10. implicit val feedParams: FeedParams

    Permalink
    Definition Classes
    AbstractFeedStore
  11. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. def generateEntryID(): String

    Permalink
    Attributes
    protected
    Definition Classes
    FeedStoreSupport
  13. val generator: Generator

    Permalink
    Definition Classes
    FeedStoreSupport
  14. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  15. def getFeed(start: Long, pageSize: Int, forward: Boolean)(implicit context: SlickJdbcContext): Option[FeedPage[E]]

    Permalink
    Definition Classes
    AbstractFeedStore → FeedStore
  16. def getFeedEntries(start: Long, count: Int, ascending: Boolean)(implicit context: SlickJdbcContext): List[FeedEntry]

    Permalink

    Retrieves entries with their sequence numbers from the feed

    Retrieves entries with their sequence numbers from the feed

    start

    the starting entry (inclusive), MUST be returned in the entries

    count

    the number of entries to return

    ascending

    if true return entries with sequence numbers >= start in ascending order else return entries with sequence numbers <= start in descending order

    returns

    the corresponding entries sorted accordingly

    Definition Classes
    AbstractSlickFeedStore → AbstractFeedStore
  17. def getHeadOfFeed(pageSize: Int)(implicit context: SlickJdbcContext): FeedPage[E]

    Permalink
    Definition Classes
    AbstractFeedStore → FeedStore
  18. def getMostRecentFeedEntries(count: Int)(implicit context: SlickJdbcContext): List[FeedEntry]

    Permalink

    retrieves the most recent entries from the feedstore sorted in descending order

    retrieves the most recent entries from the feedstore sorted in descending order

    count

    the amount of recent entries to return

    returns

    a list containing tuples of a sequence number and its corresponding entry and sorted by descending sequence number

    Definition Classes
    AbstractSlickFeedStore → AbstractFeedStore
  19. def getNextLink(id: Long, count: Int, next: Option[Long]): Option[Link]

    Permalink
    Definition Classes
    FeedStoreSupport
  20. def getNumberOfEntriesLowerThan(sequenceNr: Long, inclusive: Boolean = true)(implicit context: SlickJdbcContext): Long

    Permalink
    Definition Classes
    AbstractSlickFeedStore → AbstractFeedStore
  21. def getPreviousLink(id: Long, count: Int, previous: Option[Long]): Option[Link]

    Permalink
    Definition Classes
    FeedStoreSupport
  22. def hashCode(): Int

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

    Permalink
    Definition Classes
    Any
  24. def link(l: String, start: Long, pageSize: Int, forward: Boolean): Link

    Permalink
    Attributes
    protected
    Definition Classes
    FeedStoreSupport
  25. def maxId(implicit context: SlickJdbcContext): Long

    Permalink
    Definition Classes
    AbstractSlickFeedStore → AbstractFeedStore
  26. def minId(implicit context: SlickJdbcContext): Long

    Permalink

    returns

    one less than the minimum sequence number used in this feed since SQL sequences start at 1 this is 0. If your DB sequences start with another number override this class and modify accordingly

    Definition Classes
    AbstractSlickFeedStore → AbstractFeedStore
  27. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  28. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  29. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  30. def open(): Unit

    Permalink
    Definition Classes
    FeedStore
  31. def processBackwardEntries(start: Long, pageSize: Int, entries: List[FeedEntry]): ProcessedFeedEntries

    Permalink
    Definition Classes
    FeedStoreSupport
  32. def processFeedEntries(start: Long, minId: Long, pageSize: Int, forward: Boolean, entries: List[FeedEntry])(implicit feedParams: FeedParams): FeedPage[E]

    Permalink
    Definition Classes
    FeedStoreSupport
  33. def processForwardEntries(start: Long, pageSize: Int, entries: List[FeedEntry]): ProcessedFeedEntries

    Permalink
    Definition Classes
    FeedStoreSupport
  34. def processHeadFeedEntries(numberOfEntriesLower: Long, minId: Long, pageSize: Int, entries: List[FeedEntry])(implicit feedParams: FeedParams): FeedPage[E]

    Permalink
    Definition Classes
    FeedStoreSupport
  35. def push(uuid: String, entry: E)(implicit context: SlickJdbcContext): Unit

    Permalink
    Definition Classes
    AbstractSlickFeedStore → FeedStore
  36. def push(entries: Iterable[E])(implicit context: SlickJdbcContext): Unit

    Permalink
    Definition Classes
    AbstractSlickFeedStore → FeedStore
  37. def push(entry: E)(implicit context: SlickJdbcContext): Unit

    Permalink
    Definition Classes
    FeedStore
  38. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  39. def toFeed(pageSize: Int, minId: Long, entries: List[FeedEntry], previousEntryId: Option[Long], nextEntryId: Option[Long])(implicit feedParams: FeedParams): FeedPage[E]

    Permalink
    Definition Classes
    FeedStoreSupport
  40. def toString(): String

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AbstractFeedStore[E, SlickJdbcContext]

Inherited from FeedStoreSupport[E]

Inherited from FeedStore[E, SlickJdbcContext]

Inherited from AnyRef

Inherited from Any

Ungrouped