com.sap.cds.connector.CdsDataStoreConnectorBuilder Maven / Gradle / Ivy
The newest version!
/*******************************************************************
* © 2021 SAP SE or an SAP affiliate company. All rights reserved. *
*******************************************************************/
package com.sap.cds.connector;
import java.sql.Connection;
import java.util.function.Supplier;
import javax.sql.DataSource;
import com.google.common.annotations.Beta;
import com.sap.cds.CdsDataStoreConnector;
import com.sap.cds.DataStoreConfiguration;
/**
* Builder interface to programmatically create a {@link CdsDataStoreConnector}.
*/
@Beta
public interface CdsDataStoreConnectorBuilder {
/**
* Set the data source
*
* @param datasource the data source
* @return this builder
*/
CdsDataStoreConnectorBuilder datasource(DataSource datasource);
/**
* Set the connection supplier
*
* @param connectionSupplier the connection supplier
* @return this builder
*/
CdsDataStoreConnectorBuilder connection(Supplier connectionSupplier);
/**
* Set the data store configuration
*
* @param dataStoreConfiguration the data store configuration
* @return this builder
*/
CdsDataStoreConnectorBuilder config(DataStoreConfiguration dataStoreConfiguration);
/**
* Build the {@link CdsDataStoreConnector}
*
* @return the {@link CdsDataStoreConnector} object
*/
CdsDataStoreConnector build();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy