be.wegenenverkeer.atomium.server.jdbc.legacy

PgJdbcFeedStore

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: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

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

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

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

    Definition Classes
    Any
  6. 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
  7. 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
  8. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  9. def clone(): AnyRef

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

    Definition Classes
    FeedStore
  11. 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
  12. def createEntryTable(implicit context: JdbcContext): Unit

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

    entryTableName

    The entry table name.

    returns

    the sql statement for the Feed table.

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

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

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

    Drop the entry table.

    Drop the entry table.

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

    Definition Classes
    AbstractJdbcFeedStore
  18. 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
  19. final def eq(arg0: AnyRef): Boolean

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

    Attributes
    protected
    Definition Classes
    FeedStoreSupport
  21. val feedName: String

  22. implicit val feedParams: FeedParams

    Definition Classes
    AbstractFeedStore
  23. 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
  24. 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
  25. 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
  26. 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
  27. 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
  28. def finalize(): Unit

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

    Attributes
    protected
    Definition Classes
    FeedStoreSupport
  30. val generator: Generator

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

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

    Definition Classes
    AbstractFeedStore → FeedStore
  33. 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
  34. def getHeadOfFeed(pageSize: Int)(implicit context: JdbcContext): FeedPage[E]

    Definition Classes
    AbstractFeedStore → FeedStore
  35. 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
  36. def getNextLink(id: Long, count: Int, next: Option[Long]): Option[Link]

    Definition Classes
    FeedStoreSupport
  37. 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
  38. def getPreviousLink(id: Long, count: Int, previous: Option[Long]): Option[Link]

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

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

    Attributes
    protected
    Definition Classes
    FeedStoreSupport
  41. 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
  42. def minId(implicit context: JdbcContext): Long

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

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

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

    Definition Classes
    AnyRef
  46. def open(): Unit

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

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

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

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

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

    Definition Classes
    AbstractJdbcFeedStore → FeedStore
  52. 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
  53. def push(entry: E)(implicit context: JdbcContext): Unit

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

  55. 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
  56. 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
  57. 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
  58. final def synchronized[T0](arg0: ⇒ T0): T0

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

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

    Definition Classes
    FeedStoreSupport
  61. val url: Url

  62. final def wait(): Unit

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  64. 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