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

com.ibm.fhir.persistence.jdbc.connection.FHIRDbFlavorImpl Maven / Gradle / Ivy

There is a newer version: 4.11.1
Show newest version
/*
 * (C) Copyright IBM Corp. 2020
 *
 * SPDX-License-Identifier: Apache-2.0
 */

package com.ibm.fhir.persistence.jdbc.connection;

import com.ibm.fhir.database.utils.model.DbType;

/**
 * Describes the capability of the underlying database and the schema it has
 * been configured with.
 */
public class FHIRDbFlavorImpl implements FHIRDbFlavor {
    
    // does the database schema support multi-tenancy
    private final boolean multitenant;

    // basic type of the database (DB2, Derby etc)
    private final DbType type;
    
    public FHIRDbFlavorImpl(DbType type, boolean multitenant) {
        this.type = type;
        this.multitenant = multitenant;
    }
    
    @Override
    public boolean isMultitenant() {
        return this.multitenant;
    }

    @Override
    public DbType getType() {
        return this.type;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy