be.wegenenverkeer.atomium.server.jdbc

PostgresDialect

Related Doc: package jdbc

trait PostgresDialect extends Dialect

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

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 createEntryTableIfNotExists(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.

    Definition Classes
    Dialect
  9. def createEntryTableStatement(entryTableName: String): String

    entryTableName

    The entry table name.

    returns

    the sql statement for the Feed table.

    Definition Classes
    PostgresDialectDialect
  10. def createFeedTableIfNotExists(implicit jdbcContext: JdbcContext): Unit

    Create an empty feed table.

    Create an empty feed table.

    jdbcContext

    The JDBC context to use.

    Definition Classes
    Dialect
  11. def createFeedTableStatement: String

    returns

    the sql statement for the Feed table.

    Definition Classes
    PostgresDialectDialect
  12. def dropEntryTable(entryTableName: String)(implicit jdbcContext: JdbcContext): Unit

    Drop the entry table.

    Drop the entry table.

    Definition Classes
    PostgresDialectDialect
  13. def dropFeedTable(implicit jdbcContext: JdbcContext): Unit

    Drop the feed table.

    Drop the feed table.

    Definition Classes
    PostgresDialectDialect
  14. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  16. 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
  17. 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
  18. 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
  19. 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
  20. 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
  21. def finalize(): Unit

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

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

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

    Definition Classes
    Any
  25. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  28. 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
  29. 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
  30. 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
  31. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  32. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Dialect

Inherited from AnyRef

Inherited from Any

Ungrouped