Class ReadOnlyDriverManagerDataSource

  • All Implemented Interfaces:
    java.sql.Wrapper, javax.sql.CommonDataSource, javax.sql.DataSource

    public class ReadOnlyDriverManagerDataSource
    extends org.springframework.jdbc.datasource.DriverManagerDataSource
    Used for secondary datasources that are read-only and not pooled.
    • Field Summary

      • Fields inherited from class org.springframework.jdbc.datasource.AbstractDataSource

        logger
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.sql.Connection getConnectionFromDriverManager​(java.lang.String url, java.util.Properties props)  
      • Methods inherited from class org.springframework.jdbc.datasource.DriverManagerDataSource

        getConnectionFromDriver, setDriverClassName
      • Methods inherited from class org.springframework.jdbc.datasource.AbstractDriverBasedDataSource

        getCatalog, getConnection, getConnection, getConnectionFromDriver, getConnectionProperties, getPassword, getSchema, getUrl, getUsername, setCatalog, setConnectionProperties, setPassword, setSchema, setUrl, setUsername
      • 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
      • Methods inherited from interface javax.sql.CommonDataSource

        createShardingKeyBuilder
      • Methods inherited from interface javax.sql.DataSource

        createConnectionBuilder
    • Constructor Detail

      • ReadOnlyDriverManagerDataSource

        public ReadOnlyDriverManagerDataSource()
    • Method Detail

      • getConnectionFromDriverManager

        protected java.sql.Connection getConnectionFromDriverManager​(java.lang.String url,
                                                                     java.util.Properties props)
                                                              throws java.sql.SQLException
        Overrides:
        getConnectionFromDriverManager in class org.springframework.jdbc.datasource.DriverManagerDataSource
        Throws:
        java.sql.SQLException