Class C3p0ConnectionProviderPlugin

java.lang.Object
io.vertigo.database.plugins.sql.connection.AbstractSqlConnectionProviderPlugin
io.vertigo.database.plugins.sql.connection.c3p0.C3p0ConnectionProviderPlugin
All Implemented Interfaces:
io.vertigo.core.node.component.Activeable, io.vertigo.core.node.component.CoreComponent, io.vertigo.core.node.component.Plugin, SqlConnectionProviderPlugin, SqlConnectionProvider

public final class C3p0ConnectionProviderPlugin extends AbstractSqlConnectionProviderPlugin implements io.vertigo.core.node.component.Activeable
If there is no datasource, you have to use a simple connection provider.
See Also:
  • Constructor Details

    • C3p0ConnectionProviderPlugin

      @Inject public C3p0ConnectionProviderPlugin(Optional<String> name, String dataBaseClass, String jdbcDriver, String jdbcUrl, Optional<Integer> minPoolSize, Optional<Integer> maxPoolSize, Optional<Integer> acquireIncrement, Optional<String> configName)
      Constructor.
      Parameters:
      name - the name of the connectionProvider
      dataBaseClass - the type of database
      jdbcDriver - the class of the jdbc driver
      jdbcUrl - the jdbc url
  • Method Details

    • obtainConnection

      public SqlConnection obtainConnection()
      Provides a sql connection.
      Specified by:
      obtainConnection in interface SqlConnectionProvider
      Returns:
      Connection
    • start

      public void start()
      Specified by:
      start in interface io.vertigo.core.node.component.Activeable
    • stop

      public void stop()
      Specified by:
      stop in interface io.vertigo.core.node.component.Activeable