Jive Forums API (5.5.20.2-oracle) Developer Javadocs

com.jivesoftware.forum.watches
Class WatchSettingsDAOImpl

java.lang.Object
  extended by com.jivesoftware.forum.watches.WatchSettingsDAOImpl
All Implemented Interfaces:
WatchSettingsDAO

public class WatchSettingsDAOImpl
extends java.lang.Object
implements WatchSettingsDAO

DDL:

 CREATE TABLE jiveWatchSettings (
  userID bigint primary key references jiveUser(userID),
  autoWatchNewTopics bigint not null,
  autoWatchReplies bigint not null,
  receiveEmails bigint not null,
  batchFrequency bigint not null,
  lastBatchEmail bigint null);
 


Constructor Summary
WatchSettingsDAOImpl()
           
 
Method Summary
 void deleteSettings(long userID)
           
 WatchSettings getSettings(long userID)
           
 long[] getUsersNotUpdatedAfter(int batchFrequency, java.util.Date updatedAfter)
           
 void putSettings(long userID, WatchSettings settings)
           
 int updateUsersWithBatchEmailDate(int batchFrequency, java.util.Date updatedAfter, java.util.Date newDate)
           
 void updateUserWithBatchEmailDate(long userID, int batchFrequency, java.util.Date updatedAfter, java.util.Date newDate)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WatchSettingsDAOImpl

public WatchSettingsDAOImpl()
Method Detail

getSettings

public WatchSettings getSettings(long userID)
Specified by:
getSettings in interface WatchSettingsDAO

putSettings

public void putSettings(long userID,
                        WatchSettings settings)
Specified by:
putSettings in interface WatchSettingsDAO

deleteSettings

public void deleteSettings(long userID)
Specified by:
deleteSettings in interface WatchSettingsDAO

getUsersNotUpdatedAfter

public long[] getUsersNotUpdatedAfter(int batchFrequency,
                                      java.util.Date updatedAfter)
Specified by:
getUsersNotUpdatedAfter in interface WatchSettingsDAO

updateUserWithBatchEmailDate

public void updateUserWithBatchEmailDate(long userID,
                                         int batchFrequency,
                                         java.util.Date updatedAfter,
                                         java.util.Date newDate)
Specified by:
updateUserWithBatchEmailDate in interface WatchSettingsDAO

updateUsersWithBatchEmailDate

public int updateUsersWithBatchEmailDate(int batchFrequency,
                                         java.util.Date updatedAfter,
                                         java.util.Date newDate)
Specified by:
updateUsersWithBatchEmailDate in interface WatchSettingsDAO

Jive Forums Project Page

Copyright © 1999-2006 Jive Software.