use of com.sequenceiq.cloudbreak.api.endpoint.v4.database.requests.OracleParameters in project cloudbreak by hortonworks.
the class DatabaseVendorTest method rdsConfigRequest.
public static DatabaseV4Request rdsConfigRequest(String jdbcUrl, Optional<OracleParameters> oracleParameters) {
DatabaseV4Request rdsConfigRequest = new DatabaseV4Request();
rdsConfigRequest.setConnectionURL(jdbcUrl);
rdsConfigRequest.setOracle(oracleParameters.orElse(null));
return rdsConfigRequest;
}
use of com.sequenceiq.cloudbreak.api.endpoint.v4.database.requests.OracleParameters in project cloudbreak by hortonworks.
the class DatabaseVendorTest method oracleParameters.
public static Optional<OracleParameters> oracleParameters(String version) {
OracleParameters oracleParameters = new OracleParameters();
oracleParameters.setVersion(version);
return Optional.of(oracleParameters);
}
use of com.sequenceiq.cloudbreak.api.endpoint.v4.database.requests.OracleParameters in project cloudbreak by hortonworks.
the class RDSConfigToDatabaseV4RequestConverter method prepareOracleRequest.
public OracleParameters prepareOracleRequest(DatabaseVendor databaseEngine) {
OracleParameters oracleParameters = null;
if (ORACLE12.equals(databaseEngine) || ORACLE11.equals(databaseEngine)) {
oracleParameters = new OracleParameters();
oracleParameters.setVersion(databaseEngine.versions().stream().findFirst().get());
}
return oracleParameters;
}
Aggregations