1 40 package com.mvnforum.db; 41 42 import java.sql.Timestamp ; 43 44 import net.myvietnam.mvncore.exception.AssertionException; 45 import net.myvietnam.mvncore.exception.CreateException; 46 import net.myvietnam.mvncore.exception.DatabaseException; 47 import net.myvietnam.mvncore.exception.ForeignKeyNotFoundException; 48 49 public interface MessageStatisticsDAO { 50 51 public static final String TABLE_NAME = DatabaseConfig.TABLE_PREFIX + "MessageStatistics"; 52 53 public void create(int fromID, int toID, Timestamp messageCreationDate, 54 int messageAttachCount, int messageType, int messageOption, int messageStatus) 55 throws CreateException, DatabaseException, ForeignKeyNotFoundException; 56 57 public void delete_inMember(int memberID) 58 throws DatabaseException; 59 60 public int getNumberOfBeans_inFromID(int fromID) 61 throws AssertionException, DatabaseException; 62 63 public int getNumberOfBeans_inToID(int toID) 64 throws AssertionException, DatabaseException; 65 66 public int getNumberOfBeans_inFromID_supportTimestamp(int fromID, Timestamp from, Timestamp to) 67 throws AssertionException, DatabaseException; 68 69 public int getNumberOfBeans_inToID_supportTimestamp(int toID, Timestamp from, Timestamp to) 70 throws AssertionException, DatabaseException; 71 } 72 | Popular Tags |