Class SqlserverSqlHistoryProvider

  • All Implemented Interfaces:
    tigase.db.DataSourceAware<tigase.db.DataRepository>, HistoryProvider<tigase.db.DataRepository>

    public class SqlserverSqlHistoryProvider
    extends AbstractJDBCHistoryProvider
    Author:
    bmalkow
    • Field Detail

      • ADD_MESSAGE_QUERY_VAL

        public static final java.lang.String ADD_MESSAGE_QUERY_VAL
        See Also:
        Constant Field Values
      • DELETE_MESSAGES_QUERY_VAL

        public static final java.lang.String DELETE_MESSAGES_QUERY_VAL
        See Also:
        Constant Field Values
      • GET_MESSAGES_MAXSTANZAS_QUERY_VAL

        public static final java.lang.String GET_MESSAGES_MAXSTANZAS_QUERY_VAL
        See Also:
        Constant Field Values
      • GET_MESSAGES_SINCE_QUERY_VAL

        public static final java.lang.String GET_MESSAGES_SINCE_QUERY_VAL
        See Also:
        Constant Field Values
      • CHECK_TEXT_FIELD_INVALID_TYPES

        public static final java.lang.String CHECK_TEXT_FIELD_INVALID_TYPES
        See Also:
        Constant Field Values
    • Constructor Detail

      • SqlserverSqlHistoryProvider

        public SqlserverSqlHistoryProvider()
    • Method Detail

      • addJoinEvent

        public void addJoinEvent​(Room room,
                                 java.util.Date date,
                                 tigase.xmpp.jid.JID senderJID,
                                 java.lang.String nickName)
        Adds join event.
      • addLeaveEvent

        public void addLeaveEvent​(Room room,
                                  java.util.Date date,
                                  tigase.xmpp.jid.JID senderJID,
                                  java.lang.String nickName)
      • addSubjectChange

        public void addSubjectChange​(Room room,
                                     tigase.xml.Element message,
                                     java.lang.String subject,
                                     tigase.xmpp.jid.JID senderJid,
                                     java.lang.String senderNickname,
                                     java.util.Date time)
        Adds subject changes to log/history.
      • init

        public void init​(tigase.db.DataRepository dataRepository)
      • setDataSource

        public void setDataSource​(tigase.db.DataRepository dataSource)
        Specified by:
        setDataSource in interface tigase.db.DataSourceAware<tigase.db.DataRepository>
        Overrides:
        setDataSource in class AbstractJDBCHistoryProvider