com.softwarereality.forum
Interface MessageSession

All Known Implementing Classes:
JdbcMessageSession

public interface MessageSession

THIS FILE IS CODE GENERATED. MessageSession.java

See Also:
Message, MessageHome, MessageValidator

Method Summary
 int countByQuery(java.lang.Object query)
          Count the Beans using a Object.
 java.util.Iterator findByAll()
          Find All the beans.
 java.util.Iterator findByForum(java.lang.Object forumID)
          Find the Message By Forum( java.lang.Object )
 Message findByPrimaryKey(java.lang.Object msgID)
          Find the Message By PrimaryKey( java.lang.Object )
 java.util.Iterator findByQuery(java.lang.Object query)
          Find the Beans using a Object.
 java.util.Iterator findByQuery(java.lang.Object query, int maxRows)
          Find the Beans using a String, with a max row count.
 void load(Message message)
          Reload the bean, and any dependent beans from the store.
 void remove(Message message)
          Remove the bean, and any dependent beans from the store.
 void save(Message message)
          Create or Save the bean, and any dependent beans to the store.
 

Method Detail

findByAll

public java.util.Iterator findByAll()
                             throws FinderException,
                                    ValidationException
Find All the beans.

Returns:
Iterator The Beans that were found.
Throws:
FinderException - If there was a problem finding any of the beans.
ValidationException - If there was a problem validating any of the beans.

findByForum

public java.util.Iterator findByForum(java.lang.Object forumID)
                               throws FinderException,
                                      ValidationException
Find the Message By Forum( java.lang.Object )

Returns:
Iterator The Bean/s that was found.
Throws:
FinderException - If there was a problem finding any of the beans.
ValidationException - If there was a problem validating any of the beans.

findByPrimaryKey

public Message findByPrimaryKey(java.lang.Object msgID)
                         throws FinderException,
                                ValidationException
Find the Message By PrimaryKey( java.lang.Object )

Returns:
Message The Bean/s that was found.
Throws:
FinderException - If there was a problem finding any of the beans.
ValidationException - If there was a problem validating any of the beans.

findByQuery

public java.util.Iterator findByQuery(java.lang.Object query)
                               throws FinderException,
                                      ValidationException
Find the Beans using a Object.

Parameters:
query - A Query Object
Returns:
Iterator The Beans that were found.
Throws:
FinderException - If there was a problem finding any of the beans.
ValidationException - If there was a problem validating any of the beans.

findByQuery

public java.util.Iterator findByQuery(java.lang.Object query,
                                      int maxRows)
                               throws FinderException,
                                      ValidationException
Find the Beans using a String, with a max row count.

Parameters:
query - A Query String
maxRows - The maximum number of rows to return.
Returns:
Iterator The Beans that were found.
Throws:
FinderException - If there was a problem finding any of the beans.
ValidationException - If there was a problem validating any of the beans.

countByQuery

public int countByQuery(java.lang.Object query)
                 throws FinderException,
                        ValidationException
Count the Beans using a Object.

Parameters:
query - A Query Objectm ususally sSQL
Throws:
FinderException - If there was a problem finding any of the beans.
ValidationException - If there was a problem validating any of the beans.

load

public void load(Message message)
          throws LoadException,
                 ValidationException
Reload the bean, and any dependent beans from the store.

Throws:
LoadException - If there was a problem loading any of the beans.
ValidationException - If there was a problem validating any of the beans.

save

public void save(Message message)
          throws CreateException,
                 StoreException,
                 RemoveException,
                 ValidationException
Create or Save the bean, and any dependent beans to the store.

Throws:
CreateException - If there was a problem creating any of the beans.
StoreException - If there was a problem storing any of the beans.
ValidationException - If there was a problem validating any of the beans.
RemoveException

remove

public void remove(Message message)
            throws RemoveException,
                   StoreException,
                   ValidationException
Remove the bean, and any dependent beans from the store.

Throws:
RemoveException - If there was a problem removing any of the beans.
ValidationException - If there was a problem validating any of the beans.
StoreException