be.wegenenverkeer.atomium.server.jdbc

PgJdbcFeedStore

Related Doc: package jdbc

case class PgJdbcFeedStore[E](feedName: String, title: Option[String], entryTableName: String, ser: (E) ⇒ String, deser: (String) ⇒ E, url: Url) extends AbstractJdbcFeedStore[E] with PostgresDialect with Product with Serializable

Linear Supertypes
Serializable, Serializable, Product, Equals, PostgresDialect, Dialect, AbstractJdbcFeedStore[E], AbstractFeedStore[E, JdbcContext], FeedStoreSupport[E], FeedStore[E, JdbcContext], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. PgJdbcFeedStore
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. PostgresDialect
  7. Dialect
  8. AbstractJdbcFeedStore
  9. AbstractFeedStore
  10. FeedStoreSupport
  11. FeedStore
  12. AnyRef
  13. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

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

Type Members

  1. case class FeedEntry extends Product with Serializable

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

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

    Definition Classes
    FeedStoreSupport

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 addFeed(feed: FeedDbModel)(implicit jdbcContext: JdbcContext): Unit

    Add a feed definition to the feed table.

    Add a feed definition to the feed table.

    feed

    The feed to add.

    jdbcContext

    The JDBC context to use.

    returns

    The id for the newly added feed.

    Definition Classes
    PostgresDialectDialect
  5. def addFeedEntry(entryTableName: String, entryData: EntryDbModel)(implicit jdbcContext: JdbcContext): Unit

    Add an entry to an entry table.

    Add an entry to an entry table.

    entryTableName

    The name of the entry table.

    entryData

    The entry to add.

    jdbcContext

    The JDBC context to use.

    Definition Classes
    PostgresDialectDialect
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): AnyRef

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

    Definition Classes
    FeedStore
  9. def createEntryTable(entryTableName: String)(implicit jdbcContext: JdbcContext): Unit

    Create an empty feed entry table with a given name.

    Create an empty feed entry table with a given name.

    entryTableName

    The entry table name.

    jdbcContext

    The JDBC context to use.

    Attributes
    protected
    Definition Classes
    Dialect
  10. def createEntryTable(implicit context: JdbcContext): Unit

    Definition Classes
    AbstractJdbcFeedStore
  11. def createEntryTableStatement(entryTableName: String): String

    entryTableName

    The entry table name.

    returns

    the sql statement for the Feed table.

    Attributes
    protected
    Definition Classes
    PostgresDialectDialect
  12. def createEntryTableStatement(): Unit

    Definition Classes
    AbstractJdbcFeedStore
  13. val deser: (String) ⇒ E

  14. def dropEntryTable(entryTableName: String)(implicit jdbcContext: JdbcContext): Unit

    Drop the entry table.

    Drop the entry table.

    Attributes
    protected
    Definition Classes
    PostgresDialectDialect
  15. def dropEntryTable(implicit context: JdbcContext): Unit

    Definition Classes
    AbstractJdbcFeedStore
  16. val entryTableName: String

    The table name for the feed entries, which has to be specified by subclasses.

    The table name for the feed entries, which has to be specified by subclasses.

    Definition Classes
    PgJdbcFeedStoreAbstractJdbcFeedStore
  17. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  18. def feedLink(startId: Long, count: Int, forward: Boolean): Url

    Attributes
    protected
    Definition Classes
    FeedStoreSupport
  19. val feedName: String

  20. implicit val feedParams: FeedParams

    Definition Classes
    AbstractFeedStore
  21. def fetchEntryCountLowerThan(entryTableName: String, sequenceNo: Long, inclusive: Boolean)(implicit jdbcContext: JdbcContext): Long

    Fetch the number of entries with an id lower than a given sequence number.

    Fetch the number of entries with an id lower than a given sequence number.

    entryTableName

    The name of the entry table.

    inclusive

    Indicates whether the given sequence number should be included in the entry count or not.

    jdbcContext

    The JDBC context to use.

    returns

    The number of entries with an id lower than a given sequence number.

    Definition Classes
    PostgresDialectDialect
  22. def fetchFeed(feedName: String)(implicit jdbcContext: JdbcContext): Option[FeedDbModel]

    Fetch a feed model based on the feed name.

    Fetch a feed model based on the feed name.

    feedName

    The feed name.

    jdbcContext

    The JDBC context to use.

    returns

    A feed model wrapped in an option (None if there is no feed model with the given name).

    Definition Classes
    PostgresDialectDialect
  23. def fetchFeedEntries(entryTableName: String, start: Long, count: Int, ascending: Boolean)(implicit jdbcContext: JdbcContext): List[EntryDbModel]

    Fetch entries from an entry table starting at a given index and entry count.

    Fetch entries from an entry table starting at a given index and entry count.

    entryTableName

    The name of the entry table.

    start

    The index of the first entry to fetch.

    count

    The max number of entries to fetch.

    ascending

    The direction of the search: ascending or descending indexes.

    jdbcContext

    The JDBC context to use.

    returns

    An entry list.

    Definition Classes
    PostgresDialectDialect
  24. def fetchMaxEntryId(entryTableName: String)(implicit jdbcContext: JdbcContext): Long

    Fetch the largest entry ID from the database.

    Fetch the largest entry ID from the database.

    entryTableName

    The name of the entry table.

    jdbcContext

    The JDBC context to use.

    returns

    The largest entry id for a given entry table, or -1 if the entry table is empty.

    Definition Classes
    PostgresDialectDialect
  25. def fetchMostRecentFeedEntries(entryTableName: String, count: Int)(implicit jdbcContext: JdbcContext): List[EntryDbModel]

    Fetch the most recent feed entries from an entry table.

    Fetch the most recent feed entries from an entry table.

    entryTableName

    The name of the entry table.

    count

    The max number of entries to fetch.

    jdbcContext

    The JDBC context to use.

    returns

    An entry list.

    Definition Classes
    PostgresDialectDialect
  26. def finalize(): Unit

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

    Attributes
    protected
    Definition Classes
    FeedStoreSupport
  28. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  29. def getFeed(start: Long, pageSize: Int, forward: Boolean)(implicit context: JdbcContext): Option[Feed[E]]

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

    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
    AbstractJdbcFeedStore → AbstractFeedStore
  31. def getHeadOfFeed(pageSize: Int)(implicit context: JdbcContext): Option[Feed[E]]

    Definition Classes
    AbstractFeedStore → FeedStore
  32. def getMostRecentFeedEntries(count: Int)(implicit context: JdbcContext): List[FeedEntry]

    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 of FeedEntries. a FeedEntry is a sequence number and its corresponding entry and sorted by descending sequence number

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

    Definition Classes
    FeedStoreSupport
  34. def getNumberOfEntriesLowerThan(sequenceNo: Long, inclusive: Boolean)(implicit context: JdbcContext): Long

    sequenceNo

    sequence number to match

    inclusive

    if true include the specified sequence number

    returns

    the number of entries in the feed with sequence number lower than specified

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

    Definition Classes
    FeedStoreSupport
  36. final def isInstanceOf[T0]: Boolean

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

    Attributes
    protected
    Definition Classes
    FeedStoreSupport
  38. def maxId(implicit context: JdbcContext): Long

    returns

    The maximum sequence number used in this feed or minId if feed is empty.

    Definition Classes
    AbstractJdbcFeedStore → AbstractFeedStore
  39. def minId(implicit context: JdbcContext): Long

    Definition Classes
    AbstractJdbcFeedStore → AbstractFeedStore
  40. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  43. def open(): Unit

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

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

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

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

    Definition Classes
    FeedStoreSupport
  48. def push(uuid: String, entry: E)(implicit context: JdbcContext): Unit

    Definition Classes
    AbstractJdbcFeedStore → FeedStore
  49. def push(entries: Iterable[E])(implicit context: JdbcContext): Unit

    push a list of entries to the feed

    push a list of entries to the feed

    entries

    the entries to push to the feed

    Definition Classes
    AbstractJdbcFeedStore → FeedStore
  50. def push(entry: E)(implicit context: JdbcContext): Unit

    Definition Classes
    FeedStore
  51. val ser: (E) ⇒ String

  52. def sqlQuery[T](sql: String, maxRows: Option[Int], factory: (ResultSet) ⇒ T)(implicit jdbcContext: JdbcContext): List[T]

    Helper function to execute an SQL query.

    Helper function to execute an SQL query.

    sql

    The SQL query to execute.

    maxRows

    The maximum number of rows to return (only the first maxRows rows are returned).

    jdbcContext

    The JDBC context to use.

    returns

    The result set resulting from executing the query.

    Attributes
    protected
    Definition Classes
    Dialect
  53. def sqlUpdate(sql: String)(implicit jdbcContext: JdbcContext): Int

    Helper function to execute an SQL update statement.

    Helper function to execute an SQL update statement.

    sql

    The SQL update.

    jdbcContext

    The JDBC context to use.

    returns

    The number of rows affected by the update.

    Attributes
    protected
    Definition Classes
    Dialect
  54. def sqlUpdatePepared(sql: String, data: Any*)(implicit jdbcContext: JdbcContext): Int

    Helper function to execute a prepared SQL update statement.

    Helper function to execute a prepared SQL update statement.

    sql

    The prepared SQL update statement containing ? placeholders where data has to be filled in.

    data

    The data to fill into the ? placeholders of the prepared SQL update statement.

    jdbcContext

    The JDBC context to use.

    returns

    The number of rows affected by the update.

    Attributes
    protected
    Definition Classes
    Dialect
  55. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  56. val title: Option[String]

  57. def toFeed(pageSize: Int, minId: Long, entries: List[FeedEntry], previousEntryId: Option[Long], nextEntryId: Option[Long])(implicit feedParams: FeedParams): Option[Feed[E]]

    Definition Classes
    FeedStoreSupport
  58. val url: Url

  59. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from PostgresDialect

Inherited from Dialect

Inherited from AbstractJdbcFeedStore[E]

Inherited from AbstractFeedStore[E, JdbcContext]

Inherited from FeedStoreSupport[E]

Inherited from FeedStore[E, JdbcContext]

Inherited from AnyRef

Inherited from Any

Ungrouped