Package tigase.archive.db
Class AbstractMessageArchiveRepository<Q extends Query,DS extends tigase.db.DataSource>
- java.lang.Object
-
- tigase.archive.db.AbstractMessageArchiveRepository<Q,DS>
-
- All Implemented Interfaces:
MessageArchiveRepository<Q,DS>,tigase.db.DataSourceAware<DS>,tigase.xmpp.mam.MAMRepository<Q,tigase.xmpp.mam.MAMRepository.Item>
- Direct Known Subclasses:
JDBCMessageArchiveRepository
public abstract class AbstractMessageArchiveRepository<Q extends Query,DS extends tigase.db.DataSource> extends Object implements MessageArchiveRepository<Q,DS>
AbstractMessageArchiveRepository contains methods commonly used by other implementations to eliminate code multiplication.- Author:
- andrzej
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface tigase.xmpp.mam.MAMRepository
tigase.xmpp.mam.MAMRepository.ItemHandler<Q extends tigase.xmpp.mam.Query,I extends tigase.xmpp.mam.MAMRepository.Item>
-
Nested classes/interfaces inherited from interface tigase.archive.db.MessageArchiveRepository
MessageArchiveRepository.CollectionHandler<Q extends tigase.xmpp.mam.Query>, MessageArchiveRepository.Direction, MessageArchiveRepository.Item
-
-
Field Summary
Fields Modifier and Type Field Description protected static String[]MSG_BODY_PATHprotected static String[]MSG_SUBJECT_PATH
-
Constructor Summary
Constructors Constructor Description AbstractMessageArchiveRepository()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcalculateOffsetAndPosition(Q query, int count, Integer before, Integer after)protected byte[]generateHashOfMessage(MessageArchiveRepository.Direction direction, tigase.xml.Element msg, Date ts, Map<String,Object> additionalData)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface tigase.archive.db.MessageArchiveRepository
archiveMessage, deleteExpiredMessages, destroy, getTags, queryCollections, removeItems
-
-
-
-
Method Detail
-
generateHashOfMessage
protected byte[] generateHashOfMessage(MessageArchiveRepository.Direction direction, tigase.xml.Element msg, Date ts, Map<String,Object> additionalData)
-
-