| tigase.muc.history.DerbySqlHistoryProvider |
public static final String |
ADD_MESSAGE_QUERY |
"insert into muc_history (room_name, event_type, timestamp, sender_jid, sender_nickname, body) values (?, 1, ?, ?, ?, ?)" |
public static final String |
DELETE_MESSAGES_QUERY |
"delete from muc_history where room_name=?" |
public static final String |
GET_MESSAGES_MAXSTANZAS_QUERY |
"select room_name, event_type, timestamp, sender_jid, sender_nickname, body from muc_history where room_name=? order by timestamp desc" |
public static final String |
GET_MESSAGES_SINCE_QUERY |
"select room_name, event_type, timestamp, sender_jid, sender_nickname, body from muc_history where room_name=? and timestamp >= ? order by timestamp desc" |
| tigase.muc.history.MySqlHistoryProvider |
public static final String |
ADD_MESSAGE_QUERY |
"insert into muc_history (room_name, event_type, timestamp, sender_jid, sender_nickname, body, public_event) values (?, 1, ?, ?, ?, ?, ?)" |
public static final String |
DELETE_MESSAGES_QUERY |
"delete from muc_history where room_name=?" |
public static final String |
GET_MESSAGES_MAXSTANZAS_QUERY |
"select room_name, event_type, timestamp, sender_jid, sender_nickname, body from (select * from muc_history where room_name=? order by timestamp desc limit ? ) AS t order by t.timestamp" |
public static final String |
GET_MESSAGES_SINCE_QUERY |
"select room_name, event_type, timestamp, sender_jid, sender_nickname, body from (select * from muc_history where room_name=? and timestamp >= ? order by timestamp desc limit ? ) AS t order by t.timestamp" |
| tigase.muc.history.PostgreSqlHistoryProvider |
public static final String |
ADD_MESSAGE_QUERY |
"insert into muc_history (room_name, event_type, timestamp, sender_jid, sender_nickname, body, public_event) values (?, 1, ?, ?, ?, ?, ?)" |
public static final String |
DELETE_MESSAGES_QUERY |
"delete from muc_history where room_name=?" |
public static final String |
GET_MESSAGES_MAXSTANZAS_QUERY |
"select room_name, event_type, timestamp, sender_jid, sender_nickname, body from (select * from muc_history where room_name=? order by timestamp desc limit ? ) AS t order by t.timestamp" |
public static final String |
GET_MESSAGES_SINCE_QUERY |
"select room_name, event_type, timestamp, sender_jid, sender_nickname, body from (select * from muc_history where room_name=? and timestamp >= ? order by timestamp desc limit ? ) AS t order by t.timestamp" |