railo.runtime.services
Class DataSourceServiceImpl

java.lang.Object
  extended by railo.runtime.services.ServiceSupport
      extended by railo.runtime.services.DataSourceServiceImpl
All Implemented Interfaces:
DataSourceService, Service

public class DataSourceServiceImpl
extends ServiceSupport
implements DataSourceService


Field Summary
 
Fields inherited from interface coldfusion.server.Service
STARTED, STARTING, STOOPED, STOPPING, UNINITALIZED
 
Constructor Summary
DataSourceServiceImpl()
           
 
Method Summary
 boolean disableConnection(String name)
           
 String encryptPassword(String pass)
           
 Object getCachedQuery(String key)
           
 DataSource getDatasource(String name)
           
 Struct getDatasources()
           
 String getDbdir()
           
 Struct getDefaults()
           
 Struct getDrivers()
           
 Number getMaxQueryCount()
           
 Array getNames()
           
 boolean isJadoZoomLoaded()
           
 void purgeQueryCache()
           
 void removeDatasource(String name)
           
 void setCachedQuery(String arg0, Object arg1)
           
 void setMaxQueryCount(Number maxQueryCount)
           
 boolean verifyDatasource(String name)
           
 
Methods inherited from class railo.runtime.services.ServiceSupport
getMetaData, getProperty, getResourceBundle, getStatus, restart, setProperty, start, stop
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface coldfusion.server.Service
getMetaData, getProperty, getResourceBundle, getStatus, restart, setProperty, start, stop
 

Constructor Detail

DataSourceServiceImpl

public DataSourceServiceImpl()
Method Detail

getDefaults

public Struct getDefaults()
Specified by:
getDefaults in interface DataSourceService

getMaxQueryCount

public Number getMaxQueryCount()
Specified by:
getMaxQueryCount in interface DataSourceService

setMaxQueryCount

public void setMaxQueryCount(Number maxQueryCount)
Specified by:
setMaxQueryCount in interface DataSourceService

encryptPassword

public String encryptPassword(String pass)
Specified by:
encryptPassword in interface DataSourceService

getDbdir

public String getDbdir()
Specified by:
getDbdir in interface DataSourceService

getCachedQuery

public Object getCachedQuery(String key)
Specified by:
getCachedQuery in interface DataSourceService

setCachedQuery

public void setCachedQuery(String arg0,
                           Object arg1)
Specified by:
setCachedQuery in interface DataSourceService

purgeQueryCache

public void purgeQueryCache()
                     throws IOException
Specified by:
purgeQueryCache in interface DataSourceService
Throws:
IOException

disableConnection

public boolean disableConnection(String name)
Specified by:
disableConnection in interface DataSourceService

isJadoZoomLoaded

public boolean isJadoZoomLoaded()
Specified by:
isJadoZoomLoaded in interface DataSourceService

getDrivers

public Struct getDrivers()
                  throws ServiceException,
                         SecurityException
Specified by:
getDrivers in interface DataSourceService
Throws:
ServiceException
SecurityException

getDatasources

public Struct getDatasources()
                      throws SecurityException
Specified by:
getDatasources in interface DataSourceService
Throws:
SecurityException

getNames

public Array getNames()
               throws SecurityException
Specified by:
getNames in interface DataSourceService
Throws:
SecurityException

removeDatasource

public void removeDatasource(String name)
                      throws SQLException,
                             SecurityException
Specified by:
removeDatasource in interface DataSourceService
Throws:
SQLException
SecurityException

verifyDatasource

public boolean verifyDatasource(String name)
                         throws SQLException,
                                SecurityException
Specified by:
verifyDatasource in interface DataSourceService
Throws:
SQLException
SecurityException

getDatasource

public DataSource getDatasource(String name)
                         throws SQLException,
                                SecurityException
Specified by:
getDatasource in interface DataSourceService
Throws:
SQLException
SecurityException


Copyright © 2012 Railo