net.java.ao.builder.EntityManagerBuilderWithUrlAndUsername Maven / Gradle / Ivy
The newest version!
package net.java.ao.builder;
/**
* This is class used to build {@link net.java.ao.EntityManager}
*
* @see EntityManagerBuilder
* @see EntityManagerBuilderWithUrl
* @see EntityManagerBuilderWithDatabaseProperties
*/
public final class EntityManagerBuilderWithUrlAndUsername {
private final String url;
private final String username;
EntityManagerBuilderWithUrlAndUsername(String url, String username) {
this.url = url;
this.username = username;
}
public EntityManagerBuilderWithUrlAndUsernameAndPassword password(final String password) {
return new EntityManagerBuilderWithUrlAndUsernameAndPassword(url, username, password);
}
}