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; }
std::shared_ptr<DALRecordset> DatabaseConnectionManager::OpenRecordset(const SQLStatement &statement) { return OpenRecordset(statement.GetCommand()); }
bool DatabaseConnectionManager::Execute(const SQLStatement &statement, __int64 *iInsertID, int iIgnoreErrors, String &sErrorMessage) { return Execute(statement.GetCommand(), iInsertID, iIgnoreErrors, sErrorMessage); }