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 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) Adds a transaction.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) Adds a transaction.static boolean
canAccessTransaction
(DatabaseConnection conn, RequestSource source, int transaction) static void
checkAccessTransaction
(DatabaseConnection conn, RequestSource source, String action, int transaction) static void
getAccountBalance
(DatabaseConnection conn, RequestSource source, StreamableOutput out, Account.Name account) Gets the balance for one account.static void
getAccountBalanceBefore
(DatabaseConnection conn, RequestSource source, StreamableOutput out, Account.Name account, long before) Gets the balance for one account.static Account.Name
getAccountForTransaction
(DatabaseConnection conn, int transaction) static Monies
getConfirmedAccountBalance
(DatabaseConnection conn, Account.Name account) Gets the confirmed balance for one account.static void
getConfirmedAccountBalance
(DatabaseConnection conn, RequestSource source, StreamableOutput out, Account.Name account) Gets the confirmed balance for one account.static void
getConfirmedAccountBalanceBefore
(DatabaseConnection conn, RequestSource source, StreamableOutput out, Account.Name account, long before) Gets the confirmed balance for one account.static void
getTransactionsForAccount
(DatabaseConnection conn, RequestSource source, StreamableOutput out, boolean provideProgress, Account.Name account) Gets all billing.Transaction for one business.static void
getTransactionsForAdministrator
(DatabaseConnection conn, RequestSource source, StreamableOutput out, boolean provideProgress, User.Name administrator) Gets all billing.Transaction for one business administrator.static void
getTransactionsSearch
(DatabaseConnection conn, RequestSource source, StreamableOutput out, boolean provideProgress, TransactionSearchCriteria criteria) static void
transactionApproved
(DatabaseConnection conn, InvalidateList invalidateList, int transaction, int payment, String paymentInfo) static void
transactionApproved
(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, int transaction, int payment, String paymentInfo) static void
transactionDeclined
(DatabaseConnection conn, InvalidateList invalidateList, int transaction, int payment, String paymentInfo) static void
transactionDeclined
(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, int transaction, int payment, String paymentInfo) static void
transactionHeld
(DatabaseConnection conn, InvalidateList invalidateList, int transaction, int payment, String paymentInfo) static void
transactionHeld
(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:
IOException
SQLException
-
checkAccessTransaction
public static void checkAccessTransaction(DatabaseConnection conn, RequestSource source, String action, int transaction) throws IOException, SQLException - Throws:
IOException
SQLException
-
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:
IOException
SQLException
-
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:
IOException
SQLException
-
getAccountBalance
public static void getAccountBalance(DatabaseConnection conn, RequestSource source, StreamableOutput out, Account.Name account) throws IOException, SQLException Gets the balance for one account.- Throws:
IOException
SQLException
-
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:
IOException
SQLException
-
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:
IOException
SQLException
-
getConfirmedAccountBalance
public static Monies getConfirmedAccountBalance(DatabaseConnection conn, Account.Name account) throws IOException, SQLException Gets the confirmed balance for one account.- Throws:
IOException
SQLException
-
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:
IOException
SQLException
-
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:
IOException
SQLException
-
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:
IOException
SQLException
-
getTransactionsSearch
public static void getTransactionsSearch(DatabaseConnection conn, RequestSource source, StreamableOutput out, boolean provideProgress, TransactionSearchCriteria criteria) throws IOException, SQLException - Throws:
IOException
SQLException
-
transactionApproved
public static void transactionApproved(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, int transaction, int payment, String paymentInfo) throws IOException, SQLException - Throws:
IOException
SQLException
-
transactionApproved
public static void transactionApproved(DatabaseConnection conn, InvalidateList invalidateList, int transaction, int payment, String paymentInfo) throws IOException, SQLException - Throws:
IOException
SQLException
-
transactionDeclined
public static void transactionDeclined(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, int transaction, int payment, String paymentInfo) throws IOException, SQLException - Throws:
IOException
SQLException
-
transactionDeclined
public static void transactionDeclined(DatabaseConnection conn, InvalidateList invalidateList, int transaction, int payment, String paymentInfo) throws IOException, SQLException - Throws:
IOException
SQLException
-
transactionHeld
public static void transactionHeld(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, int transaction, int payment, String paymentInfo) throws IOException, SQLException - Throws:
IOException
SQLException
-
transactionHeld
public static void transactionHeld(DatabaseConnection conn, InvalidateList invalidateList, int transaction, int payment, String paymentInfo) throws IOException, SQLException - Throws:
IOException
SQLException
-
getAccountForTransaction
public static Account.Name getAccountForTransaction(DatabaseConnection conn, int transaction) throws IOException, SQLException - Throws:
IOException
SQLException
-