Interface JpaDataFeedFileLobRepository<D extends JpaDataFeedFileLob>
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<D,
,String> CustomizedDataFeedFileLobRepository<D>
,org.springframework.data.repository.Repository<D,
String>
@Repository
public interface JpaDataFeedFileLobRepository<D extends JpaDataFeedFileLob>
extends org.springframework.data.repository.CrudRepository<D,String>, CustomizedDataFeedFileLobRepository<D>
Repository
for JpaDataFeedFileLob
-
Method Summary
Modifier and TypeMethodDescriptionlong
deleteByPath
(String path) Hard-deletes aJpaDataFeedFileLob
byJpaDataFeedFileLob.getPath()
.findByPath
(String path) Gets aJpaDataFeedFileLob
byJpaDataFeedFileLob.getPath()
.Methods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findAll, findAllById, findById, save, saveAll
Methods inherited from interface com.broadleafcommerce.datafeed.provider.jpa.repository.nontrackable.CustomizedDataFeedFileLobRepository
readToDestination, store
-
Method Details
-
findByPath
Gets aJpaDataFeedFileLob
byJpaDataFeedFileLob.getPath()
.- Parameters:
path
- the value ofJpaDataFeedFileLob.getPath()
to match- Returns:
- an
Optional
containing the foundJpaDataFeedFileLob
, elseOptional.empty()
-
deleteByPath
@Policy(operationTypes=DELETE) @Transactional("datafeedTransactionManager") long deleteByPath(String path) Hard-deletes aJpaDataFeedFileLob
byJpaDataFeedFileLob.getPath()
.- Parameters:
path
- the value ofJpaDataFeedFileLob.getPath()
to match- Returns:
- the number of deleted rows (should be 1 if successful, since
JpaDataFeedFileLob.getPath()
is unique)
-