Class JDBCMessageArchiveRepository<Q extends QueryCriteria>

  • All Implemented Interfaces:
    MessageArchiveRepository<Q,​tigase.db.DataRepository>, tigase.db.DataSourceAware<tigase.db.DataRepository>, tigase.db.util.RepositoryVersionAware, tigase.xmpp.mam.MAMRepository<Q,​tigase.xmpp.mam.MAMRepository.Item>

    public class JDBCMessageArchiveRepository<Q extends QueryCriteria>
    extends AbstractMessageArchiveRepository<Q,​tigase.db.DataRepository>
    implements tigase.db.util.RepositoryVersionAware
    • Field Detail

      • ADD_MESSAGE_QUERY

        @ConfigField(desc="Query to add message to store",
                     alias="add-message-query")
        protected String ADD_MESSAGE_QUERY
      • ADD_TAG_TO_MESSAGE_QUERY

        @ConfigField(desc="Query to add tag to message in store",
                     alias="add-tag-to-message-query")
        protected String ADD_TAG_TO_MESSAGE_QUERY
      • DELETE_EXPIRED_MESSAGES_QUERY

        @ConfigField(desc="Query to delete expired messages",
                     alias="delete-expired-messages-query")
        protected String DELETE_EXPIRED_MESSAGES_QUERY
      • GET_COLLECTIONS_COUNT_QUERY

        @ConfigField(desc="Query to retrieve number of collections",
                     alias="get-collections-count-query")
        protected String GET_COLLECTIONS_COUNT_QUERY
      • GET_COLLECTIONS_QUERY

        @ConfigField(desc="Query to retrieve list of collections",
                     alias="get-collections-query")
        protected String GET_COLLECTIONS_QUERY
      • GET_MESSAGES_COUNT_QUERY

        @ConfigField(desc="Query to retrieve number of messages",
                     alias="get-messages-count-query")
        protected String GET_MESSAGES_COUNT_QUERY
      • GET_MESSAGES_QUERY

        @ConfigField(desc="Query to retrieve list of messages",
                     alias="get-messages-query")
        protected String GET_MESSAGES_QUERY
      • GET_MESSAGE_POSITION_QUERY

        @ConfigField(desc="Query to retrieve message possition",
                     alias="get-message-position-query")
        protected String GET_MESSAGE_POSITION_QUERY
      • GET_TAGS_FOR_USER_COUNT_QUERY

        @ConfigField(desc="Query to retrieve number of tags used by user",
                     alias="get-tags-for-user-count-query")
        protected String GET_TAGS_FOR_USER_COUNT_QUERY
      • GET_TAGS_FOR_USER_QUERY

        @ConfigField(desc="Query to retrieve tags used by user",
                     alias="get-tags-for-user-query")
        protected String GET_TAGS_FOR_USER_QUERY
      • REMOVE_MESSAGES_QUERY

        @ConfigField(desc="Query to remove messages",
                     alias="remove-messages-query")
        protected String REMOVE_MESSAGES_QUERY
      • data_repo

        protected tigase.db.DataRepository data_repo
    • Constructor Detail

      • JDBCMessageArchiveRepository

        public JDBCMessageArchiveRepository()