public interface UnitConversionClient
| Modifier and Type | Method and Description |
|---|---|
net.sparkworks.cargo.common.dto.UnitConversionDTO |
create(UUID sourceUuid,
UUID targetUuid,
String method)
Create a UnitConversion
|
void |
delete(UUID uuid)
Delete a UnitConversion by its UUID
|
net.sparkworks.cargo.common.dto.UnitConversionDTO |
getByUUID(UUID uuid)
Get a UnitConversion by its UUID
|
Collection<net.sparkworks.cargo.common.dto.UnitConversionDTO> |
listAll()
Retrieve all the UnitConversions
|
Collection<net.sparkworks.cargo.common.dto.UnitConversionDTO> |
query(UUID sourceUuid,
UUID targetUuid,
UUID uuid)
Retrieve a Collection of UnitConversion by source Unit UUID, target Unit UUID and UnitConversion UUID
The query will try to find conversions with the following priority:
1) find UnitConversion that has source with sourceUuid and target with targetUuid
2) find UnitConversions that has source with sourceUuid
3) find UnitConversions that has target with targetUuid
4) find UnitConversion with uuid
If no conversion is found then UnitConversionNotFoundException is thrown
|
Collection<net.sparkworks.cargo.common.dto.UnitConversionDTO> listAll()
Collection containing all the UnitConversionDTO.net.sparkworks.cargo.common.dto.UnitConversionDTO getByUUID(UUID uuid)
uuid - the UUID of the UnitConversion to retrieveUnitConversionDTO foundnet.sparkworks.cargo.common.dto.UnitConversionDTO create(UUID sourceUuid, UUID targetUuid, String method)
void delete(UUID uuid)
uuid - the UUID of the UnitConversion to deleteCollection<net.sparkworks.cargo.common.dto.UnitConversionDTO> query(UUID sourceUuid, UUID targetUuid, UUID uuid)
sourceUuid - the UUID of the source UnittargetUuid - the UUID of the target Unituuid - the UUID of the UnitConversion to retrieveCollection of UnitConversionDTO that contains all the Unit Conversions foundCopyright © 2018. All rights reserved.