@teqfw/core
Version:
Core functionalities for plugin scanning, local configuration management, and command-line utilities for building modern web applications with the Tequila Framework.
63 lines (58 loc) • 1.95 kB
JavaScript
/**
* Interface for managing data in the execution context.
*
* This interface provides a contract for performing CRUD operations
* and handling context-specific data storage and retrieval.
*
* @interface TeqFw_Core_Shared_Api_Repo_Context
*/
export default class TeqFw_Core_Shared_Api_Repo_Context {
/**
* Composes a new entity DTO.
*
* This method creates a complete entity data transfer object (DTO) using
* the provided initial data.
*
* @param {Object} dto - Initial data for composing the entity.
* @returns {Object} - The composed entity DTO.
*/
composeEntity(dto) {}
/**
* Creates a new entry in the execution context.
*
* This method stores a new record in the execution context based on the provided data.
*
* @param {Object} context - The execution context (e.g., request object).
* @param {Object} data - The data to be saved in the context.
* @returns {void}
*/
create(context, data) {}
/**
* Deletes data from the execution context.
*
* This method removes a record from the execution context.
*
* @param {Object} context - The execution context (e.g., request object).
* @returns {void}
*/
delete(context) {}
/**
* Reads data from the execution context.
*
* This method retrieves a record from the execution context.
*
* @param {Object} context - The execution context (e.g., request object).
* @returns {Object} - The retrieved data from the context.
*/
read(context) {}
/**
* Updates data in the execution context.
*
* This method modifies an existing record in the execution context with new data.
*
* @param {Object} context - The execution context (e.g., request object).
* @param {Object} data - The new data to update in the context.
* @returns {void}
*/
update(context, data) {}
}