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

com.sap.cds.jdbc.h2.H2DbContextFactory Maven / Gradle / Ivy

There is a newer version: 3.6.1
Show newest version
/*******************************************************************
 * © 2021 SAP SE or an SAP affiliate company. All rights reserved. *
 *******************************************************************/
package com.sap.cds.jdbc.h2;

import com.sap.cds.DataStoreConfiguration;
import com.sap.cds.jdbc.spi.DbContext;
import com.sap.cds.jdbc.spi.DbContextFactory;

public final class H2DbContextFactory implements DbContextFactory {
	@Override
	public boolean supports(String productName) {
		return "H2".equals(productName);
	}

	@Override
	public DbContext create(DataStoreConfiguration config, int majorVersion) {
		return new H2DbContext(config);
	}
};




© 2015 - 2024 Weber Informatics LLC | Privacy Policy