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

org.ikasan.spec.scheduled.job.dao.BridgingJobDao Maven / Gradle / Ivy

package org.ikasan.spec.scheduled.job.dao;

import org.ikasan.spec.scheduled.job.model.BridgingJobRecord;
import org.ikasan.spec.scheduled.job.model.ContextStartJobRecord;
import org.ikasan.spec.search.SearchResults;

public interface BridgingJobDao {

    /**
     * Retrieves a list of search results for a specified limit and offset.
     *
     * @param limit The maximum number of results to retrieve.
     * @param offset The starting index of the results to retrieve.
     * @return A list of search results with a total count and query response time.
     */
    SearchResults findAll(int limit, int offset);

    /**
     * Retrieves a list of search results for a specified limit and offset within a given context.
     *
     * @param contextId The ID of the context.
     * @param limit The maximum number of results to retrieve.
     * @param offset The starting index of the results to retrieve.
     * @return A {@link SearchResults} object containing the search results within the specified context.
     */
    SearchResults findByContext(String contextId, int limit, int offset);

    /**
     * Retrieves the object with the specified ID.
     *
     * @param id The ID of the object to retrieve.
     * @return The object with the specified ID.
     */
    T findById(String id);

    /**
     * Persists the given record.
     *
     * @param record The record to be saved.
     */
    void save(T record);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy