Add a feed definition to the feed table.
Add a feed definition to the feed table.
The feed to add.
The JDBC context to use.
The id for the newly added feed.
Add an entry to an entry table.
Add an entry to an entry table.
The name of the entry table.
The entry to add.
The JDBC context to use.
Create an empty feed entry table with a given name.
Create an empty feed entry table with a given name.
The entry table name.
The JDBC context to use.
The entry table name.
the sql statement for the Feed table.
Drop the entry table.
Drop the entry table.
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.
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.
The name of the entry table.
Indicates whether the given sequence number should be included in the entry count or not.
The JDBC context to use.
The number of entries with an id lower than a given sequence number.
Fetch a feed model based on the feed name.
Fetch a feed model based on the feed name.
The feed name.
The JDBC context to use.
A feed model wrapped in an option (None if there is no feed model with the given name).
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.
The name of the entry table.
The index of the first entry to fetch.
The max number of entries to fetch.
The direction of the search: ascending or descending indexes.
The JDBC context to use.
An entry list.
Fetch the largest entry ID from the database.
Fetch the largest entry ID from the database.
The name of the entry table.
The JDBC context to use.
The largest entry id for a given entry table, or -1 if the entry table is empty.
Fetch the most recent feed entries from an entry table.
Fetch the most recent feed entries from an entry table.
The name of the entry table.
The max number of entries to fetch.
The JDBC context to use.
An entry list.
Retrieves entries with their sequence numbers from the feed
Retrieves entries with their sequence numbers from the feed
the starting entry (inclusive), MUST be returned in the entries
the number of entries to return
if true return entries with sequence numbers >= start in ascending order else return entries with sequence numbers <= start in descending order
the corresponding entries sorted accordingly
Retrieves the most recent entries from the feedstore sorted in descending order
Retrieves the most recent entries from the feedstore sorted in descending order
the amount of recent entries to return
a list of FeedEntries. a FeedEntry is a sequence number and its corresponding entry and sorted by descending sequence number
sequence number to match
if true include the specified sequence number
the number of entries in the feed with sequence number lower than specified
The maximum sequence number used in this feed or minId if feed is empty.
push a list of entries to the feed
push a list of entries to the feed
the entries to push to the feed
Helper function to execute an SQL query.
Helper function to execute an SQL query.
The SQL query to execute.
The maximum number of rows to return (only the first maxRows rows are returned).
The JDBC context to use.
The result set resulting from executing the query.
Helper function to execute an SQL update statement.
Helper function to execute an SQL update statement.
The SQL update.
The JDBC context to use.
The number of rows affected by the update.
Helper function to execute a prepared SQL update statement.
Helper function to execute a prepared SQL update statement.
The prepared SQL update statement containing ? placeholders where data has to be filled in.
The data to fill into the ? placeholders of the prepared SQL update statement.
The JDBC context to use.
The number of rows affected by the update.