net.java.ao.builder.EntityManagerBuilderWithDatabaseProperties 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;
import net.java.ao.EntityManager;
import static net.java.ao.builder.DatabaseProviderFactory.getDatabaseProvider;
/**
* This is class used to build {@link net.java.ao.EntityManager}
*
* @see EntityManagerBuilder
* @see EntityManagerBuilderWithUrl
* @see EntityManagerBuilderWithUrlAndUsername
*/
public final class EntityManagerBuilderWithDatabaseProperties extends AbstractEntityManagerBuilderWithDatabaseProperties {
EntityManagerBuilderWithDatabaseProperties(BuilderDatabaseProperties databaseProperties) {
super(databaseProperties);
}
public EntityManager build() {
return new EntityManager(getDatabaseProvider(getDatabaseProperties()), getEntityManagerConfiguration());
}
}