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.EwvReferences;
import java.math.BigDecimal;
import java.util.List;

/**
* Repository Interface used to access the information in the EWV_REFERENCES
* table.
*
* @author
DNS
*
*/
@Repository
public interface IEwvPdfReferenceRepository extends JpaRepository<EwvReferences, 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 EwvReferences objects in the
* EWV_REFERENCES table.
*
* @return - a List of EwvReferences objects
*/
//List<EwvReferences> findAll();

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

/**
* Built-in method that gets a List of all the EwvReferences objects that
* have the given "referenceName".
*
* @param referenceName
* - the Reference Name of interest
*
* @return - the List of EwvReferences objects that meet the search criteria
*/
List<EwvReferences> findByReferenceName(String referenceName);

/**
* Built-in method that gets a List of all the EwvReferences objects that
* have the given "referenceName" and "archive" value.
*
* @param referenceName
* - the Reference Name of interest
* @param archive
* - the archive value of interest; should be "true" or "false"
*
* @return - the List of EwvReferences objects that meet the search criteria
*/
List<EwvReferences> findByReferenceNameAndArchive(String referenceName, String archive);

/**
* Built-in method that gets a List of all the EwvRefences objects that have
* the given "referenceFileName".
*
* @param referenceFileName
* - the Reference File Name of interest
*
* @return - the List of EwvReferences objects that meet the search criteria
*/
List<EwvReferences> findByReferenceFileName(String referenceFileName);

/**
* Built-in method that gets a List of all the EwvReferences objects that
* have the given "referenceFileName" and "archive" value.
*
* @param referenceFileName
* - the Reference File Name of interest
* @param archive
* - the archive value of interest; should be "true" or "false"
*
* @return - the List of EwvReferences objects that meet the search criteria
*/
List<EwvReferences> findByReferenceFileNameAndArchive(String referenceFileName, String archive);

/**
* Built-in method that gets a List of all the EwvReferences objects that
* have the given "referenceName" and "referenceFileName".
*
* @param referenceName
* - the Reference Name of interest
* @param referenceFileName
* - the Reference File Name of interest
*
* @return - the List of EwvReferences objects that meet the search criteria
*/
List<EwvReferences> findByReferenceNameAndReferenceFileName(String referenceName, String referenceFileName);

/**
* Built-in method that gets a List of all the EwvReferences objects that
* have the given "referenceName", "referenceFileName" and "archive" value.
*
* @param referenceName
* - the Reference Name of interest
* @param referenceFileName
* - the Reference File Name of interest
* @param archive
* - the archive value of interest; should be "true" or "false"
*
* @return - the List of EwvReferences objects that meet the search criteria
*/
List<EwvReferences> findByReferenceNameAndReferenceFileNameAndArchive(String referenceName,
String referenceFileName, String archive);

/**
* Built-in method that gets a List of all the EwvRefences objects that have
* the given "archive" value.
*
* @param archive
* - the archive value of interest; should be "true" or "false"
* @return - the List of EwvReferences objects that meet the search criteria
*/
List<EwvReferences> findByArchive(String archive);

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

EwvReferences findByGuid(BigDecimal bigDecimal);
}