in abap-sdk/ZGOOG_SDK_UTILITIES/zgoog_bq_read_odata/zcl_bq_table_read_odata_gen.clas.abap [0:0]
METHOD PUT_CLAS.
**********************************************************************
* Copyright 2024 Google LLC *
* *
* Licensed under the Apache License, Version 2.0 (the "License"); *
* you may not use this file except in compliance with the License. *
* You may obtain a copy of the License at *
* https://www.apache.org/licenses/LICENSE-2.0 *
* Unless required by applicable law or agreed to in writing, *
* software distributed under the License is distributed on an *
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, *
* either express or implied. *
* See the License for the specific language governing permissions *
* and limitations under the License. *
**********************************************************************
DATA(lo_specification) = mo_put_operation->for-clas->add_object( p_qpcls
)->set_package( p_devc
)->create_form_specification( ).
lo_specification->set_short_description( |Query Provider Class for { is_bq_table-id }| ).
lo_specification->definition->set_create_visibility( xco_cp_abap_objects=>visibility->public ).
lo_specification->definition->add_interface( 'IF_RAP_QUERY_PROVIDER' ).
lo_specification->definition->set_superclass( 'ZCL_BQ_TABLE_READ_BASE' ).
lo_specification->implementation->add_method( |IF_RAP_QUERY_PROVIDER~SELECT|
)->set_source( VALUE #(
( | select( | )
( | iv_key = '{ p_key }' | )
( | iv_table = '{ is_bq_table-id }' | )
( | iv_dataset = '{ p_dset }' | )
( | io_request = io_request | )
( | io_response = io_response ).| )
) ).