|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.infinispan.loaders.jdbc.connectionfactory.ConnectionFactory
org.infinispan.loaders.jdbc.connectionfactory.SimpleConnectionFactory
public class SimpleConnectionFactory
Connection factory implementation that will create database connection on a per invocation basis. Not recommended in
production, PooledConnectionFactory
should rather be used.
Constructor Summary | |
---|---|
SimpleConnectionFactory()
|
Method Summary | |
---|---|
Connection |
getConnection()
Fetches a connection from the factory. |
String |
getConnectionUrl()
|
String |
getPassword()
|
String |
getUserName()
|
void |
releaseConnection(Connection conn)
Destroys a connection. |
void |
start(ConnectionFactoryConfig config)
Starts the connection factory. |
void |
stop()
Closes the connection factory, including all allocated connections etc. |
String |
toString()
|
Methods inherited from class org.infinispan.loaders.jdbc.connectionfactory.ConnectionFactory |
---|
getConnectionFactory |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SimpleConnectionFactory()
Method Detail |
---|
public void start(ConnectionFactoryConfig config) throws CacheLoaderException
ConnectionFactory
start
in class ConnectionFactory
CacheLoaderException
public void stop()
ConnectionFactory
stop
in class ConnectionFactory
public Connection getConnection() throws CacheLoaderException
ConnectionFactory
getConnection
in class ConnectionFactory
CacheLoaderException
public void releaseConnection(Connection conn)
ConnectionFactory
releaseConnection
in class ConnectionFactory
public String getConnectionUrl()
public String getUserName()
public String getPassword()
public String toString()
toString
in class Object
|
Google Analytics | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |