tigase.xmpp.impl.xep0136
Class MessageArchiveDB
java.lang.Object
tigase.xmpp.impl.xep0136.MessageArchiveDB
public class MessageArchiveDB
- extends Object
Describe class MessageArchiveDB here.
Created: Fri Feb 29 22:34:29 2008
- Version:
- $Rev: 2996 $
- Author:
- Artur Hefczyc
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MessageArchiveDB
public MessageArchiveDB()
getMessages
public void getMessages(String jid,
String with_jid,
Date timestamp,
int limit)
- Method description
- Parameters:
jid - with_jid - timestamp - limit -
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.
- Parameters:
conn_str - a String value of database connection string.
The string must also contain database user name and password if required
for connection.params -
- 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
- Method description
- Parameters:
message - full_content - defLang -
- Throws:
SQLException
Copyright © 2012 Tigase. All Rights Reserved.