Overview of Customer Data Interface
What is Customer Data Interface
The Customer Data Interface in the CICS Bank Sample Application (CBSA) is represented by the Crecust class. This class is responsible for handling customer data within the application. It includes fields for various customer attributes such as name, address, date of birth, and credit score.
The Crecust class uses a CobolDatatypeFactory
Usage of Crecust in CreditScoreCICS540
CreditScoreCICS540The Crecust class is instantiated and the customer address is set using the setCommAddress
CRECUST myCRECUST = new CRECUST();
myCRECUST.setCommAddress(customer.getCustomerAddress());
Main Functions
The Crecust class provides several main functions to interact with customer data. These include getCommNamesetCommNamegetCommAddresssetCommAddress
getCommName
getCommNameThe getCommName
public String getCommName() {
if (commName == null) {
commName = COMM_NAME.getString(byteBuffer);
}
return commName;
}
setCommName
setCommNameThe setCommName
public void setCommName(String commName) {
if (COMM_NAME.equals(this.commName, commName)) {
return;
}
COMM_NAME.putString(commName, byteBuffer);
this.commName = commName;
}
getCommAddress
getCommAddressThe getCommAddressgetCommName
public String getCommAddress() {
if (commAddress == null) {
commAddress = COMM_ADDRESS.getString(byteBuffer);
}
return commAddress;
}
setCommAddress
setCommAddressThe setCommAddress
public void setCommAddress(String commAddress) {
if (COMM_ADDRESS.equals(this.commAddress, commAddress)) {
return;
}
COMM_ADDRESS.putString(commAddress, byteBuffer);
this.commAddress = commAddress;
}
This is an auto-generated document by Swimm 🌊 and has not yet been verified by a human