Class TransactionServices
java.lang.Object
AG_FinTrust.Account
AG_FinTrust.AccountDetails
AG_FinTrust.TransactionServices
- All Implemented Interfaces:
AccountDetailsInterface
,AccountInterface
,AG_FinTrustInterface
,TransactionServicesInterface
Provides transactional operations such as deposit, withdrawal, and transfer
in the Transacto: AG_FinTrust system. Handles PIN verification, account checks,
and secure logging of all monetary movements between accounts.
Supports rollback and commit mechanisms to ensure transactional integrity.
- Since:
- August 02, 2025
- Version:
- 2.0.0
- Author:
- Aditya Gupta
-
Field Summary
Fields inherited from class AG_FinTrust.Account
account_number
-
Constructor Summary
ConstructorsConstructorDescriptionTransactionServices
(int fromAccountNumber, String name, int toAccountNumber, Connection conn, double bal, String type) TransactionServices
(int fromAccountNumber, String name, Connection conn, double bal, String type) TransactionServices
(String name, int toAccountNumber, Connection conn, double bal, String type) -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
checkAccountExist
(int acc) boolean
(package private) void
enterPIN()
boolean
(package private) final boolean
matchPin
(int acc) void
void
void
Methods inherited from class AG_FinTrust.AccountDetails
takeDetailsToViewAccountDetails, viewMyAccountDetails, viewMyTransaction
Methods inherited from class AG_FinTrust.Account
createMyAccount, getAccountNumber, isValidAge, isValidContact, isValidGender, isValidPin, printMyAccountReceipt, setPinNumberForMyAccount, takeDetailsToCreateAccount
-
Constructor Details
-
TransactionServices
TransactionServices(Connection conn) -
TransactionServices
TransactionServices(int fromAccountNumber, String name, int toAccountNumber, Connection conn, double bal, String type) -
TransactionServices
TransactionServices(int fromAccountNumber, String name, Connection conn, double bal, String type) -
TransactionServices
TransactionServices(String name, int toAccountNumber, Connection conn, double bal, String type)
-
-
Method Details
-
enterPIN
void enterPIN() -
matchPin
final boolean matchPin(int acc) -
logTransaction
public boolean logTransaction()- Specified by:
logTransaction
in interfaceTransactionServicesInterface
-
checkAccountExist
public final boolean checkAccountExist(int acc) - Specified by:
checkAccountExist
in interfaceTransactionServicesInterface
-
checkSufficientBalance
public boolean checkSufficientBalance()- Specified by:
checkSufficientBalance
in interfaceTransactionServicesInterface
-
moneyDepositTransaction
public void moneyDepositTransaction()- Specified by:
moneyDepositTransaction
in interfaceTransactionServicesInterface
-
moneyWithdrawTransaction
public void moneyWithdrawTransaction()- Specified by:
moneyWithdrawTransaction
in interfaceTransactionServicesInterface
-
moneyTransferTransaction
public void moneyTransferTransaction()- Specified by:
moneyTransferTransaction
in interfaceTransactionServicesInterface
-