@Repository(value="jpaDeviceCodeRepository") public class JpaDeviceCodeRepository extends Object implements DeviceCodeRepository
Constructor and Description |
---|
JpaDeviceCodeRepository() |
Modifier and Type | Method and Description |
---|---|
DeviceCode |
getByDeviceCode(String value) |
DeviceCode |
getById(Long id) |
DeviceCode |
getByUserCode(String value) |
Collection<DeviceCode> |
getExpiredCodes() |
void |
remove(DeviceCode scope) |
DeviceCode |
save(DeviceCode scope) |
public JpaDeviceCodeRepository()
@Transactional(value="defaultTransactionManager") public DeviceCode getById(Long id)
getById
in interface DeviceCodeRepository
@Transactional(value="defaultTransactionManager") public DeviceCode getByUserCode(String value)
getByUserCode
in interface DeviceCodeRepository
@Transactional(value="defaultTransactionManager") public DeviceCode getByDeviceCode(String value)
getByDeviceCode
in interface DeviceCodeRepository
@Transactional(value="defaultTransactionManager") public void remove(DeviceCode scope)
remove
in interface DeviceCodeRepository
@Transactional(value="defaultTransactionManager") public DeviceCode save(DeviceCode scope)
save
in interface DeviceCodeRepository
@Transactional(value="defaultTransactionManager") public Collection<DeviceCode> getExpiredCodes()
getExpiredCodes
in interface DeviceCodeRepository
Copyright © 2018. All rights reserved.