Package api.mpba.rastvdmy.repository
Interface CurrencyDataRepository
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<CurrencyData,
,UUID> org.springframework.data.jpa.repository.JpaRepository<CurrencyData,
,UUID> org.springframework.data.repository.ListCrudRepository<CurrencyData,
,UUID> org.springframework.data.repository.ListPagingAndSortingRepository<CurrencyData,
,UUID> org.springframework.data.repository.PagingAndSortingRepository<CurrencyData,
,UUID> org.springframework.data.repository.query.QueryByExampleExecutor<CurrencyData>
,org.springframework.data.repository.Repository<CurrencyData,
UUID>
@Repository
public interface CurrencyDataRepository
extends org.springframework.data.jpa.repository.JpaRepository<CurrencyData,UUID>
This interface represents the repository for the CurrencyData entity.
It extends JpaRepository to provide methods to manipulate CurrencyData entities.
JpaRepository is a JPA-specific extension of Repository
that provides JPA-related methods such as flushing the persistence context and deleting records in a batch.
It is annotated with @Repository to indicate that it's a component that directly accesses the database.
-
Method Summary
Modifier and TypeMethodDescriptionfindAllByCurrency
(String currencyType) Finds all CurrencyData entities by their currency type.findByCurrency
(String currency) Finds a CurrencyData entity by its currency type.Methods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, save
Methods inherited from interface org.springframework.data.jpa.repository.JpaRepository
deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, flush, getById, getOne, getReferenceById, saveAllAndFlush, saveAndFlush
Methods inherited from interface org.springframework.data.repository.ListCrudRepository
findAll, findAllById, saveAll
Methods inherited from interface org.springframework.data.repository.ListPagingAndSortingRepository
findAll
Methods inherited from interface org.springframework.data.repository.PagingAndSortingRepository
findAll
Methods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor
count, exists, findAll, findBy, findOne
-
Method Details
-
findByCurrency
Finds a CurrencyData entity by its currency type.- Parameters:
currency
- The currency type of the CurrencyData entity to find.- Returns:
- The CurrencyData entity with the given currency type, or null if no such entity exists.
-
findAllByCurrency
Finds all CurrencyData entities by their currency type.- Parameters:
currencyType
- The currency type of the CurrencyData entities to find.- Returns:
- A list of CurrencyData entities with the given currency type, or an empty list if no such entities exist.
-