iluwatar / iluwatar/java-design-patterns

Procedure Access Object pattern

Open
#1,271 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

epic: pattern info: help wanted type: feature
Dominant language
Java
Stars
94.7k
Forks
27.4k
Avg merge
3d 4h
Merged PRs (30d)
10

Description

Description:

Implement the Procedure Access Object (PAO) design pattern in the project. The PAO pattern centralizes the logic to access stored procedures in the database, providing a uniform interface for executing these procedures. This helps in decoupling the business logic from the data access logic, promoting a cleaner and more modular design.

Main elements of the Procedure Access Object pattern:
  • Centralized Procedure Access: All stored procedure calls are centralized in a single class or a set of classes.
  • Uniform Interface: Provides a consistent interface for executing stored procedures, making it easier to manage and call these procedures from different parts of the application.
  • Decoupling: Separates the business logic from the data access logic, ensuring a more modular and maintainable codebase.
References:
Acceptance Criteria:
  1. Implement a class or set of classes to centralize stored procedure calls, ensuring they follow the PAO pattern.
  2. Provide a consistent and uniform interface for executing stored procedures.
  3. Ensure the new PAO classes are well-documented and include examples demonstrating their use in the project.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No files, tests, or entry points are named. Start by reviewing the repository structure and the linked contribution guidelines, then identify how database access and existing design-pattern examples are organized. Done means a documented PAO implementation with a uniform stored-procedure interface and usage examples, as specified by the acceptance criteria.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend-api-design, databases
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.