tigase.xmpp.impl.xep0136
Class MessageArchiveDB
java.lang.Object
tigase.util.JDBCAbstract
tigase.xmpp.impl.xep0136.MessageArchiveDB
public class MessageArchiveDB
- extends tigase.util.JDBCAbstract
Describe class MessageArchiveDB here.
Created: Fri Feb 29 22:34:29 2008
- Version:
- $Rev: 877 $
- Author:
- Artur Hefczyc
|
Method Summary |
void |
getMessages(java.lang.String jid,
java.lang.String with_jid,
java.util.Date timestamp,
int limit)
|
protected void |
initPreparedStatements()
initPreparedStatements method initializes internal
database connection variables such as prepared statements. |
void |
initRepository(java.lang.String conn_str,
java.util.Map<java.lang.String,java.lang.String> params)
initRepository method is doing lazy initialization with database. |
void |
saveMessage(tigase.xml.Element message,
boolean full_content,
java.lang.String defLang)
|
| Methods inherited from class tigase.util.JDBCAbstract |
checkConnection, getResourceUri, prepareCallable, prepareStatement, release, setResourceUri |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MessageArchiveDB
public MessageArchiveDB()
initPreparedStatements
protected void initPreparedStatements()
throws java.sql.SQLException
initPreparedStatements method initializes internal
database connection variables such as prepared statements.
- Overrides:
initPreparedStatements in class tigase.util.JDBCAbstract
- Throws:
java.sql.SQLException - if an error occurs on database query.
initRepository
public void initRepository(java.lang.String conn_str,
java.util.Map<java.lang.String,java.lang.String> params)
throws java.sql.SQLException
initRepository method is doing lazy initialization with database.
Connection to database will be established during the first authentication
request.
- Specified by:
initRepository in class tigase.util.JDBCAbstract
- Parameters:
conn_str - a String value of database connection string.
The string must also contain database user name and password if required
for connection.
- Throws:
java.sql.SQLException - if an error occurs during access database. It won't
happen however as in this method we do simple variable assigment.
saveMessage
public void saveMessage(tigase.xml.Element message,
boolean full_content,
java.lang.String defLang)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
getMessages
public void getMessages(java.lang.String jid,
java.lang.String with_jid,
java.util.Date timestamp,
int limit)
Copyright © 2009 Tigase. All Rights Reserved.