org.pentaho.platform.dataaccess.datasource.wizard.service.gwt
Interface IConnectionService

All Known Subinterfaces:
IGwtConnectionService
All Known Implementing Classes:
ConnectionDebugGwtServlet, ConnectionServiceClient, ConnectionServiceImpl, InMemoryConnectionServiceImpl

public interface IConnectionService

The IConnectionService interface is used as a GWT and XML webservice. It is also used by the Datasource Service to map a name to an IConnection.


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)
           
 

Method Detail

getConnections

List<IConnection> getConnections()
                                 throws ConnectionServiceException
Throws:
ConnectionServiceException

getConnectionByName

IConnection getConnectionByName(String name)
                                throws ConnectionServiceException
Throws:
ConnectionServiceException

addConnection

boolean addConnection(IConnection connection)
                      throws ConnectionServiceException
Throws:
ConnectionServiceException

updateConnection

boolean updateConnection(IConnection connection)
                         throws ConnectionServiceException
Throws:
ConnectionServiceException

deleteConnection

boolean deleteConnection(IConnection connection)
                         throws ConnectionServiceException
Throws:
ConnectionServiceException

deleteConnection

boolean deleteConnection(String name)
                         throws ConnectionServiceException
Throws:
ConnectionServiceException

testConnection

boolean testConnection(IConnection connection)
                       throws ConnectionServiceException
Throws:
ConnectionServiceException

convertToConnection

IConnection convertToConnection(IDatabaseConnection connection)
                                throws ConnectionServiceException
Throws:
ConnectionServiceException

convertFromConnection

IDatabaseConnection convertFromConnection(IConnection connection)
                                          throws ConnectionServiceException
Throws:
ConnectionServiceException