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

io.openlineage.sql.QuoteStyle Maven / Gradle / Ivy

There is a newer version: 1.26.0
Show newest version
/*
/* Copyright 2018-2024 contributors to the OpenLineage project
/* SPDX-License-Identifier: Apache-2.0
*/

package io.openlineage.sql;

import org.apache.commons.lang3.builder.HashCodeBuilder;

public class QuoteStyle {
  private final String database;
  private final String schema;
  private final String name;

  public QuoteStyle(String database, String schema, String name) {
    this.database = database;
    this.schema = schema;
    this.name = name;
  }

  public String database() {
    return database;
  }

  public String schema() {
    return schema;
  }

  public String name() {
    return name;
  }

  @Override
  public String toString() {
    return String.format(
        "{\"database\": %s, \"schema\": %s, \"name\": %s}", database, schema, name);
  }

  @Override
  public int hashCode() {
    return new HashCodeBuilder().append(database).append(schema).append(name).toHashCode();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy