Ejemplo n.º 1
0
   void 
   FetchAccounts::RefreshPendingList()
   {
      String sSQL;
      sSQL.Format(_T("select * from hm_fetchaccounts where fanexttry <= %s and falocked = 0 and faactive = 1 order by faid asc"), SQLStatement::GetCurrentTimestamp());

      _DBLoad(sSQL);
   }
Ejemplo n.º 2
0
   void 
   RuleCriterias::Refresh()
   {
      String sSQL;
      sSQL.Format(_T("select * from hm_rule_criterias where criteriaruleid = %I64d order by criteriaid asc"), m_iRuleID);

      _DBLoad(sSQL);
   }
Ejemplo n.º 3
0
   void
   Aliases::Refresh()
   {
      String sSQL;
      sSQL.Format(_T("select * from hm_aliases where aliasdomainid = %I64d order by aliasname asc"), m_iDomainID);

      _DBLoad(sSQL);
   }
Ejemplo n.º 4
0
   void 
   FetchAccounts::Refresh()
   {
      String sSQL;
      sSQL.Format(_T("select * from hm_fetchaccounts where faaccountid = %I64d")
                        _T(" order by faid asc"), m_iAccountID);

      _DBLoad(sSQL);
   }
Ejemplo n.º 5
0
 void 
 TCPIPPorts::Refresh()
 //---------------------------------------------------------------------------()
 // DESCRIPTION:
 // Reads all SURBL servers from the database.
 //---------------------------------------------------------------------------()
 {
    String sSQL = "select * from hm_tcpipports order by portaddress1 asc, portaddress2 asc, portnumber asc";
    _DBLoad(sSQL);
 }
Ejemplo n.º 6
0
 void 
 Routes::Refresh()
 //---------------------------------------------------------------------------()
 // DESCRIPTION:
 // Reloads all routes from the database.
 //---------------------------------------------------------------------------()
 {
    String sSQL = "select * from hm_routes order by routedomainname asc";
    _DBLoad(sSQL);
 }
Ejemplo n.º 7
0
 void 
 WhiteListAddresses::Refresh()
 //---------------------------------------------------------------------------()
 // DESCRIPTION:
 // Reads all SURBL servers from the database.
 //---------------------------------------------------------------------------()
 {
    String sSQL = "select * from hm_whitelist order by whiteloweripaddress1 asc, whiteloweripaddress2 asc";
    _DBLoad(sSQL);
 }
Ejemplo n.º 8
0
   void 
   Groups::Refresh()
   //---------------------------------------------------------------------------()
   // DESCRIPTION:
   // Reads all groups form the database
   //---------------------------------------------------------------------------()
   {
      String sSQL = "select * from hm_groups order by groupname asc";

      _DBLoad(sSQL);
   }
Ejemplo n.º 9
0
 void 
 Rules::Refresh()
 //---------------------------------------------------------------------------()
 // DESCRIPTION:
 // Refreshes this collection from the database.
 //---------------------------------------------------------------------------()
 {
    String sSQL;
    sSQL.Format(_T("select * from hm_rules where ruleaccountid = %I64d order by rulesortorder asc"), m_iAccountID);
    _DBLoad(sSQL);
 }
Ejemplo n.º 10
0
   void 
   GroupMembers::Refresh()
   //---------------------------------------------------------------------------()
   // DESCRIPTION:
   // Reads all group members from the database
   //---------------------------------------------------------------------------()
   {
      String sSQL;
      sSQL.Format(_T("select * from hm_group_members where membergroupid = %I64d order by memberid asc"), m_iGroupID);

      _DBLoad(sSQL);      
   }
Ejemplo n.º 11
0
   void
   Accounts::Refresh()
   {
      SQLCommand command;

      String sSQL;
      if (m_iDomainID == 0)
      {
         command.SetQueryString(_T("select * from hm_accounts order by accountaddress asc"));
      }
      else if (m_iAccountID == 0)
      {
         command.SetQueryString("select * from hm_accounts where accountdomainid = @DOMAINID order by accountaddress asc");
         command.AddParameter("@DOMAINID", m_iDomainID);
      }
      else
      {
         command.SetQueryString("select * from hm_accounts where accountdomainid = @DOMAINID and accountid = @ACCOUNTID order by accountaddress asc");
         command.AddParameter("@DOMAINID", m_iDomainID);
         command.AddParameter("@ACCOUNTID", m_iAccountID);
      }

      _DBLoad(command);
   }