Class HSqlDbNewsHandler
- java.lang.Object
-
- com.openindex.openestate.tool.news.db.DbNewsHandlerImpl
-
- com.openindex.openestate.tool.news.db.hsql.HSqlDbNewsHandler
-
- All Implemented Interfaces:
DbNewsHandler
public class HSqlDbNewsHandler extends DbNewsHandlerImpl
HSqlDbNewsHandler.- Author:
- Andreas Rudolph
-
-
Field Summary
Fields Modifier and Type Field Description static StringFIELD_ENTRY_AUTHORstatic StringFIELD_ENTRY_CONTENTstatic StringFIELD_ENTRY_IDstatic StringFIELD_ENTRY_LINKstatic StringFIELD_ENTRY_NEWstatic StringFIELD_ENTRY_STICKYstatic StringFIELD_ENTRY_TIMEstatic StringFIELD_ENTRY_TITLEstatic StringFIELD_ENTRY_URIstatic StringFIELD_FEED_ARCHIVEDstatic StringFIELD_FEED_AUTH_METHODstatic StringFIELD_FEED_AUTH_PASSstatic StringFIELD_FEED_AUTH_USERstatic StringFIELD_FEED_DOWNLOADED_ATstatic StringFIELD_FEED_IDstatic StringFIELD_FEED_NAMEstatic StringFIELD_FEED_NOTESstatic StringFIELD_FEED_PUBLISHED_ATstatic StringFIELD_FEED_UPDATE_ENABLEDstatic StringFIELD_FEED_UPDATE_INTERVALstatic StringFIELD_FEED_URLstatic StringPROC_REMOVE_ENTRIESstatic StringPROC_REMOVE_FEEDSstatic StringPROC_SAVE_ENTRIESstatic StringPROC_SAVE_FEEDSstatic StringTABLE_NEWS_ENTRIESstatic StringTABLE_NEWS_FEEDSstatic StringVIEW_ENTRIESstatic StringVIEW_FEEDS
-
Constructor Summary
Constructors Constructor Description HSqlDbNewsHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DbNewsEntry[]getEntries(Connection c, long[] feedIds)DbNewsEntrygetEntry(Connection c, long feedId, String uri)long[]getEntryIds(Connection c, long[] feedIds)long[]getFeedIds(Connection c, Boolean enabled)DbNewsFeed[]getFeeds(Connection c, long[] ids)DbNewsFeed[]getFeeds(Connection c, Boolean updateEnabled)voidremoveEntries(Connection c, long[] ids)voidremoveFeeds(Connection c, long[] ids)voidsaveEntry(Connection c, DbNewsEntry entry)voidsaveFeed(Connection c, DbNewsFeed feed)-
Methods inherited from class com.openindex.openestate.tool.news.db.DbNewsHandlerImpl
getEntries, getEntries, getEntryIds, getEntryIds, getFeed, getFeedIds, getFeeds, removeEntry, removeFeed, removeFeedEntries, removeFeedEntries
-
-
-
-
Field Detail
-
PROC_REMOVE_FEEDS
public static final String PROC_REMOVE_FEEDS
- See Also:
- Constant Field Values
-
PROC_REMOVE_ENTRIES
public static final String PROC_REMOVE_ENTRIES
- See Also:
- Constant Field Values
-
PROC_SAVE_FEEDS
public static final String PROC_SAVE_FEEDS
- See Also:
- Constant Field Values
-
PROC_SAVE_ENTRIES
public static final String PROC_SAVE_ENTRIES
- See Also:
- Constant Field Values
-
VIEW_FEEDS
public static final String VIEW_FEEDS
- See Also:
- Constant Field Values
-
VIEW_ENTRIES
public static final String VIEW_ENTRIES
- See Also:
- Constant Field Values
-
TABLE_NEWS_FEEDS
public static final String TABLE_NEWS_FEEDS
- See Also:
- Constant Field Values
-
FIELD_FEED_ID
public static final String FIELD_FEED_ID
- See Also:
- Constant Field Values
-
FIELD_FEED_NAME
public static final String FIELD_FEED_NAME
- See Also:
- Constant Field Values
-
FIELD_FEED_URL
public static final String FIELD_FEED_URL
- See Also:
- Constant Field Values
-
FIELD_FEED_AUTH_METHOD
public static final String FIELD_FEED_AUTH_METHOD
- See Also:
- Constant Field Values
-
FIELD_FEED_AUTH_USER
public static final String FIELD_FEED_AUTH_USER
- See Also:
- Constant Field Values
-
FIELD_FEED_AUTH_PASS
public static final String FIELD_FEED_AUTH_PASS
- See Also:
- Constant Field Values
-
FIELD_FEED_NOTES
public static final String FIELD_FEED_NOTES
- See Also:
- Constant Field Values
-
FIELD_FEED_ARCHIVED
public static final String FIELD_FEED_ARCHIVED
- See Also:
- Constant Field Values
-
FIELD_FEED_UPDATE_ENABLED
public static final String FIELD_FEED_UPDATE_ENABLED
- See Also:
- Constant Field Values
-
FIELD_FEED_UPDATE_INTERVAL
public static final String FIELD_FEED_UPDATE_INTERVAL
- See Also:
- Constant Field Values
-
FIELD_FEED_DOWNLOADED_AT
public static final String FIELD_FEED_DOWNLOADED_AT
- See Also:
- Constant Field Values
-
FIELD_FEED_PUBLISHED_AT
public static final String FIELD_FEED_PUBLISHED_AT
- See Also:
- Constant Field Values
-
TABLE_NEWS_ENTRIES
public static final String TABLE_NEWS_ENTRIES
- See Also:
- Constant Field Values
-
FIELD_ENTRY_ID
public static final String FIELD_ENTRY_ID
- See Also:
- Constant Field Values
-
FIELD_ENTRY_URI
public static final String FIELD_ENTRY_URI
- See Also:
- Constant Field Values
-
FIELD_ENTRY_TITLE
public static final String FIELD_ENTRY_TITLE
- See Also:
- Constant Field Values
-
FIELD_ENTRY_AUTHOR
public static final String FIELD_ENTRY_AUTHOR
- See Also:
- Constant Field Values
-
FIELD_ENTRY_CONTENT
public static final String FIELD_ENTRY_CONTENT
- See Also:
- Constant Field Values
-
FIELD_ENTRY_LINK
public static final String FIELD_ENTRY_LINK
- See Also:
- Constant Field Values
-
FIELD_ENTRY_TIME
public static final String FIELD_ENTRY_TIME
- See Also:
- Constant Field Values
-
FIELD_ENTRY_NEW
public static final String FIELD_ENTRY_NEW
- See Also:
- Constant Field Values
-
FIELD_ENTRY_STICKY
public static final String FIELD_ENTRY_STICKY
- See Also:
- Constant Field Values
-
-
Method Detail
-
getEntries
public DbNewsEntry[] getEntries(Connection c, long[] feedIds) throws SQLException
- Specified by:
getEntriesin interfaceDbNewsHandler- Specified by:
getEntriesin classDbNewsHandlerImpl- Throws:
SQLException
-
getEntry
public DbNewsEntry getEntry(Connection c, long feedId, String uri) throws SQLException
- Specified by:
getEntryin interfaceDbNewsHandler- Specified by:
getEntryin classDbNewsHandlerImpl- Throws:
SQLException
-
getEntryIds
public long[] getEntryIds(Connection c, long[] feedIds) throws SQLException
- Specified by:
getEntryIdsin interfaceDbNewsHandler- Specified by:
getEntryIdsin classDbNewsHandlerImpl- Throws:
SQLException
-
getFeeds
public DbNewsFeed[] getFeeds(Connection c, long[] ids) throws SQLException
- Specified by:
getFeedsin interfaceDbNewsHandler- Specified by:
getFeedsin classDbNewsHandlerImpl- Throws:
SQLException
-
getFeeds
public DbNewsFeed[] getFeeds(Connection c, Boolean updateEnabled) throws SQLException
- Specified by:
getFeedsin interfaceDbNewsHandler- Specified by:
getFeedsin classDbNewsHandlerImpl- Throws:
SQLException
-
getFeedIds
public long[] getFeedIds(Connection c, Boolean enabled) throws SQLException
- Specified by:
getFeedIdsin interfaceDbNewsHandler- Specified by:
getFeedIdsin classDbNewsHandlerImpl- Throws:
SQLException
-
removeEntries
public void removeEntries(Connection c, long[] ids) throws SQLException
- Specified by:
removeEntriesin interfaceDbNewsHandler- Specified by:
removeEntriesin classDbNewsHandlerImpl- Throws:
SQLException
-
removeFeeds
public void removeFeeds(Connection c, long[] ids) throws SQLException
- Specified by:
removeFeedsin interfaceDbNewsHandler- Specified by:
removeFeedsin classDbNewsHandlerImpl- Throws:
SQLException
-
saveEntry
public void saveEntry(Connection c, DbNewsEntry entry) throws SQLException
- Specified by:
saveEntryin interfaceDbNewsHandler- Specified by:
saveEntryin classDbNewsHandlerImpl- Throws:
SQLException
-
saveFeed
public void saveFeed(Connection c, DbNewsFeed feed) throws SQLException
- Specified by:
saveFeedin interfaceDbNewsHandler- Specified by:
saveFeedin classDbNewsHandlerImpl- Throws:
SQLException
-
-