bool PersistentAlias::ReadObject(std::shared_ptr<Alias> pAlias, const String & sName) { SQLStatement statement; statement.SetStatementType(SQLStatement::STSelect); statement.SetTable("hm_aliases"); statement.AddWhereClauseColumn("aliasname", sName); return ReadObject(pAlias, statement.GetCommand()); }
bool PersistentDistributionList::ReadObject(std::shared_ptr<DistributionList> pDistList, const String &sAddress) { SQLStatement statement; statement.SetStatementType(SQLStatement::STSelect); statement.SetTable("hm_distributionlists"); statement.AddWhereClauseColumn("distributionlistaddress", sAddress); return ReadObject(pDistList, statement.GetCommand()); }
bool PersistentAccount::ReadObject(boost::shared_ptr<Account> pAccount, const String & sAddress) { SQLStatement statement; statement.SetStatementType(SQLStatement::STSelect); statement.SetTable("hm_accounts"); statement.AddWhereClauseColumn("accountaddress", sAddress); bool bResult = ReadObject(pAccount, statement.GetCommand()); return bResult; }