com.softwarereality.forum
Interface ForumSession

All Known Implementing Classes:
JdbcForumSession

public interface ForumSession

THIS FILE IS CODE GENERATED. ForumSession.java

See Also:
Forum, ForumHome, ForumValidator

Method Summary
 int countByQuery(java.lang.Object query)
          Count the Beans using a Object.
 java.util.Iterator findByAll()
          Find All the beans.
 Forum findByPrimaryKey(java.lang.Object forumID)
          Find the Forum 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(Forum forum)
          Reload the bean, and any dependent beans from the store.
 void remove(Forum forum)
          Remove the bean, and any dependent beans from the store.
 void save(Forum forum)
          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.

findByPrimaryKey

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

Returns:
Forum 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(Forum forum)
          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(Forum forum)
          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(Forum forum)
            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