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

com.github.ddth.djs.bo.job.IJobDao Maven / Gradle / Ivy

The newest version!
package com.github.ddth.djs.bo.job;

/**
 * DAO to interact with {@link JobInfoBo} storage.
 * 
 * @author Thanh Nguyen 
 * @since 0.1.0
 */
public interface IJobDao {
    /**
     * Persists a new job info to storage.
     * 
     * @param jobInfo
     * @return
     */
    public boolean create(JobInfoBo jobInfo);

    /**
     * Deletes an existing job info from storage.
     * 
     * @param jobInfo
     * @return
     */
    public boolean delete(JobInfoBo jobInfo);

    /**
     * Updates an exiting job info.
     * 
     * @param jobInfo
     * @return
     */
    public boolean update(JobInfoBo jobInfo);

    /**
     * Fetches an existing job info from storage.
     * 
     * @param id
     * @return
     */
    public JobInfoBo getJobInfo(String id);

    /**
     * Fetches an existing job execution info from storage.
     * 
     * @param id
     * @return
     * @since 0.1.3
     */
    public JobExecInfoBo getJobExecInfo(String id);

    /**
     * Creates a new of updates an existing job execution info.
     * 
     * @param jobExecInfo
     * @return
     * @since 0.1.3
     */
    public boolean createOrUpdate(JobExecInfoBo jobExecInfo);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy