com.arsdigita.acs.chat
Class ChatDataSource

java.lang.Object
  |
  +--com.arsdigita.acs.Selection
        |
        +--com.arsdigita.acs.chat.ChatDataSource
All Implemented Interfaces:
DataSource

public class ChatDataSource
extends Selection

This DataSource returns the first N messages from the results of the query. N is determined by looking in the parameters file under NShortMessages, NMediumMessages, or NLongMessages.


Fields inherited from class com.arsdigita.acs.Selection
ctr, db, rs, rsmd
 
Constructor Summary
ChatDataSource(ResultSet rs, String nRows)
           
ChatDataSource(SqlStatement sql, Database db, String nRows)
           
 
Method Summary
 boolean canDisplayMore()
           
 String getCreationUserId()
           
 String getFilteredMsg()
           
 String getFirstNames()
           
 String getLastName()
           
 String getTime()
           
 boolean isSystemNote()
           
 boolean next()
          Advances to the next row in the data source, if there is one.
 
Methods inherited from class com.arsdigita.acs.Selection
contains, dumpBLOB, freeze, get, getBLOB, keys, rownum
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChatDataSource

public ChatDataSource(SqlStatement sql,
                      Database db,
                      String nRows)
               throws SQLException

ChatDataSource

public ChatDataSource(ResultSet rs,
                      String nRows)
               throws SQLException
Method Detail

next

public boolean next()
             throws DataSourceException
Description copied from class: Selection
Advances to the next row in the data source, if there is one.
Overrides:
next in class Selection
Following copied from class: com.arsdigita.acs.Selection
Returns:
true; or false if there are no more elements.

isSystemNote

public boolean isSystemNote()

getFirstNames

public String getFirstNames()

getLastName

public String getLastName()

getTime

public String getTime()

getFilteredMsg

public String getFilteredMsg()

getCreationUserId

public String getCreationUserId()

canDisplayMore

public boolean canDisplayMore()
Returns:
true if there are more messages than requested