Package com.aoindustries.aoserv.master
Class BillingTransactionHandler
java.lang.Object
com.aoindustries.aoserv.master.BillingTransactionHandler
The
TransactionHandler handles all the accesses to the transaction tables.- Author:
- AO Industries, Inc.
-
Method Summary
Modifier and TypeMethodDescriptionstatic intaddTransaction(DatabaseConnection conn, InvalidateList invalidateList, char timeType, Timestamp time, Account.Name account, Account.Name sourceAccount, User.Name administrator, String type, String description, BigDecimal quantity, Money rate, String paymentType, String paymentInfo, String processor, byte paymentConfirmed) Adds a transaction.static intaddTransaction(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, char timeType, Timestamp time, Account.Name account, Account.Name sourceAccount, User.Name administrator, String type, String description, int quantity, Money rate, String paymentType, String paymentInfo, String processor, byte paymentConfirmed) Adds a transaction.static booleancanAccessTransaction(DatabaseConnection conn, RequestSource source, int transaction) static voidcheckAccessTransaction(DatabaseConnection conn, RequestSource source, String action, int transaction) static voidgetAccountBalance(DatabaseConnection conn, RequestSource source, StreamableOutput out, Account.Name account) Gets the balance for one account.static voidgetAccountBalanceBefore(DatabaseConnection conn, RequestSource source, StreamableOutput out, Account.Name account, long before) Gets the balance for one account.static Account.NamegetAccountForTransaction(DatabaseConnection conn, int transaction) static MoniesgetConfirmedAccountBalance(DatabaseConnection conn, Account.Name account) Gets the confirmed balance for one account.static voidgetConfirmedAccountBalance(DatabaseConnection conn, RequestSource source, StreamableOutput out, Account.Name account) Gets the confirmed balance for one account.static voidgetConfirmedAccountBalanceBefore(DatabaseConnection conn, RequestSource source, StreamableOutput out, Account.Name account, long before) Gets the confirmed balance for one account.static voidgetTransactionsForAccount(DatabaseConnection conn, RequestSource source, StreamableOutput out, boolean provideProgress, Account.Name account) Gets all billing.Transaction for one business.static voidgetTransactionsForAdministrator(DatabaseConnection conn, RequestSource source, StreamableOutput out, boolean provideProgress, User.Name administrator) Gets all billing.Transaction for one business administrator.static voidgetTransactionsSearch(DatabaseConnection conn, RequestSource source, StreamableOutput out, boolean provideProgress, TransactionSearchCriteria criteria) static voidtransactionApproved(DatabaseConnection conn, InvalidateList invalidateList, int transaction, int payment, String paymentInfo) static voidtransactionApproved(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, int transaction, int payment, String paymentInfo) static voidtransactionDeclined(DatabaseConnection conn, InvalidateList invalidateList, int transaction, int payment, String paymentInfo) static voidtransactionDeclined(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, int transaction, int payment, String paymentInfo) static voidtransactionHeld(DatabaseConnection conn, InvalidateList invalidateList, int transaction, int payment, String paymentInfo) static voidtransactionHeld(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, int transaction, int payment, String paymentInfo)
-
Method Details
-
canAccessTransaction
public static boolean canAccessTransaction(DatabaseConnection conn, RequestSource source, int transaction) throws IOException, SQLException - Throws:
IOExceptionSQLException
-
checkAccessTransaction
public static void checkAccessTransaction(DatabaseConnection conn, RequestSource source, String action, int transaction) throws IOException, SQLException - Throws:
IOExceptionSQLException
-
addTransaction
public static int addTransaction(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, char timeType, Timestamp time, Account.Name account, Account.Name sourceAccount, User.Name administrator, String type, String description, int quantity, Money rate, String paymentType, String paymentInfo, String processor, byte paymentConfirmed) throws IOException, SQLException Adds a transaction.- Throws:
IOExceptionSQLException
-
addTransaction
public static int addTransaction(DatabaseConnection conn, InvalidateList invalidateList, char timeType, Timestamp time, Account.Name account, Account.Name sourceAccount, User.Name administrator, String type, String description, BigDecimal quantity, Money rate, String paymentType, String paymentInfo, String processor, byte paymentConfirmed) throws IOException, SQLException Adds a transaction.- Throws:
IOExceptionSQLException
-
getAccountBalance
public static void getAccountBalance(DatabaseConnection conn, RequestSource source, StreamableOutput out, Account.Name account) throws IOException, SQLException Gets the balance for one account.- Throws:
IOExceptionSQLException
-
getAccountBalanceBefore
public static void getAccountBalanceBefore(DatabaseConnection conn, RequestSource source, StreamableOutput out, Account.Name account, long before) throws IOException, SQLException Gets the balance for one account.- Throws:
IOExceptionSQLException
-
getConfirmedAccountBalance
public static void getConfirmedAccountBalance(DatabaseConnection conn, RequestSource source, StreamableOutput out, Account.Name account) throws IOException, SQLException Gets the confirmed balance for one account.- Throws:
IOExceptionSQLException
-
getConfirmedAccountBalance
public static Monies getConfirmedAccountBalance(DatabaseConnection conn, Account.Name account) throws IOException, SQLException Gets the confirmed balance for one account.- Throws:
IOExceptionSQLException
-
getConfirmedAccountBalanceBefore
public static void getConfirmedAccountBalanceBefore(DatabaseConnection conn, RequestSource source, StreamableOutput out, Account.Name account, long before) throws IOException, SQLException Gets the confirmed balance for one account.- Throws:
IOExceptionSQLException
-
getTransactionsForAccount
public static void getTransactionsForAccount(DatabaseConnection conn, RequestSource source, StreamableOutput out, boolean provideProgress, Account.Name account) throws IOException, SQLException Gets all billing.Transaction for one business.- Throws:
IOExceptionSQLException
-
getTransactionsForAdministrator
public static void getTransactionsForAdministrator(DatabaseConnection conn, RequestSource source, StreamableOutput out, boolean provideProgress, User.Name administrator) throws IOException, SQLException Gets all billing.Transaction for one business administrator.- Throws:
IOExceptionSQLException
-
getTransactionsSearch
public static void getTransactionsSearch(DatabaseConnection conn, RequestSource source, StreamableOutput out, boolean provideProgress, TransactionSearchCriteria criteria) throws IOException, SQLException - Throws:
IOExceptionSQLException
-
transactionApproved
public static void transactionApproved(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, int transaction, int payment, String paymentInfo) throws IOException, SQLException - Throws:
IOExceptionSQLException
-
transactionApproved
public static void transactionApproved(DatabaseConnection conn, InvalidateList invalidateList, int transaction, int payment, String paymentInfo) throws IOException, SQLException - Throws:
IOExceptionSQLException
-
transactionDeclined
public static void transactionDeclined(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, int transaction, int payment, String paymentInfo) throws IOException, SQLException - Throws:
IOExceptionSQLException
-
transactionDeclined
public static void transactionDeclined(DatabaseConnection conn, InvalidateList invalidateList, int transaction, int payment, String paymentInfo) throws IOException, SQLException - Throws:
IOExceptionSQLException
-
transactionHeld
public static void transactionHeld(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, int transaction, int payment, String paymentInfo) throws IOException, SQLException - Throws:
IOExceptionSQLException
-
transactionHeld
public static void transactionHeld(DatabaseConnection conn, InvalidateList invalidateList, int transaction, int payment, String paymentInfo) throws IOException, SQLException - Throws:
IOExceptionSQLException
-
getAccountForTransaction
public static Account.Name getAccountForTransaction(DatabaseConnection conn, int transaction) throws IOException, SQLException - Throws:
IOExceptionSQLException
-
