org.openspaces.jdbc.datasource
Class SpaceDriverManagerDataSource
java.lang.Object
org.springframework.jdbc.datasource.AbstractDataSource
org.openspaces.jdbc.datasource.SpaceDriverManagerDataSource
- All Implemented Interfaces:
- Wrapper, CommonDataSource, DataSource, InitializingBean
public class SpaceDriverManagerDataSource
- extends AbstractDataSource
- implements InitializingBean
A simple Jdbc DataSource
based on a space
.
Returns a new Jdbc Connection
for each getConnection
.
- Author:
- kimchy
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SpaceDriverManagerDataSource
public SpaceDriverManagerDataSource()
SpaceDriverManagerDataSource
public SpaceDriverManagerDataSource(IJSpace space)
setSpace
public void setSpace(IJSpace space)
setGigaSpace
public void setGigaSpace(GigaSpace gigaSpace)
afterPropertiesSet
public void afterPropertiesSet()
throws Exception
- Specified by:
afterPropertiesSet
in interface InitializingBean
- Throws:
Exception
getConnection
public Connection getConnection()
throws SQLException
- Specified by:
getConnection
in interface DataSource
- Throws:
SQLException
getConnection
public Connection getConnection(String username,
String password)
throws SQLException
- Specified by:
getConnection
in interface DataSource
- Throws:
SQLException
Copyright © GigaSpaces.