public class VmNetworkInterfaceDAODbFacadeImpl extends BaseDAODbFacade implements VmNetworkInterfaceDAO
VmNetworkInterfaceDAODbFacadeImpl
provides an implementation of VmNetworkInterfaceDAO
.dbFacade, dialect, jdbcTemplate, RETURN_VALUE_PARAMETER
Constructor and Description |
---|
VmNetworkInterfaceDAODbFacadeImpl() |
Modifier and Type | Method and Description |
---|---|
VmNetworkInterface |
get(Guid id)
Retrieves the entity with the given id.
|
List<VmNetworkInterface> |
getAll()
Retrieves all the entities of type
T . |
List<VmNetworkInterface> |
getAllForTemplate(Guid id)
Retrieves all interfaces for the given template id.
|
List<VmNetworkInterface> |
getAllForVm(Guid id)
Retrieves all interfaces for the given VM id.
|
void |
remove(Guid id)
Removes the entity with the given id from the underlying store of data.
|
void |
save(VmNetworkInterface stats)
Persist a new instance of the entity.
|
void |
update(VmNetworkInterface iface)
Update an existing entity with data from the given instance.
|
getCallsHandler, getCustomMapSqlParameterSource, setDbFacade, setDialect, setTemplate
public VmNetworkInterface get(Guid id)
ReadDao
get
in interface ReadDao<VmNetworkInterface,Guid>
id
- The id to look by (can't be null
).null
if not found.public List<VmNetworkInterface> getAllForVm(Guid id)
VmNetworkInterfaceDAO
getAllForVm
in interface VmNetworkInterfaceDAO
id
- the Vm idpublic List<VmNetworkInterface> getAllForTemplate(Guid id)
VmNetworkInterfaceDAO
getAllForTemplate
in interface VmNetworkInterfaceDAO
id
- the template idpublic void save(VmNetworkInterface stats)
ModificationDao
save
in interface ModificationDao<VmNetworkInterface,Guid>
stats
- The entity to persist (can't be null
).public void update(VmNetworkInterface iface)
ModificationDao
update
in interface ModificationDao<VmNetworkInterface,Guid>
iface
- The entity instance, containing data to update (can't be null
).public void remove(Guid id)
ModificationDao
remove
in interface ModificationDao<VmNetworkInterface,Guid>
id
- The id of the entity to remove (can't be null
).public List<VmNetworkInterface> getAll()
ReadDao
T
.getAll
in interface ReadDao<VmNetworkInterface,Guid>
Copyright © 2012. All Rights Reserved.