public class JDBCUnifiedArchiveRepository extends tigase.archive.db.JDBCMessageArchiveRepository<QueryCriteria> implements UnifiedArchiveRepository<tigase.db.DataRepository>, tigase.db.util.RepositoryVersionAware
| Modifier and Type | Class and Description |
|---|---|
protected static class |
JDBCUnifiedArchiveRepository.Item |
static class |
JDBCUnifiedArchiveRepository.RecentItem |
UnifiedArchiveRepository.CallCondition, UnifiedArchiveRepository.Typetigase.archive.db.MessageArchiveRepository.CollectionHandler<Q extends tigase.xmpp.mam.Query>, tigase.archive.db.MessageArchiveRepository.Direction| Modifier and Type | Field and Description |
|---|---|
protected static String |
OFFLINE_STORE_KEY |
ADD_MESSAGE_QUERY, ADD_TAG_TO_MESSAGE_QUERY, data_repo, DELETE_EXPIRED_MESSAGES_QUERY, GET_COLLECTIONS_COUNT_QUERY, GET_COLLECTIONS_QUERY, GET_MESSAGE_POSITION_QUERY, GET_MESSAGES_COUNT_QUERY, GET_MESSAGES_QUERY, GET_TAGS_FOR_USER_COUNT_QUERY, GET_TAGS_FOR_USER_QUERY, REMOVE_MESSAGES_QUERY| Constructor and Description |
|---|
JDBCUnifiedArchiveRepository() |
| Modifier and Type | Method and Description |
|---|---|
protected int |
addMessageAdditionalInfo(PreparedStatement stmt,
int i,
Map<String,Object> additionalData) |
void |
archiveMessage(tigase.xmpp.jid.BareJID owner,
tigase.xmpp.jid.JID buddy,
tigase.archive.db.MessageArchiveRepository.Direction direction,
Date timestamp,
tigase.xml.Element msg,
Set<String> tags) |
protected byte[] |
generateHashOfMessage(tigase.archive.db.MessageArchiveRepository.Direction direction,
tigase.xml.Element msg,
Date ts,
Map<String,Object> additionalData) |
protected tigase.db.DataRepository |
getDataRepository() |
protected void |
initPreparedStatements(tigase.db.DataRepository data_repo) |
protected JDBCUnifiedArchiveRepository.Item |
newItemInstance() |
QueryCriteria |
newQuery() |
Stream<? extends UnifiedArchiveRepository.Item> |
queryRecents(tigase.xmpp.jid.BareJID ownerJid,
Date start,
Date end,
Set<UnifiedArchiveRepository.Type> types,
Set<UnifiedArchiveRepository.CallCondition> callConditions,
tigase.xmpp.rsm.RSM rsm) |
protected int |
queryRecentsCount(tigase.xmpp.jid.BareJID ownerJid,
Date start,
Date end,
Set<UnifiedArchiveRepository.Type> types,
Set<UnifiedArchiveRepository.CallCondition> callConditions) |
protected int |
setQueryParams(PreparedStatement stmt,
QueryCriteria crit,
Boolean groupByType,
int i) |
archiveMessage, convertToTimestamp, deleteExpiredMessages, getTags, queryCollections, queryItems, removeItems, setCountQueryParams, setDataSource, setItemsQueryParamscalculateOffsetAndPositionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprotected static final String OFFLINE_STORE_KEY
public void archiveMessage(tigase.xmpp.jid.BareJID owner,
tigase.xmpp.jid.JID buddy,
tigase.archive.db.MessageArchiveRepository.Direction direction,
Date timestamp,
tigase.xml.Element msg,
Set<String> tags)
archiveMessage in interface tigase.archive.db.MessageArchiveRepository<QueryCriteria,tigase.db.DataRepository>archiveMessage in class tigase.archive.db.JDBCMessageArchiveRepository<QueryCriteria>public QueryCriteria newQuery()
newQuery in interface tigase.xmpp.mam.MAMRepository<QueryCriteria,tigase.xmpp.mam.MAMRepository.Item>newQuery in class tigase.archive.db.JDBCMessageArchiveRepository<QueryCriteria>public Stream<? extends UnifiedArchiveRepository.Item> queryRecents(tigase.xmpp.jid.BareJID ownerJid, Date start, Date end, Set<UnifiedArchiveRepository.Type> types, Set<UnifiedArchiveRepository.CallCondition> callConditions, tigase.xmpp.rsm.RSM rsm) throws tigase.db.TigaseDBException
queryRecents in interface UnifiedArchiveRepository<tigase.db.DataRepository>tigase.db.TigaseDBExceptionprotected int addMessageAdditionalInfo(PreparedStatement stmt, int i, Map<String,Object> additionalData) throws SQLException
addMessageAdditionalInfo in class tigase.archive.db.JDBCMessageArchiveRepository<QueryCriteria>SQLExceptionprotected int queryRecentsCount(tigase.xmpp.jid.BareJID ownerJid,
Date start,
Date end,
Set<UnifiedArchiveRepository.Type> types,
Set<UnifiedArchiveRepository.CallCondition> callConditions)
throws SQLException
SQLExceptionprotected void initPreparedStatements(tigase.db.DataRepository data_repo)
throws SQLException
initPreparedStatements in class tigase.archive.db.JDBCMessageArchiveRepository<QueryCriteria>SQLExceptionprotected JDBCUnifiedArchiveRepository.Item newItemInstance()
newItemInstance in class tigase.archive.db.JDBCMessageArchiveRepository<QueryCriteria>protected int setQueryParams(PreparedStatement stmt, QueryCriteria crit, Boolean groupByType, int i) throws SQLException
setQueryParams in class tigase.archive.db.JDBCMessageArchiveRepository<QueryCriteria>SQLExceptionprotected tigase.db.DataRepository getDataRepository()
protected byte[] generateHashOfMessage(tigase.archive.db.MessageArchiveRepository.Direction direction,
tigase.xml.Element msg,
Date ts,
Map<String,Object> additionalData)
generateHashOfMessage in class tigase.archive.db.AbstractMessageArchiveRepository<QueryCriteria,tigase.db.DataRepository>Copyright © 2015–2019 "Tigase, Inc.". All rights reserved.