org.quartz.impl.jdbcjobstore.StdJDBCDelegate Java Examples

The following examples show how to use org.quartz.impl.jdbcjobstore.StdJDBCDelegate. 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 File: QuartzProcessor.java    From quarkus with 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 File: JobStoreJdbcProvider.java    From nexus-public with 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 File: Configuration.java    From quartz-glass with 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 "";
}