com.sap.cloud.sdk.hana.connectivity.handler.DataSourceHandlerFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hana-connectivity-cds Show documentation
Show all versions of hana-connectivity-cds Show documentation
SAP Cloud Platform SDK for service development
/*******************************************************************************
* (c) 201X SAP SE or an SAP affiliate company. All rights reserved.
******************************************************************************/
package com.sap.cloud.sdk.hana.connectivity.handler;
import java.sql.Connection;
public class DataSourceHandlerFactory {
private static DataSourceHandlerFactory dsHandlerFactory = null;
public static DataSourceHandlerFactory getInstance(){
if(dsHandlerFactory == null){
dsHandlerFactory = new DataSourceHandlerFactory();
}
return dsHandlerFactory;
}
public CDSDataSourceHandler getCDSHandler(Connection conn, String nameSpace){
CDSDataSourceHandler cdsHandler = new CDSDataSourceHandlerImpl(conn, nameSpace);
return cdsHandler;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy