org.pentaho.platform.dataaccess.datasource.wizard.service.impl
Class InMemoryConnectionServiceImpl

java.lang.Object
  extended by org.pentaho.platform.dataaccess.datasource.wizard.service.impl.InMemoryConnectionServiceImpl
All Implemented Interfaces:
IConnectionService

public class InMemoryConnectionServiceImpl
extends Object
implements IConnectionService


Constructor Summary
InMemoryConnectionServiceImpl()
           
 
Method Summary
 boolean addConnection(IConnection connection)
           
 IDatabaseConnection convertFromConnection(IConnection connection)
           
 IConnection convertToConnection(IDatabaseConnection connection)
           
 boolean deleteConnection(IConnection connection)
           
 boolean deleteConnection(String name)
           
 IConnection getConnectionByName(String name)
           
 List<IConnection> getConnections()
           
 boolean testConnection(IConnection connection)
           
 boolean updateConnection(IConnection connection)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InMemoryConnectionServiceImpl

public InMemoryConnectionServiceImpl()
Method Detail

getConnections

public List<IConnection> getConnections()
                                 throws ConnectionServiceException
Specified by:
getConnections in interface IConnectionService
Throws:
ConnectionServiceException

getConnectionByName

public IConnection getConnectionByName(String name)
                                throws ConnectionServiceException
Specified by:
getConnectionByName in interface IConnectionService
Throws:
ConnectionServiceException

addConnection

public boolean addConnection(IConnection connection)
                      throws ConnectionServiceException
Specified by:
addConnection in interface IConnectionService
Throws:
ConnectionServiceException

updateConnection

public boolean updateConnection(IConnection connection)
                         throws ConnectionServiceException
Specified by:
updateConnection in interface IConnectionService
Throws:
ConnectionServiceException

deleteConnection

public boolean deleteConnection(IConnection connection)
                         throws ConnectionServiceException
Specified by:
deleteConnection in interface IConnectionService
Throws:
ConnectionServiceException

deleteConnection

public boolean deleteConnection(String name)
                         throws ConnectionServiceException
Specified by:
deleteConnection in interface IConnectionService
Throws:
ConnectionServiceException

testConnection

public boolean testConnection(IConnection connection)
                       throws ConnectionServiceException
Specified by:
testConnection in interface IConnectionService
Throws:
ConnectionServiceException

convertFromConnection

public IDatabaseConnection convertFromConnection(IConnection connection)
                                          throws ConnectionServiceException
Specified by:
convertFromConnection in interface IConnectionService
Throws:
ConnectionServiceException

convertToConnection

public IConnection convertToConnection(IDatabaseConnection connection)
                                throws ConnectionServiceException
Specified by:
convertToConnection in interface IConnectionService
Throws:
ConnectionServiceException