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.
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ChatDataSource
public ChatDataSource(SqlStatement sql,
Database db,
String nRows)
throws SQLException
ChatDataSource
public ChatDataSource(ResultSet rs,
String nRows)
throws SQLException
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