com.softwarereality.forum.jdbc
Class JdbcForumHome

java.lang.Object
  extended byJdbcHome
      extended bycom.softwarereality.forum.jdbc.JdbcForumHome
All Implemented Interfaces:
ForumHome

public class JdbcForumHome
extends JdbcHome
implements ForumHome

THIS FILE IS CODE GENERATED. JdbcForumHome.java

See Also:
Forum, LazyForumBean, ForumHome, JdbcForumSession, ForumValidator, Serialized Form

Field Summary
static java.lang.String COUNT
           
static java.lang.String DELETE
           
static java.lang.String FIND_BY_PRIMARY_KEY
           
static java.lang.String INSERT
           
static java.lang.String LOAD
           
static java.lang.String SELECT
           
static java.lang.String UPDATE
           
 
Constructor Summary
JdbcForumHome()
          Construct a fully qualified JdbcForumHome
 
Method Summary
 int countByQuery(java.lang.Object query)
          Count the Beans using a String.
 Bean create(Bean bean)
           
 void delete(java.sql.PreparedStatement statement, Bean bean)
           
 java.lang.String filterFind(java.lang.String name, java.lang.String sql)
          Filter the Find
 Bean findBeanByPrimaryKey(java.lang.Object primaryKey)
           
 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 insert(java.sql.PreparedStatement statement, Bean bean)
           
 void load(Bean bean)
          com.javelin.beans.BeanHome#load( com.javelin.beans.Bean )
 void remove(Bean forum)
           
 Bean select(java.sql.ResultSet resultSet, Bean bean)
           
 void setClassContext(ClassContext classContext)
          Set the Context and update the SQL and cache.
 void store(Bean bean)
           
 void update(java.sql.PreparedStatement statement, Bean bean)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.softwarereality.forum.ForumHome
create, load, remove, store
 

Field Detail

SELECT

public static java.lang.String SELECT

FIND_BY_PRIMARY_KEY

public static final java.lang.String FIND_BY_PRIMARY_KEY

COUNT

public static java.lang.String COUNT

LOAD

public static java.lang.String LOAD

INSERT

public static java.lang.String INSERT

UPDATE

public static java.lang.String UPDATE

DELETE

public static java.lang.String DELETE
Constructor Detail

JdbcForumHome

public JdbcForumHome()
Construct a fully qualified JdbcForumHome

Method Detail

filterFind

public java.lang.String filterFind(java.lang.String name,
                                   java.lang.String sql)
                            throws ValidationException
Filter the Find

Throws:
ValidationException
See Also:
com.javelin.beans.jdbc.JdbcHome#filterFind( java.lang.String, java.lang.String )

setClassContext

public void setClassContext(ClassContext classContext)
Set the Context and update the SQL and cache.


findByAll

public java.util.Iterator findByAll()
                             throws FinderException,
                                    ValidationException
Description copied from interface: ForumHome
Find All the 'available' beans.

Specified by:
findByAll in interface ForumHome
Returns:
Iterator
Throws:
FinderException
ValidationException
See Also:
com.softwarereality.forum.ForumHome#findByAll( java.lang.Object )

findBeanByPrimaryKey

public Bean findBeanByPrimaryKey(java.lang.Object primaryKey)
                          throws FinderException,
                                 ValidationException
Throws:
FinderException
ValidationException
See Also:
com.javelin.beans.BeanHome#findBeanByPrimaryKey( java.lang.Object )

findByPrimaryKey

public Forum findByPrimaryKey(java.lang.Object forumID)
                       throws FinderException,
                              ValidationException
Description copied from interface: ForumHome
Find the Forum By PrimaryKey( java.lang.Object )

Specified by:
findByPrimaryKey in interface ForumHome
Returns:
Forum The Bean/s that was found.
Throws:
FinderException
ValidationException
See Also:
ForumHome.findByPrimaryKey( java.lang.Object )

findByQuery

public java.util.Iterator findByQuery(java.lang.Object query)
                               throws FinderException,
                                      ValidationException
Description copied from interface: ForumHome
Find the Beans using a String.

Specified by:
findByQuery in interface ForumHome
Parameters:
query - A Query Object.toString(), usually an SQL query.
Returns:
Iterator
Throws:
FinderException
ValidationException
See Also:
ForumHome.findByQuery( java.lang.Object )

findByQuery

public java.util.Iterator findByQuery(java.lang.Object query,
                                      int maxRows)
                               throws FinderException,
                                      ValidationException
Description copied from interface: ForumHome
Find the Beans using a Query Object, with a maximum return row count.

Specified by:
findByQuery in interface ForumHome
Parameters:
query - A Query Object, usually an SQL String
maxRows - The maximum number of rows to return.
Returns:
Iterator
Throws:
FinderException
ValidationException
See Also:
ForumHome.findByQuery( java.lang.Object , int )

countByQuery

public int countByQuery(java.lang.Object query)
                 throws FinderException,
                        ValidationException
Description copied from interface: ForumHome
Count the Beans using a String.

Specified by:
countByQuery in interface ForumHome
Parameters:
query - A Query Object
Returns:
int the number of matching beans
Throws:
FinderException
ValidationException
See Also:
ForumHome.countByQuery( java.lang.Object )

load

public void load(Bean bean)
          throws LoadException,
                 ValidationException
com.javelin.beans.BeanHome#load( com.javelin.beans.Bean )

Throws:
LoadException
ValidationException

select

public Bean select(java.sql.ResultSet resultSet,
                   Bean bean)
            throws java.sql.SQLException,
                   FinderException,
                   ValidationException
Throws:
java.sql.SQLException
FinderException
ValidationException
See Also:
com.javelin.beans.jdbc.JdbcBeanHome#select( java.sql.ResultSet, com.javelin.beans.Bean )

create

public Bean create(Bean bean)
            throws CreateException,
                   ValidationException
Throws:
CreateException
ValidationException
See Also:
com.javelin.beans.BeanHome#create( com.javelin.beans.Bean )

insert

public void insert(java.sql.PreparedStatement statement,
                   Bean bean)
            throws java.sql.SQLException,
                   CreateException,
                   ValidationException
Throws:
java.sql.SQLException
CreateException
ValidationException
See Also:
com.softwarereality.forum.ForumHome#insert( java.sql.PreparedStatement, com.javelin.beans.Bean )

store

public void store(Bean bean)
           throws StoreException,
                  ValidationException
Throws:
StoreException
ValidationException
See Also:
com.javelin.beans.BeanHome#store( com.javelin.beans.Bean )

update

public void update(java.sql.PreparedStatement statement,
                   Bean bean)
            throws java.sql.SQLException,
                   StoreException,
                   ValidationException
Throws:
java.sql.SQLException
StoreException
ValidationException
See Also:
com.javelin.bean.BeanHome#update( java.sql.PreparedStatement statement, com.javelin.beans.Bean )

remove

public void remove(Bean forum)
            throws RemoveException,
                   ValidationException
Throws:
RemoveException
ValidationException
See Also:
#remove( com.javelin.beans.Bean )

delete

public void delete(java.sql.PreparedStatement statement,
                   Bean bean)
            throws java.sql.SQLException,
                   RemoveException,
                   ValidationException
Throws:
java.sql.SQLException
RemoveException
ValidationException
See Also:
com.javelin.beans.jdbc.JdbcBeanHome#delete( java.sql.PreparedStatement statement, com.javelin.beans.Bean )