package com.repository;

import com.entity.Project;
import org.springframework.stereotype.Repository;
import java.sql.SQLException;
import java.util.List;

/**
 *
 * Interface repository for the project.
 *
 * @author Laurentiu Marcut
 */
@Repository
public interface ProjectRepository {

    /**
     *
     * Select all projects.
     *
     * @param member
     * @return members
     * @throws SQLException
     */
    List<Project> selectAll(String member) throws SQLException;

    /**
     *
     * Insert project.
     *
     * @param project
     * @param createdBy
     * @throws SQLException
     */
    void insert(String project, String createdBy) throws SQLException;

    /**
     *
     * Delete project.
     *
     * @param project
     * @throws SQLException
     */
    void delete(String project) throws SQLException;

}
