
com.sap.cloud.sdk.s4hana.datamodel.odata.services.BatchService Maven / Gradle / Ivy
/*
* Copyright (c) 2019 SAP SE or an SAP affiliate company. All rights reserved.
*/
package com.sap.cloud.sdk.s4hana.datamodel.odata.services;
import javax.annotation.Nonnull;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.batch.Batch;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.batch.BatchByKeyFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.batch.BatchCharc;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.batch.BatchCharcByKeyFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.batch.BatchCharcCreateFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.batch.BatchCharcFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.batch.BatchCharcValue;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.batch.BatchCharcValueByKeyFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.batch.BatchCharcValueCreateFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.batch.BatchCharcValueDeleteFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.batch.BatchCharcValueFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.batch.BatchCharcValueUpdateFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.batch.BatchClass;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.batch.BatchClassByKeyFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.batch.BatchClassCreateFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.batch.BatchClassDeleteFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.batch.BatchClassFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.batch.BatchCreateFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.batch.BatchFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.batch.BatchPlant;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.batch.BatchPlantByKeyFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.batch.BatchPlantFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.batch.BatchPlantUpdateFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.batch.BatchUpdateFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.batch.batch.BatchServiceBatch;
/**
*
* This service enables you to create, change and read batches with classification data. The service is based on the
* OData protocol, and can be consumed by external systems and user interfaces.
*
*
*
* Reference:
* SAP API
* Business Hub
*
* Details:
*
*
* OData Service:
* API_BATCH_SRV
*
*
* API Version:
* 1
*
*
* Communication Scenario:
* Batch Management OData Integration (SAP_COM_0337)
*
*
* Scope Items:
* Batch Management (BLF)
*
*
* Authentication Methods:
* Basic, x509, OAuth2
*
*
*
*/
public interface BatchService
extends
com.sap.cloud.sdk.s4hana.datamodel.odata.helper.batch.BatchService
{
/**
* If no other path was provided via the {@link #withServicePath(String)} method, this is the default service path
* used to access the endpoint.
*
*/
String DEFAULT_SERVICE_PATH = "/sap/opu/odata/sap/API_BATCH_SRV";
/**
* Overrides the default service path and returns a new service instance with the specified service path. Also
* adjusts the respective entity URLs.
*
* @param servicePath
* Service path that will override the default.
* @return A new service instance with the specified service path.
*/
@Nonnull
BatchService withServicePath( @Nonnull final String servicePath );
/**
* Fetch multiple {@link com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.batch.Batch Batch} entities.
*
* @return A fluent helper to fetch multiple {@link com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.batch.Batch
* Batch} entities. This fluent helper allows methods which modify the underlying query to be called before
* executing the query itself. To perform execution, call the
* {@link com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.batch.BatchFluentHelper#execute execute}
* method on the fluent helper object.
*/
@Nonnull
BatchFluentHelper getAllBatch();
/**
* Fetch a single {@link com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.batch.Batch Batch} entity using key
* fields.
*
* @param material
* Alphanumeric key uniquely identifying the material.
*
* Constraints: Not nullable, Maximum length: 18
*
* @param batchIdentifyingPlant
* Key uniquely identifying a plant.
*
* Constraints: Not nullable, Maximum length: 4
*
* @param batch
* Assigns a material that is manufactured in batches or production lots to a specific batch.
*
* Constraints: Not nullable, Maximum length: 10
*
* @return A fluent helper to fetch a single {@link com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.batch.Batch
* Batch} entity using key fields. This fluent helper allows methods which modify the underlying query to be
* called before executing the query itself. To perform execution, call the
* {@link com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.batch.BatchByKeyFluentHelper#execute execute}
* method on the fluent helper object.
*/
@Nonnull
BatchByKeyFluentHelper
getBatchByKey( final String material, final String batchIdentifyingPlant, final String batch );
/**
* Create a new {@link com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.batch.Batch Batch} entity and save it to
* the S/4HANA system.
*
* @param batch
* {@link com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.batch.Batch Batch} entity object that will
* be created in the S/4HANA system.
* @return A fluent helper to create a new {@link com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.batch.Batch
* Batch} entity. To perform execution, call the
* {@link com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.batch.BatchCreateFluentHelper#execute execute}
* method on the fluent helper object.
*/
@Nonnull
BatchCreateFluentHelper createBatch( @Nonnull final Batch batch );
/**
* Update an existing {@link com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.batch.Batch Batch} entity and save
* it to the S/4HANA system.
*
* @param batch
* {@link com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.batch.Batch Batch} entity object that will
* be updated in the S/4HANA system.
* @return A fluent helper to update an existing
* {@link com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.batch.Batch Batch} entity. To perform
* execution, call the
* {@link com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.batch.BatchUpdateFluentHelper#execute execute}
* method on the fluent helper object.
*/
@Nonnull
BatchUpdateFluentHelper updateBatch( @Nonnull final Batch batch );
/**
* Fetch multiple {@link com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.batch.BatchCharc BatchCharc} entities.
*
* @return A fluent helper to fetch multiple
* {@link com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.batch.BatchCharc BatchCharc} entities. This
* fluent helper allows methods which modify the underlying query to be called before executing the query
* itself. To perform execution, call the
* {@link com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.batch.BatchCharcFluentHelper#execute execute}
* method on the fluent helper object.
*/
@Nonnull
BatchCharcFluentHelper getAllBatchCharc();
/**
* Fetch a single {@link com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.batch.BatchCharc BatchCharc} entity
* using key fields.
*
* @param material
* Alphanumeric key uniquely identifying the material.
*
* Constraints: Not nullable, Maximum length: 18
*
* @param charcInternalID
* Internal characteristic number without conversion routine
*
* Constraints: Not nullable, Maximum length: 10
*
* @param batchIdentifyingPlant
* Key uniquely identifying a plant.
*
* Constraints: Not nullable, Maximum length: 4
*
* @param batch
* Assigns a material that is manufactured in batches or production lots to a specific batch.
*
* Constraints: Not nullable, Maximum length: 10
*
* @return A fluent helper to fetch a single
* {@link com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.batch.BatchCharc BatchCharc} entity using key
* fields. This fluent helper allows methods which modify the underlying query to be called before executing
* the query itself. To perform execution, call the
* {@link com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.batch.BatchCharcByKeyFluentHelper#execute
* execute} method on the fluent helper object.
*/
@Nonnull
BatchCharcByKeyFluentHelper getBatchCharcByKey(
final String material,
final String batchIdentifyingPlant,
final String batch,
final String charcInternalID );
/**
* Create a new {@link com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.batch.BatchCharc BatchCharc} entity and
* save it to the S/4HANA system.
*
* @param batchCharc
* {@link com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.batch.BatchCharc BatchCharc} entity object
* that will be created in the S/4HANA system.
* @return A fluent helper to create a new
* {@link com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.batch.BatchCharc BatchCharc} entity. To
* perform execution, call the
* {@link com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.batch.BatchCharcCreateFluentHelper#execute
* execute} method on the fluent helper object.
*/
@Nonnull
BatchCharcCreateFluentHelper createBatchCharc( @Nonnull final BatchCharc batchCharc );
/**
* Fetch multiple {@link com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.batch.BatchCharcValue BatchCharcValue}
* entities.
*
* @return A fluent helper to fetch multiple
* {@link com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.batch.BatchCharcValue BatchCharcValue}
* entities. This fluent helper allows methods which modify the underlying query to be called before
* executing the query itself. To perform execution, call the
* {@link com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.batch.BatchCharcValueFluentHelper#execute
* execute} method on the fluent helper object.
*/
@Nonnull
BatchCharcValueFluentHelper getAllBatchCharcValue();
/**
* Fetch a single {@link com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.batch.BatchCharcValue BatchCharcValue}
* entity using key fields.
*
* @param charcValuePositionNumber
* Characteristic value counter
*
* Constraints: Not nullable, Maximum length: 3
*
* @param material
* Alphanumeric key uniquely identifying the material.
*
* Constraints: Not nullable, Maximum length: 18
*
* @param charcInternalID
* Internal characteristic number without conversion routine
*
* Constraints: Not nullable, Maximum length: 10
*
* @param batchIdentifyingPlant
* Key uniquely identifying a plant.
*
* Constraints: Not nullable, Maximum length: 4
*
* @param batch
* Assigns a material that is manufactured in batches or production lots to a specific batch.
*
* Constraints: Not nullable, Maximum length: 10
*
* @return A fluent helper to fetch a single
* {@link com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.batch.BatchCharcValue BatchCharcValue} entity
* using key fields. This fluent helper allows methods which modify the underlying query to be called before
* executing the query itself. To perform execution, call the
* {@link com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.batch.BatchCharcValueByKeyFluentHelper#execute
* execute} method on the fluent helper object.
*/
@Nonnull
BatchCharcValueByKeyFluentHelper getBatchCharcValueByKey(
final String material,
final String batchIdentifyingPlant,
final String batch,
final String charcInternalID,
final String charcValuePositionNumber );
/**
* Create a new {@link com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.batch.BatchCharcValue BatchCharcValue}
* entity and save it to the S/4HANA system.
*
* @param batchCharcValue
* {@link com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.batch.BatchCharcValue BatchCharcValue}
* entity object that will be created in the S/4HANA system.
* @return A fluent helper to create a new
* {@link com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.batch.BatchCharcValue BatchCharcValue} entity.
* To perform execution, call the
* {@link com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.batch.BatchCharcValueCreateFluentHelper#execute
* execute} method on the fluent helper object.
*/
@Nonnull
BatchCharcValueCreateFluentHelper createBatchCharcValue( @Nonnull final BatchCharcValue batchCharcValue );
/**
* Update an existing {@link com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.batch.BatchCharcValue
* BatchCharcValue} entity and save it to the S/4HANA system.
*
* @param batchCharcValue
* {@link com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.batch.BatchCharcValue BatchCharcValue}
* entity object that will be updated in the S/4HANA system.
* @return A fluent helper to update an existing
* {@link com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.batch.BatchCharcValue BatchCharcValue} entity.
* To perform execution, call the
* {@link com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.batch.BatchCharcValueUpdateFluentHelper#execute
* execute} method on the fluent helper object.
*/
@Nonnull
BatchCharcValueUpdateFluentHelper updateBatchCharcValue( @Nonnull final BatchCharcValue batchCharcValue );
/**
* Deletes an existing {@link com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.batch.BatchCharcValue
* BatchCharcValue} entity in the S/4HANA system.
*
* @param batchCharcValue
* {@link com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.batch.BatchCharcValue BatchCharcValue}
* entity object that will be deleted in the S/4HANA system.
* @return A fluent helper to delete an existing
* {@link com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.batch.BatchCharcValue BatchCharcValue} entity.
* To perform execution, call the
* {@link com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.batch.BatchCharcValueDeleteFluentHelper#execute
* execute} method on the fluent helper object.
*/
@Nonnull
BatchCharcValueDeleteFluentHelper deleteBatchCharcValue( @Nonnull final BatchCharcValue batchCharcValue );
/**
* Fetch multiple {@link com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.batch.BatchClass BatchClass} entities.
*
* @return A fluent helper to fetch multiple
* {@link com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.batch.BatchClass BatchClass} entities. This
* fluent helper allows methods which modify the underlying query to be called before executing the query
* itself. To perform execution, call the
* {@link com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.batch.BatchClassFluentHelper#execute execute}
* method on the fluent helper object.
*/
@Nonnull
BatchClassFluentHelper getAllBatchClass();
/**
* Fetch a single {@link com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.batch.BatchClass BatchClass} entity
* using key fields.
*
* @param material
* Alphanumeric key uniquely identifying the material.
*
* Constraints: Not nullable, Maximum length: 18
*
* @param batchIdentifyingPlant
* Key uniquely identifying a plant.
*
* Constraints: Not nullable, Maximum length: 4
*
* @param batch
* Assigns a material that is manufactured in batches or production lots to a specific batch.
*
* Constraints: Not nullable, Maximum length: 10
*
* @return A fluent helper to fetch a single
* {@link com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.batch.BatchClass BatchClass} entity using key
* fields. This fluent helper allows methods which modify the underlying query to be called before executing
* the query itself. To perform execution, call the
* {@link com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.batch.BatchClassByKeyFluentHelper#execute
* execute} method on the fluent helper object.
*/
@Nonnull
BatchClassByKeyFluentHelper
getBatchClassByKey( final String material, final String batchIdentifyingPlant, final String batch );
/**
* Create a new {@link com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.batch.BatchClass BatchClass} entity and
* save it to the S/4HANA system.
*
* @param batchClass
* {@link com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.batch.BatchClass BatchClass} entity object
* that will be created in the S/4HANA system.
* @return A fluent helper to create a new
* {@link com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.batch.BatchClass BatchClass} entity. To
* perform execution, call the
* {@link com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.batch.BatchClassCreateFluentHelper#execute
* execute} method on the fluent helper object.
*/
@Nonnull
BatchClassCreateFluentHelper createBatchClass( @Nonnull final BatchClass batchClass );
/**
* Deletes an existing {@link com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.batch.BatchClass BatchClass}
* entity in the S/4HANA system.
*
* @param batchClass
* {@link com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.batch.BatchClass BatchClass} entity object
* that will be deleted in the S/4HANA system.
* @return A fluent helper to delete an existing
* {@link com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.batch.BatchClass BatchClass} entity. To
* perform execution, call the
* {@link com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.batch.BatchClassDeleteFluentHelper#execute
* execute} method on the fluent helper object.
*/
@Nonnull
BatchClassDeleteFluentHelper deleteBatchClass( @Nonnull final BatchClass batchClass );
/**
* Fetch multiple {@link com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.batch.BatchPlant BatchPlant} entities.
*
* @return A fluent helper to fetch multiple
* {@link com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.batch.BatchPlant BatchPlant} entities. This
* fluent helper allows methods which modify the underlying query to be called before executing the query
* itself. To perform execution, call the
* {@link com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.batch.BatchPlantFluentHelper#execute execute}
* method on the fluent helper object.
*/
@Nonnull
BatchPlantFluentHelper getAllBatchPlant();
/**
* Fetch a single {@link com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.batch.BatchPlant BatchPlant} entity
* using key fields.
*
* @param material
* Alphanumeric key uniquely identifying the material.
*
* Constraints: Not nullable, Maximum length: 18
*
* @param plant
* Key uniquely identifying a plant.
*
* Constraints: Not nullable, Maximum length: 4
*
* @param batch
* Assigns a material that is manufactured in batches or production lots to a specific batch.
*
* Constraints: Not nullable, Maximum length: 10
*
* @return A fluent helper to fetch a single
* {@link com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.batch.BatchPlant BatchPlant} entity using key
* fields. This fluent helper allows methods which modify the underlying query to be called before executing
* the query itself. To perform execution, call the
* {@link com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.batch.BatchPlantByKeyFluentHelper#execute
* execute} method on the fluent helper object.
*/
@Nonnull
BatchPlantByKeyFluentHelper getBatchPlantByKey( final String material, final String batch, final String plant );
/**
* Update an existing {@link com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.batch.BatchPlant BatchPlant} entity
* and save it to the S/4HANA system.
*
* @param batchPlant
* {@link com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.batch.BatchPlant BatchPlant} entity object
* that will be updated in the S/4HANA system.
* @return A fluent helper to update an existing
* {@link com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.batch.BatchPlant BatchPlant} entity. To
* perform execution, call the
* {@link com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.batch.BatchPlantUpdateFluentHelper#execute
* execute} method on the fluent helper object.
*/
@Nonnull
BatchPlantUpdateFluentHelper updateBatchPlant( @Nonnull final BatchPlant batchPlant );
}