Skip to content

ch01-bankapp-xml has extra unnecessary methods in FixedDepositDao #1

@NutterzUK

Description

@NutterzUK

These methods make it a little bit more tricky to see exactly what is going on. For chapter 1, I recommend in FixedDepositDao these be removed:

	public static FixedDepositController xyz(String xyz) {
		System.out.println(xyz);
		return new FixedDepositController();
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public void setDriverClass(String driverClass) {
		this.driverClass = driverClass;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public void setPassword(String password) {
		this.password = password;
	}

At this stage I have no idea why the Dao would want a static method to create a new FixedDepositController, or why it is called xyz.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions