C# Class Wolfje.Plugins.SEconomy.Journal.MySQLJournal.MySQLTransactionJournal

Inheritance: ITransactionJournal
Show file Open project: tylerjwatson/SEconomy Class Usage Examples

Protected Properties

Property Type Description
bankAccounts List
connectionString string
instance SEconomy
mysqlConnection MySql.Data.MySqlClient.MySqlConnection
sqlProperties Configuration.SQLConnectionProperties

Public Methods

Method Description
AddBankAccount ( IBankAccount Account ) : IBankAccount
AddBankAccount ( string UserAccountName, long WorldID, BankAccountFlags Flags, string iDonoLol ) : IBankAccount
BackupJournal ( ) : void
BackupJournalAsync ( ) : Task
BindTransactions ( MySql.Data.MySqlClient.MySqlTransaction SQLTransaction, long SourceBankTransactionK, long DestBankTransactionK ) : void
CleanJournal ( PurgeOptions options ) : void
DeleteBankAccountAsync ( long BankAccountK ) : Task
Dispose ( ) : void
DumpSummary ( ) : void
GetBankAccount ( long BankAccountK ) : IBankAccount
GetBankAccountByName ( string UserAccountName ) : IBankAccount
GetBankAccountList ( long BankAccountK ) : IEnumerable
GetWorldAccount ( ) : IBankAccount
LoadJournal ( ) : bool
LoadJournalAsync ( ) : Task
MySQLTransactionJournal ( SEconomy instance, Configuration sqlProperties ) : System
SaveJournal ( ) : void
SaveJournalAsync ( ) : Task
SquashJournalAsync ( ) : Task
TransferBetween ( IBankAccount FromAccount, IBankAccount ToAccount, Money Amount, BankAccountTransferOptions Options, string TransactionMessage, string JournalMessage ) : BankTransferEventArgs
TransferBetweenAsync ( IBankAccount FromAccount, IBankAccount ToAccount, Money Amount, BankAccountTransferOptions Options, string TransactionMessage, string JournalMessage ) : Task

Protected Methods

Method Description
CreateDatabase ( ) : void

Creates a seconomy database in MySQL based on the create database SQL embedded resources.

CreateSchema ( ) : void
DatabaseExists ( ) : bool

Queries the destination MySQL server to determine if there is a database by the name matching sqlProperties.DbName set in the SEconomy configuration file.

Dispose ( bool disposing ) : void
LoadBankAccounts ( ) : void

Private Methods

Method Description
BeginSourceTransaction ( MySql.Data.MySqlClient.MySqlTransaction SQLTransaction, long BankAccountK, Money Amount, string Message ) : ITransaction
FinishEndTransaction ( MySql.Data.MySqlClient.MySqlTransaction SQLTransaction, IBankAccount ToAccount, Money Amount, string Message ) : ITransaction
TransferMaySucceed ( IBankAccount FromAccount, IBankAccount ToAccount, Money MoneyNeeded, Journal Options ) : bool

Method Details

AddBankAccount() public method

public AddBankAccount ( IBankAccount Account ) : IBankAccount
Account IBankAccount
return IBankAccount

AddBankAccount() public method

public AddBankAccount ( string UserAccountName, long WorldID, BankAccountFlags Flags, string iDonoLol ) : IBankAccount
UserAccountName string
WorldID long
Flags BankAccountFlags
iDonoLol string
return IBankAccount

BackupJournal() public method

public BackupJournal ( ) : void
return void

BackupJournalAsync() public method

public BackupJournalAsync ( ) : Task
return Task

BindTransactions() public method

public BindTransactions ( MySql.Data.MySqlClient.MySqlTransaction SQLTransaction, long SourceBankTransactionK, long DestBankTransactionK ) : void
SQLTransaction MySql.Data.MySqlClient.MySqlTransaction
SourceBankTransactionK long
DestBankTransactionK long
return void

CleanJournal() public method

public CleanJournal ( PurgeOptions options ) : void
options PurgeOptions
return void

CreateDatabase() protected method

Creates a seconomy database in MySQL based on the create database SQL embedded resources.
protected CreateDatabase ( ) : void
return void

CreateSchema() protected method

protected CreateSchema ( ) : void
return void

DatabaseExists() protected method

Queries the destination MySQL server to determine if there is a database by the name matching sqlProperties.DbName set in the SEconomy configuration file.
protected DatabaseExists ( ) : bool
return bool

DeleteBankAccountAsync() public method

public DeleteBankAccountAsync ( long BankAccountK ) : Task
BankAccountK long
return Task

Dispose() public method

public Dispose ( ) : void
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

DumpSummary() public method

public DumpSummary ( ) : void
return void

GetBankAccount() public method

public GetBankAccount ( long BankAccountK ) : IBankAccount
BankAccountK long
return IBankAccount

GetBankAccountByName() public method

public GetBankAccountByName ( string UserAccountName ) : IBankAccount
UserAccountName string
return IBankAccount

GetBankAccountList() public method

public GetBankAccountList ( long BankAccountK ) : IEnumerable
BankAccountK long
return IEnumerable

GetWorldAccount() public method

public GetWorldAccount ( ) : IBankAccount
return IBankAccount

LoadBankAccounts() protected method

protected LoadBankAccounts ( ) : void
return void

LoadJournal() public method

public LoadJournal ( ) : bool
return bool

LoadJournalAsync() public method

public LoadJournalAsync ( ) : Task
return Task

MySQLTransactionJournal() public method

public MySQLTransactionJournal ( SEconomy instance, Configuration sqlProperties ) : System
instance SEconomy
sqlProperties Configuration
return System

SaveJournal() public method

public SaveJournal ( ) : void
return void

SaveJournalAsync() public method

public SaveJournalAsync ( ) : Task
return Task

SquashJournalAsync() public method

public SquashJournalAsync ( ) : Task
return Task

TransferBetween() public method

public TransferBetween ( IBankAccount FromAccount, IBankAccount ToAccount, Money Amount, BankAccountTransferOptions Options, string TransactionMessage, string JournalMessage ) : BankTransferEventArgs
FromAccount IBankAccount
ToAccount IBankAccount
Amount Money
Options BankAccountTransferOptions
TransactionMessage string
JournalMessage string
return BankTransferEventArgs

TransferBetweenAsync() public method

public TransferBetweenAsync ( IBankAccount FromAccount, IBankAccount ToAccount, Money Amount, BankAccountTransferOptions Options, string TransactionMessage, string JournalMessage ) : Task
FromAccount IBankAccount
ToAccount IBankAccount
Amount Money
Options BankAccountTransferOptions
TransactionMessage string
JournalMessage string
return Task

Property Details

bankAccounts protected property

protected List bankAccounts
return List

connectionString protected property

protected string connectionString
return string

instance protected property

protected SEconomy instance
return SEconomy

mysqlConnection protected property

protected MySqlConnection,MySql.Data.MySqlClient mysqlConnection
return MySql.Data.MySqlClient.MySqlConnection

sqlProperties protected property

protected Configuration.SQLConnectionProperties sqlProperties
return Configuration.SQLConnectionProperties