@Service @Transactional(readOnly=true) public class UsageTypeService extends Object
| Constructor and Description |
|---|
UsageTypeService(UsageTypeRepository usageTypeRepository) |
| Modifier and Type | Method and Description |
|---|---|
UsageType |
createUsageType(UsageType usageType) |
List<UsageType> |
findAll() |
List<UsageType> |
findAllByNameLike(String name) |
UsageType |
findBy(Long usageTypeId) |
UsageType |
findByCode(String code) |
UsageType |
findByCodeIgnoreCase(String code) |
UsageType |
findByName(String name) |
UsageType |
findByNameAndCode(String name,
String code) |
UsageType |
findByNameIgnoreCase(String name) |
UsageType |
findOne(Long usageTypeId) |
List<UsageType> |
getActiveUsageTypes() |
List<UsageType> |
getAllActiveUsageTypesByPropertyType(Long propertyType) |
org.springframework.data.domain.Page<UsageType> |
getListOfUsageType(Integer pageNumber,
Integer pageSize) |
List<UsageType> |
getUsageTypeListForRest() |
UsageType |
load(Long id) |
void |
updateUsageType(UsageType usageType) |
@Autowired public UsageTypeService(UsageTypeRepository usageTypeRepository)
@Transactional public void updateUsageType(UsageType usageType)
public org.springframework.data.domain.Page<UsageType> getListOfUsageType(Integer pageNumber, Integer pageSize)
public List<UsageType> getAllActiveUsageTypesByPropertyType(Long propertyType)
Copyright © 2015–2016 eGovernments Foundation. All rights reserved.