// Path: octopus-meta/src/main/java/kr/co/bitnine/octopus/meta/model/MetaDataSource.java
// public interface MetaDataSource {
//     enum DataSourceType {
//         JDBC,
//         CATALOG,
//         METAMODEL
//     }
// 
//     String getName();
// 
//     String getDriverName();
// 
//     String getConnectionString();
// 
//     DataSourceType getDataSourceType();
// 
//     String getComment();
// 
//     Collection<MetaSchema> getSchemas();
// }


import com.google.common.collect.ImmutableMap;
import javax.sql.DataSource;
import kr.co.bitnine.octopus.meta.model.MetaDataSource;
import kr.co.bitnine.octopus.meta.model.MetaSchema;
import kr.co.bitnine.octopus.schema.OctopusDataSource;
import org.apache.calcite.linq4j.tree.Expression;
import org.apache.calcite.schema.Schema;
import org.apache.calcite.schema.SchemaPlus;
import org.apache.calcite.schema.Schemas;
import org.apache.calcite.sql.SqlDialect;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
/*
 * 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.
 */

package kr.co.bitnine.octopus.schema.jdbc;


public final class OctopusJdbcDataSource extends OctopusDataSource {
    private static final Log LOG = LogFactory.getLog(OctopusJdbcDataSource.class);

    private final SqlDialect dialect;
    private final JdbcConvention convention;
    private final DataSource dataSource;

// Path: octopus-meta/src/main/java/kr/co/bitnine/octopus/meta/model/MetaDataSource.java
// public interface MetaDataSource {
//     enum DataSourceType {
//         JDBC,
//         CATALOG,
//         METAMODEL
//     }
// 
//     String getName();
// 
//     String getDriverName();
// 
//     String getConnectionString();
// 
//     DataSourceType getDataSourceType();
// 
//     String getComment();
// 
//     Collection<MetaSchema> getSchemas();
// }


// Path: octopus-core/src/main/java/kr/co/bitnine/octopus/schema/jdbc/OctopusJdbcDataSource.java
import com.google.common.collect.ImmutableMap;
import javax.sql.DataSource;
import kr.co.bitnine.octopus.meta.model.MetaDataSource;
import kr.co.bitnine.octopus.meta.model.MetaSchema;
import kr.co.bitnine.octopus.schema.OctopusDataSource;
import org.apache.calcite.linq4j.tree.Expression;
import org.apache.calcite.schema.Schema;
import org.apache.calcite.schema.SchemaPlus;
import org.apache.calcite.schema.Schemas;
import org.apache.calcite.sql.SqlDialect;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

/*
 * 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.
 */

package kr.co.bitnine.octopus.schema.jdbc;


public final class OctopusJdbcDataSource extends OctopusDataSource {
    private static final Log LOG = LogFactory.getLog(OctopusJdbcDataSource.class);

    private final SqlDialect dialect;
    private final JdbcConvention convention;
    private final DataSource dataSource;

    public OctopusJdbcDataSource(SchemaPlus parentSchema, MetaDataSource metaDataSource) {