GigaSpaces XAP 9.7.2 API

org.openspaces.jdbc.datasource
Class SpaceDriverManagerDataSource

java.lang.Object
  extended by org.springframework.jdbc.datasource.AbstractDataSource
      extended by 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

Field Summary
 
Fields inherited from class org.springframework.jdbc.datasource.AbstractDataSource
logger
 
Constructor Summary
SpaceDriverManagerDataSource()
           
SpaceDriverManagerDataSource(IJSpace space)
           
 
Method Summary
 void afterPropertiesSet()
           
 Connection getConnection()
           
 Connection getConnection(String username, String password)
           
 void setGigaSpace(GigaSpace gigaSpace)
           
 void setSpace(IJSpace space)
           
 
Methods inherited from class org.springframework.jdbc.datasource.AbstractDataSource
getLoginTimeout, getLogWriter, getParentLogger, isWrapperFor, setLoginTimeout, setLogWriter, unwrap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpaceDriverManagerDataSource

public SpaceDriverManagerDataSource()

SpaceDriverManagerDataSource

public SpaceDriverManagerDataSource(IJSpace space)
Method Detail

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

GigaSpaces XAP 9.7.2 API

Copyright © GigaSpaces.