Search in sources :

Example 1 with OracleParameters

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;
}
Also used : DatabaseV4Request(com.sequenceiq.cloudbreak.api.endpoint.v4.database.requests.DatabaseV4Request)

Example 2 with OracleParameters

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);
}
Also used : OracleParameters(com.sequenceiq.cloudbreak.api.endpoint.v4.database.requests.OracleParameters)

Example 3 with 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;
}
Also used : OracleParameters(com.sequenceiq.cloudbreak.api.endpoint.v4.database.requests.OracleParameters)

Aggregations

OracleParameters (com.sequenceiq.cloudbreak.api.endpoint.v4.database.requests.OracleParameters)2 DatabaseV4Request (com.sequenceiq.cloudbreak.api.endpoint.v4.database.requests.DatabaseV4Request)1