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

com.sap.cds.ql.cqn.CqnUpdate Maven / Gradle / Ivy

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

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

import com.google.common.annotations.Beta;
import com.sap.cds.reflect.CdsStructuredType;

public interface CqnUpdate extends CqnFilterableStatement {

	/**
	 * The data to be updated by this statement.
	 * 
	 * @return a reference to this statement's update data
	 */
	Map data();

	/**
	 * The entries to be updated by this statement.
	 * 
	 * @return a reference to this statement's update entries
	 */
	List> entries();

	/**
	 * The setters of this statement.
	 * 
	 * @return a reference to this statement's update setters
	 */
	@Beta
	Map setters();

	/**
	 * @deprecated instead use {@link #elements(CdsEntity)}
	 */
	@Deprecated
	Stream elements();

	/**
	 * The elements to be updated by this statement.
	 * 
	 * @param target the target entity
	 * 
	 * @return a stream of the elements to be updated
	 */
	Stream elements(CdsStructuredType target);

	@Override
	default boolean isUpdate() {
		return true;
	}

	@Override
	default CqnUpdate asUpdate() {
		return this;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy