All Downloads are FREE. Search and download functionalities are using the official Maven repository.

au.net.causal.maven.plugins.boxdb.db.JdbcDriverInfo Maven / Gradle / Ivy

package au.net.causal.maven.plugins.boxdb.db;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

public class JdbcDriverInfo
{
    private final List dependencies;
    private final String driverClassName;
    private final String downloadUrl;

    public JdbcDriverInfo(RunnerDependency dependency, String driverClassName)
    {
        this(Collections.singletonList(dependency), driverClassName);
    }

    public JdbcDriverInfo(RunnerDependency dependency, String driverClassName, String downloadUrl)
    {
        this(Collections.singletonList(dependency), driverClassName, downloadUrl);
    }

    public JdbcDriverInfo(List dependencies, String driverClassName)
    {
        this(dependencies, driverClassName, null);
    }

    public JdbcDriverInfo(List dependencies, String driverClassName, String downloadUrl)
    {
        this.dependencies = Collections.unmodifiableList(new ArrayList<>(dependencies));
        this.driverClassName = driverClassName;
        this.downloadUrl = downloadUrl;
    }

    public List getDependencies()
    {
        return dependencies;
    }

    public String getDriverClassName()
    {
        return driverClassName;
    }

    public String getDownloadUrl()
    {
        return downloadUrl;
    }

    @Override
    public String toString()
    {
        final StringBuilder sb = new StringBuilder("JdbcDriverInfo{");
        sb.append("dependencies=").append(dependencies);
        sb.append(", driverClassName='").append(driverClassName).append('\'');
        sb.append('}');
        return sb.toString();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy