-
- All Implemented Interfaces:
-
java.sql.Wrapper,javax.sql.CommonDataSource,javax.sql.DataSource
public final class EntityManagerFactoryDataSource implements DataSource
A basic implementation of DataSource which polls given factory for connections.
-
-
Field Summary
Fields Modifier and Type Field Description private final EntityManagerFactoryemf
-
Constructor Summary
Constructors Constructor Description EntityManagerFactoryDataSource(EntityManagerFactory emf)
-
Method Summary
Modifier and Type Method Description VoidsetLogWriter(PrintWriter out)VoidsetLoginTimeout(Integer seconds)VoidgetParentLogger()VoidgetLogWriter()VoidgetLoginTimeout()BooleanisWrapperFor(Class<?> iface)<T extends Any> Voidunwrap(Class<T> iface)ConnectiongetConnection()ConnectiongetConnection(String username, String password)final EntityManagerFactorygetEmf()-
Methods inherited from class javax.sql.CommonDataSource
equals, hashCode, toString -
Methods inherited from class javax.sql.DataSource
createShardingKeyBuilder -
Methods inherited from class eu.vaadinonkotlin.vaadin8.jpa.EntityManagerFactoryDataSource
createConnectionBuilder -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
setLogWriter
Void setLogWriter(PrintWriter out)
-
setLoginTimeout
Void setLoginTimeout(Integer seconds)
-
getParentLogger
Void getParentLogger()
-
getLogWriter
Void getLogWriter()
-
getLoginTimeout
Void getLoginTimeout()
-
isWrapperFor
Boolean isWrapperFor(Class<?> iface)
-
getConnection
Connection getConnection()
-
getConnection
Connection getConnection(String username, String password)
-
getEmf
final EntityManagerFactory getEmf()
-
-
-
-