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

java.lang.Object
  extended by org.pentaho.platform.engine.core.system.PentahoBase
      extended by org.pentaho.platform.dataaccess.datasource.wizard.service.impl.ConnectionServiceImpl
All Implemented Interfaces:
Serializable, ILogger, IConnectionService

public class ConnectionServiceImpl
extends PentahoBase
implements IConnectionService

ConnectionServiceImpl extends PenahoBase so that it inherits the ILogger functionality.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.pentaho.platform.engine.core.system.PentahoBase
EMPTYLOGID, LOGID_MASK1, LOGID_MASK2, LOGID_SEPARATOR
 
Fields inherited from interface org.pentaho.platform.api.engine.ILogger
ACTIVITY_LOG, DEBUG, ERROR, FATAL, INFO, INSTANCE_LOG, SESSION_LOG, SOLUTION_LOG, TRACE, UNKNOWN, WARN
 
Constructor Summary
ConnectionServiceImpl()
           
 
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()
           
 org.apache.commons.logging.Log getLogger()
           
 boolean testConnection(IConnection connection)
           
 boolean updateConnection(IConnection connection)
           
 
Methods inherited from class org.pentaho.platform.engine.core.system.PentahoBase
debug, debug, error, error, fatal, fatal, genLogIdFromInfo, genLogIdFromInfo, genLogIdFromSession, getLoggingLevel, getLogId, getObjectName, info, info, setLoggingLevel, setLogId, trace, trace, warn, warn
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnectionServiceImpl

public ConnectionServiceImpl()
Method Detail

getLogger

public org.apache.commons.logging.Log getLogger()
Specified by:
getLogger in class PentahoBase

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