Summary Table

Categories Total Count
PII 0
URL 0
DNS 1
EKL 0
IP 0
PORT 0
VsID 0
CF 0
AI 0
VPD 0
PL 0
Other 0

File Content

package gov.va.med.ars.dao.ewv;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import gov.va.med.domain.ewv.EwvLinkedPdis;
import java.math.BigDecimal;
import java.util.List;

/**
* Repository Interface used to access the information in the EWV_LINKED_PDIS
* table.
*
* @author
DNS
*
*/
@Repository
public interface IEwvLinkedPdisRepository extends JpaRepository<EwvLinkedPdis, BigDecimal> {

/**
* Reference material for below methods obtained from: 1)
* https://docs.spring.io/spring-data/jpa/docs/1.5.0.RC1/reference/html/jpa.repositories.html
* 2)
* https://docs.spring.io/spring-data/jpa/docs/1.5.0.RC1/reference/html/repositories.html#repositories.query-methods
* 3)
* https://docs.spring.io/spring-data/jpa/docs/current/api/org/springframework/data/jpa/repository/JpaRepository.html
* 4)
* https://stackoverflow.com/questions/46591924/insert-a-new-row-using-jparepository-in-java
* 5) http://www.javainterviewpoint.com/spring-data-jpa-crud-example
*/

/**
* Built-in method that gets all the EwvLinkedPdis objects in the
* EWV_LINKED_PDIS table.
*
* @return - a List of EwvLinkedPdis objects
*/
List<EwvLinkedPdis> findAll();

/**
* Built-in method that gets the EwvLinkedPdis object that has the given
* unique "id".
*
* @param id
* - the unique identifier of the EwvLinkedPdis object one wishes
* to get from the EwvLinkedPdis table of the database
*
* @return - the EwvLinkedPdis object that has the given unique "id"
*/
EwvLinkedPdis findOne(BigDecimal id);

/**
* Built-in method that saves and commits into the database the given
* EwvLinkedPdis object into the EWV_LINKED_PDIS table. This method can be
* used for both inserting a new EwvLinkedPdis object or updating an
* existing EwvLinkedPdis object in the database.
*
* @param EwvLinkedPdis
* - an EwvLinkedPdis object to be inserted or updated into the
* EWV_LINKED_PDIS table of the database
*
*
* @return - the saved EwvLinkedPdis object that got either inserted or
* updated into the EWV_LINKED_PDIS table of the database
*/
@SuppressWarnings("unchecked")
EwvLinkedPdis saveAndFlush(EwvLinkedPdis EwvLinkedPdis);

List<EwvLinkedPdis> findByCurrentPdi(String currentPdi);

List<EwvLinkedPdis> findByOriginalPdi(String originalPdi);

EwvLinkedPdis findByGuid(BigDecimal bigDecimal);
}