com.softwarereality.forum
Interface ForumHome

All Known Implementing Classes:
JdbcForumHome

public interface ForumHome

THIS FILE IS CODE GENERATED. ForumHome.java

See Also:
Forum, ForumSession, ForumValidator

Method Summary
 int countByQuery(java.lang.Object query)
          Count the Beans using a String.
 Forum create(Forum forum)
          Create just this Forum in the store.
 java.util.Iterator findByAll()
          Find All the 'available' 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 String.
 java.util.Iterator findByQuery(java.lang.Object query, int maxRows)
          Find the Beans using a Query Object, with a maximum return row count.
 void load(Forum forum)
          Reload the Forum based on it's primaryKey.
 void remove(Forum forumID)
          Remove just this Forum in the store.
 void store(Forum forum)
          Store just this Forum in the store.
 

Method Detail

findByAll

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

Returns:
Iterator
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 String.

Parameters:
query - A Query Object.toString(), usually an SQL query.
Returns:
Iterator
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 Query Object, with a maximum return row count.

Parameters:
query - A Query Object, usually an SQL String
maxRows - The maximum number of rows to return.
Returns:
Iterator
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 String.

Parameters:
query - A Query Object
Returns:
int the number of matching beans
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 Forum based on it's primaryKey.

Throws:
LoadException - If there was a problem loading the Bean.
ValidationException - If there was a problem validating the Bean.

create

public Forum create(Forum forum)
             throws CreateException,
                    ValidationException
Create just this Forum in the store.

Throws:
CreateException - If there was a problem creating the Bean.
ValidationException - If there was a problem validating the Bean.

store

public void store(Forum forum)
           throws StoreException,
                  ValidationException
Store just this Forum in the store.

Throws:
StoreException - If there was a problem storing the Bean.
ValidationException - If there was a problem validating the Bean.

remove

public void remove(Forum forumID)
            throws RemoveException,
                   ValidationException
Remove just this Forum in the store.

Throws:
RemoveException - If there was a problem removing the Bean.
ValidationException - If there was a problem validating the Bean.