Class GenericModelService<T,S extends org.springframework.data.jpa.repository.JpaRepository<T,Long>>
java.lang.Object
org.xbricks.inventories.inventory.services.GenericModelService<T,S>
- All Implemented Interfaces:
IGenericModelService<T>
- Direct Known Subclasses:
AdapterNameService
,DeliveryService
,DepotService
,HostOperatingSystemService
,HostRoleService
,InventoryItemService
,InventoryItemStatusService
,InventoryItemTypeService
,IpAddressService
,ManufacturerService
,NetworkHostService
,NetworkInterfaceControllerService
,NetworkPrefixService
,OwnerService
,ResponsiblePersonService
,TagService
,TagTypeService
,VendorService
@Service
public abstract class GenericModelService<T,S extends org.springframework.data.jpa.repository.JpaRepository<T,Long>>
extends Object
implements IGenericModelService<T>
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
deleteById
(long id) abstract boolean
isReferencedById
(long id) loadAll()
loadById
(long id)
-
Field Details
-
modelRepository
-
-
Constructor Details
-
GenericModelService
-
-
Method Details
-
loadById
- Specified by:
loadById
in interfaceIGenericModelService<T>
-
loadAll
- Specified by:
loadAll
in interfaceIGenericModelService<T>
-
save
- Specified by:
save
in interfaceIGenericModelService<T>
-
deleteById
public void deleteById(long id) - Specified by:
deleteById
in interfaceIGenericModelService<T>
-
isReferencedById
public abstract boolean isReferencedById(long id) - Specified by:
isReferencedById
in interfaceIGenericModelService<T>
-