Class UPI
java.lang.Object
AG_FinTrust.UPI
- Direct Known Subclasses:
UPITransactionServices
AG_FinTrust - UPI.java
Handles UPI-related services including validation, creation, and retrieval of UPI IDs
linked to user bank accounts. This class interacts with the database to manage UPI records
and display associated account information.
Key Features:
- Validates UPI ID format (alphanumeric and dot characters only, up to 45 characters)
- Generates standardized UPI handles ending with "@agft"
- Associates UPI IDs with verified account numbers
- Prevents duplicate UPI assignment for the same account
- Fetches and displays account details using UPI ID with colored console output
This class is a sealed class and may only be extended by UPIServices
.
- Since:
- August 02, 2025
- Version:
- 2.0.0
- Author:
- Aditya Gupta
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) final boolean
(package private) final boolean
protected void
protected final void
setUPI()
-
Field Details
-
conn
-
-
Constructor Details
-
UPI
UPI(Connection conn)
-
-
Method Details
-
checkUPI
-
checkUPIExist
final boolean checkUPIExist() -
setUPI
protected final void setUPI() -
displayAccountDetails
protected void displayAccountDetails()
-