Java Code Examples for org.quartz.impl.jdbcjobstore.StdJDBCDelegate

The following examples show how to use org.quartz.impl.jdbcjobstore.StdJDBCDelegate. These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source Project: quarkus   Source File: QuartzProcessor.java    License: Apache License 2.0 6 votes vote down vote up
private String guessDriver(Optional<JdbcDataSourceBuildItem> jdbcDataSource) {
    if (!jdbcDataSource.isPresent()) {
        return StdJDBCDelegate.class.getName();
    }

    String dataSourceKind = jdbcDataSource.get().getDbKind();
    if (DatabaseKind.isPostgreSQL(dataSourceKind)) {
        return PostgreSQLDelegate.class.getName();
    }
    if (DatabaseKind.isH2(dataSourceKind)) {
        return HSQLDBDelegate.class.getName();
    }
    if (DatabaseKind.isMsSQL(dataSourceKind)) {
        return MSSQLDelegate.class.getName();
    }

    return StdJDBCDelegate.class.getName();

}
 
Example 2
Source Project: nexus-public   Source File: JobStoreJdbcProvider.java    License: Eclipse Public License 1.0 5 votes vote down vote up
private String getDriverDelegateClass() throws SQLException {
  switch(getDatabaseId()) {
    case "H2":
      return HSQLDBDelegate.class.getName();
    case "PostgreSQL":
      return PostgreSQLDelegate.class.getName();
    case "OrientDB":
      return OrientDelegate.class.getName();
    default:
      return StdJDBCDelegate.class.getName();
  }
}
 
Example 3
Source Project: quartz-glass   Source File: Configuration.java    License: Apache License 2.0 5 votes vote down vote up
public String getDriverDelegateClass() {
    if (store == Store.ORACLE) {
        return OracleDelegate.class.getName();
    } else if (store == Store.MYSQL) {
        return StdJDBCDelegate.class.getName();
    }

    return "";
}