| net.jforum.dao.PrivateMessageDAO
All known Subclasses: net.jforum.dao.generic.GenericPrivateMessageDAO,
PrivateMessageDAO | public interface PrivateMessageDAO (Code) | | author: Rafael Steil version: $Id: PrivateMessageDAO.java,v 1.8 2007/08/01 22:30:04 rafaelsteil Exp $ |
delete | public void delete(PrivateMessage[] pm, int userId)(Code) | | Deletes a collection of private messages.
Each instance should at least have the private message
id and the owner user id.
Parameters: pm - PrivateMessage[] Parameters: userId - |
selectById | public PrivateMessage selectById(PrivateMessage pm)(Code) | | Gets a PrivateMessage by its id.
Parameters: pm - A PrivateMessage instance containing the pm's idto retrieve The pm contents |
selectFromInbox | public List selectFromInbox(User user)(Code) | | Selects all messages from the user's inbox.
Parameters: user - The user to fetch the messages A List with all messages found. Each entry is a PrivateMessage entry. |
selectFromSent | public List selectFromSent(User user)(Code) | | Selects all messages from the user's sent box.
Parameters: user - The user to fetch the messages A List with all messages found. Each entry is a PrivateMessage entry. |
send | public void send(PrivateMessage pm)(Code) | | Send a new PrivateMessage
Parameters: pm - The pm to add |
updateType | public void updateType(PrivateMessage pm)(Code) | | Update the type of some private message.
You should pass as argument a PrivateMessage instance
with the pm's id and the new message status. There is no need to
fill the other members.
Parameters: pm - The instance to update |
|
|