net.java.ao.builder.BuilderDatabaseProperties Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of activeobjects Show documentation
Show all versions of activeobjects Show documentation
This is the full Active Objects library, if you don't know which one to use, you probably want this one.
The newest version!
package net.java.ao.builder;
import java.util.Objects;
final class BuilderDatabaseProperties implements DatabaseProperties {
private final String url;
private final String username;
private final String password;
private final ConnectionPool pool;
private String schema = null;
public BuilderDatabaseProperties(String url, String username, String password, ConnectionPool pool) {
this.url = Objects.requireNonNull(url, "url can't be null");
this.username = Objects.requireNonNull(username, "username can't be null");
this.password = Objects.requireNonNull(password, "password can't be null");
this.pool = Objects.requireNonNull(pool, "pool can't be null");
}
public String getUrl() {
return url;
}
public String getUsername() {
return username;
}
public String getPassword() {
return password;
}
public ConnectionPool getConnectionPool() {
return pool;
}
public String getSchema() {
return schema;
}
public void setSchema(String schema) {
this.schema = schema;
}
}