Package net.plsar

Class ExecutableDatasource

java.lang.Object
net.plsar.ExecutableDatasource
All Implemented Interfaces:
java.sql.Wrapper, javax.sql.CommonDataSource, javax.sql.DataSource

public class ExecutableDatasource
extends java.lang.Object
implements javax.sql.DataSource
  • Constructor Details

  • Method Details

    • create

      public void create()
    • addConnection

      protected void addConnection() throws java.lang.InterruptedException
      Throws:
      java.lang.InterruptedException
    • getConnection

      public java.sql.Connection getConnection()
      Specified by:
      getConnection in interface javax.sql.DataSource
    • createConnection

      protected java.sql.Connection createConnection()
    • getConnection

      public java.sql.Connection getConnection​(java.lang.String username, java.lang.String password) throws ExecutableDatasource.PapiException
      Specified by:
      getConnection in interface javax.sql.DataSource
      Throws:
      ExecutableDatasource.PapiException
    • getLogWriter

      public java.io.PrintWriter getLogWriter() throws java.sql.SQLException
      Specified by:
      getLogWriter in interface javax.sql.CommonDataSource
      Specified by:
      getLogWriter in interface javax.sql.DataSource
      Throws:
      java.sql.SQLException
    • setLogWriter

      public void setLogWriter​(java.io.PrintWriter out) throws java.sql.SQLException
      Specified by:
      setLogWriter in interface javax.sql.CommonDataSource
      Specified by:
      setLogWriter in interface javax.sql.DataSource
      Throws:
      java.sql.SQLException
    • setLoginTimeout

      public void setLoginTimeout​(int seconds) throws java.sql.SQLException
      Specified by:
      setLoginTimeout in interface javax.sql.CommonDataSource
      Specified by:
      setLoginTimeout in interface javax.sql.DataSource
      Throws:
      java.sql.SQLException
    • getLoginTimeout

      public int getLoginTimeout() throws java.sql.SQLException
      Specified by:
      getLoginTimeout in interface javax.sql.CommonDataSource
      Specified by:
      getLoginTimeout in interface javax.sql.DataSource
      Throws:
      java.sql.SQLException
    • getParentLogger

      public java.util.logging.Logger getParentLogger() throws java.sql.SQLFeatureNotSupportedException
      Specified by:
      getParentLogger in interface javax.sql.CommonDataSource
      Throws:
      java.sql.SQLFeatureNotSupportedException
    • unwrap

      public <T> T unwrap​(java.lang.Class<T> iface) throws ExecutableDatasource.PapiException
      Specified by:
      unwrap in interface java.sql.Wrapper
      Throws:
      ExecutableDatasource.PapiException
    • isWrapperFor

      public boolean isWrapperFor​(java.lang.Class<?> iface) throws ExecutableDatasource.PapiException
      Specified by:
      isWrapperFor in interface java.sql.Wrapper
      Throws:
      ExecutableDatasource.PapiException