/**
* Copyright 2015-2017 The OpenZipkin Authors
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
/*
* This file is generated by jOOQ.
*/
package zipkin.storage.mysql.internal.generated;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import javax.annotation.Generated;
import org.jooq.Catalog;
import org.jooq.Table;
import org.jooq.impl.SchemaImpl;
import zipkin.storage.mysql.internal.generated.tables.ZipkinAnnotations;
import zipkin.storage.mysql.internal.generated.tables.ZipkinDependencies;
import zipkin.storage.mysql.internal.generated.tables.ZipkinSpans;
/**
* This class is generated by jOOQ.
*/
@Generated(
value = {
"http://www.jooq.org",
"jOOQ version:3.9.1"
},
comments = "This class is generated by jOOQ"
)
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class Zipkin extends SchemaImpl {
private static final long serialVersionUID = -871273855;
/**
* The reference instance of <code>zipkin</code>
*/
public static final Zipkin ZIPKIN = new Zipkin();
/**
* The table <code>zipkin.zipkin_annotations</code>.
*/
public final ZipkinAnnotations ZIPKIN_ANNOTATIONS = zipkin.storage.mysql.internal.generated.tables.ZipkinAnnotations.ZIPKIN_ANNOTATIONS;
/**
* The table <code>zipkin.zipkin_dependencies</code>.
*/
public final ZipkinDependencies ZIPKIN_DEPENDENCIES = zipkin.storage.mysql.internal.generated.tables.ZipkinDependencies.ZIPKIN_DEPENDENCIES;
/**
* The table <code>zipkin.zipkin_spans</code>.
*/
public final ZipkinSpans ZIPKIN_SPANS = zipkin.storage.mysql.internal.generated.tables.ZipkinSpans.ZIPKIN_SPANS;
/**
* No further instances allowed
*/
private Zipkin() {
super("zipkin", null);
}
/**
* {@inheritDoc}
*/
@Override
public Catalog getCatalog() {
return DefaultCatalog.DEFAULT_CATALOG;
}
@Override
public final List<Table<?>> getTables() {
List result = new ArrayList();
result.addAll(getTables0());
return result;
}
private final List<Table<?>> getTables0() {
return Arrays.<Table<?>>asList(
ZipkinAnnotations.ZIPKIN_ANNOTATIONS,
ZipkinDependencies.ZIPKIN_DEPENDENCIES,
ZipkinSpans.ZIPKIN_SPANS);
}
}