Exploring Customer Management
Customer Control Overview
Customer control refers to the management and handling of customer-related data and operations. It includes functionalities such as creating a new customer, viewing customer details, and managing customer records.
How to Use Customer Control
The CustomerControldatainterfaces
Where Customer Control is Used
Customer control is used in various parts of the application, including the Customersrc/webui/src/main/java/com/ibm/cics/cip/bankliberty/web/vsam/ package.
Example of Customer Control Usage
An example of customer control usage is in the CustomerCustomerControl
This code snippet shows how a new CustomerControl
{
CustomerControl myCustomerControl = new CustomerControl();
customerFile.setName(FILENAME);
myCustomerControl.setCustomerControlSortcode(0);
myCustomerControl.setCustomerControlNumber(9999999999L);
byte[] key = LAST_CUSTOMER.getBytes();
holder = new RecordHolder();
try
{
customerFile.readForUpdate(key, holder);
}
catch (LogicException | InvalidRequestException | IOErrorException
| InvalidSystemIdException | LockedException | ChangedException
| LoadingException | RecordBusyException | FileDisabledException
| DuplicateKeyException | FileNotFoundException
| ISCInvalidRequestException | NotAuthorisedException
| RecordNotFoundException | NotOpenException e)
Main Functions
There are several main functions in the CustomerControlgetCustomerControlNumbersetCustomerControlNumbergetNumberOfCustomerssetNumberOfCustomersgetCustomerControlNumbersetCustomerControlNumber
getCustomerControlNumber
getCustomerControlNumberThe getCustomerControlNumber
This code snippet shows the implementation of the getCustomerControlNumber
public long getCustomerControlNumber()
{
if (!customerControlNumberIsSet)
{
customerControlNumber = CUSTOMER_CONTROL_NUMBER.getLong(byteBuffer);
customerControlNumberIsSet = true;
}
return customerControlNumber;
}
setCustomerControlNumber
setCustomerControlNumberThe setCustomerControlNumber
This code snippet shows the implementation of the setCustomerControlNumber
public void setCustomerControlNumber(long customerControlNumber)
{
if (customerControlNumberIsSet && CUSTOMER_CONTROL_NUMBER
.equals(this.customerControlNumber, customerControlNumber))
{
return;
}
CUSTOMER_CONTROL_NUMBER.putLong(customerControlNumber, byteBuffer);
this.customerControlNumber = customerControlNumber;
customerControlNumberIsSet = true;
}
getNumberOfCustomers
getNumberOfCustomersThe getNumberOfCustomers
This code snippet shows the implementation of the getNumberOfCustomers
public long getNumberOfCustomers()
{
if (!numberOfCustomersIsSet)
{
numberOfCustomers = NUMBER_OF_CUSTOMERS.getLong(byteBuffer);
numberOfCustomersIsSet = true;
}
return numberOfCustomers;
}
setNumberOfCustomers
setNumberOfCustomersThe setNumberOfCustomers
This code snippet shows the implementation of the setNumberOfCustomers
public void setNumberOfCustomers(long numberOfCustomers)
{
if (numberOfCustomersIsSet && NUMBER_OF_CUSTOMERS
.equals(this.numberOfCustomers, numberOfCustomers))
{
return;
}
NUMBER_OF_CUSTOMERS.putLong(numberOfCustomers, byteBuffer);
this.numberOfCustomers = numberOfCustomers;
numberOfCustomersIsSet = true;
}
This is an auto-generated document by Swimm 🌊 and has not yet been verified by a human