Business Logic Use Cases
Business Logic Use Cases
You need business logic to:
- Implement complex calculations or logic. Java code provides additional programming safety, is easier to maintain on the long run, and is faster than Java Script.
- Perform calculations without loss of precision. You can use the BigDecimal object to perform such calculations.
- Handle large data sets. Browsers cannot handle even thousands of records reliably, but Java code can handle millions of records.
- Execute database-specific SQL queries. Web Central Java API can generate SQL queries that work on all databases, and can parse/format database values.
- Handle sensitive data such as passwords or financial records. Server-side code and data are well-protected from unauthorized access, while browser code and data can be easily hacked.
You do not need business logic implemented in Java, and can use Java Script to:
- Perform simple data transactions , such as updating or creating a data record.
- Process data for display purposes , for example highlight work requests in the grid based on their statuses.