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

com.sap.cds.impl.ConnectedClient Maven / Gradle / Ivy

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

import java.util.List;
import java.util.Map;
import java.util.stream.Stream;

import com.sap.cds.CdsDataStore;
import com.sap.cds.CdsDataStoreConnector.Capabilities;
import com.sap.cds.ResultBuilder;
import com.sap.cds.SessionContext;
import com.sap.cds.ql.cqn.CqnStatement;
import com.sap.cds.reflect.CdsEntity;

public interface ConnectedClient {

	PreparedCqnStatement prepare(CqnStatement statement);

	ResultBuilder executeQuery(PreparedCqnStatement preparedStmt, Map cqnParameterValues,
			CdsDataStore dataStore, boolean isTransactionRequired);

	int[] executeUpdate(PreparedCqnStatement preparedStmt, List> values);

	void setSessionContext(SessionContext session);

	/**
	 * If the current thread is associated with an active transaction it is set in
	 * rollback only mode
	 */
	void setRollbackOnly();

	Capabilities capabilities();

	void deleteAll(Stream entities);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy