com.softwarereality.forum.jdbc
Class JdbcMessageSession

java.lang.Object
  extended byJdbcSession
      extended bycom.softwarereality.forum.jdbc.JdbcMessageSession
All Implemented Interfaces:
MessageSession

public class JdbcMessageSession
extends JdbcSession
implements MessageSession

THIS FILE IS CODE GENERATED. JdbcMessageSession.java

See Also:
Message, LazyMessageBean, MessageSession, JdbcMessageHome, MessageValidator, Serialized Form

Field Summary
protected  MessageHome messageHome
           
 
Constructor Summary
JdbcMessageSession()
          Construct an unqualified qualified JdbcMessageSession.
 
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.
protected  MessageHome getMessageHome()
          Get the MessageHome from the ForumContext.
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

messageHome

protected MessageHome messageHome
Constructor Detail

JdbcMessageSession

public JdbcMessageSession()
Construct an unqualified qualified JdbcMessageSession.

Method Detail

getMessageHome

protected MessageHome getMessageHome()
Get the MessageHome from the ForumContext.


findByAll

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

Specified by:
findByAll in interface MessageSession
Returns:
Iterator The Beans that were found.
Throws:
FinderException
ValidationException
See Also:
com.softwarereality.forum.MessageSessionfindByAll( java.lang.Object )

findByForum

public java.util.Iterator findByForum(java.lang.Object forumID)
                               throws FinderException,
                                      ValidationException
Description copied from interface: MessageSession
Find the Message By Forum( java.lang.Object )

Specified by:
findByForum in interface MessageSession
Returns:
Iterator The Bean/s that was found.
Throws:
FinderException
ValidationException
See Also:
)

findByPrimaryKey

public Message findByPrimaryKey(java.lang.Object msgID)
                         throws FinderException,
                                ValidationException
Description copied from interface: MessageSession
Find the Message By PrimaryKey( java.lang.Object )

Specified by:
findByPrimaryKey in interface MessageSession
Returns:
Message The Bean/s that was found.
Throws:
FinderException
ValidationException
See Also:
)

findByQuery

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

Specified by:
findByQuery in interface MessageSession
Parameters:
query - A Query Object
Returns:
Iterator The Beans that were found.
Throws:
FinderException
ValidationException
See Also:
MessageSession.findByQuery( java.lang.Object )

findByQuery

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

Specified by:
findByQuery in interface MessageSession
Parameters:
query - A Query String
maxRows - The maximum number of rows to return.
Returns:
Iterator The Beans that were found.
Throws:
FinderException
ValidationException
See Also:
MessageSession.findByQuery( java.lang.Object , int )

countByQuery

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

Specified by:
countByQuery in interface MessageSession
Parameters:
query - A Query Objectm ususally sSQL
Throws:
FinderException
ValidationException
See Also:
MessageSession.countByQuery( java.lang.Object )

load

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

Specified by:
load in interface MessageSession
Throws:
LoadException
ValidationException
See Also:
MessageSession.load( com.softwarereality.forum.Message )

save

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

Specified by:
save in interface MessageSession
Throws:
CreateException
StoreException
RemoveException
ValidationException
See Also:
MessageSession.save( com.softwarereality.forum.Message )

remove

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

Specified by:
remove in interface MessageSession
Throws:
RemoveException
StoreException
ValidationException
See Also:
MessageSession.remove( com.softwarereality.forum.Message )