net.java.ao.builder.EntityManagerBuilderWithUrlAndUsername 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.
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);
}
}