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$
- Author:
- Artur Hefczyc
Fields inherited from class tigase.util.JDBCAbstract |
DERBY_CONNVALID_QUERY, JDBC_CONNVALID_QUERY |
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 SQLException
initPreparedStatements
method initializes internal
database connection variables such as prepared statements.
- Overrides:
initPreparedStatements
in class tigase.util.JDBCAbstract
- Throws:
SQLException
- if an error occurs on database query.
initRepository
public void initRepository(String conn_str,
Map<String,String> params)
throws 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:
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(Packet message,
boolean full_content,
String defLang)
throws SQLException
- Throws:
SQLException
getMessages
public void getMessages(String jid,
String with_jid,
Date timestamp,
int limit)
Copyright © 2001-2006 Tigase Developers Team. All rights Reserved.