public class DiskImageTemplateDAODbFacadeImpl extends BaseDAODbFacade implements DiskImageTemplateDAO
dbFacade, dialect, jdbcTemplate, RETURN_VALUE_PARAMETER
Constructor and Description |
---|
DiskImageTemplateDAODbFacadeImpl() |
Modifier and Type | Method and Description |
---|---|
DiskImageTemplate |
get(Guid id)
Retrieves the entity with the given id.
|
List<DiskImageTemplate> |
getAll()
Retrieves all the entities of type
T . |
List<DiskImageTemplate> |
getAllByVmTemplate(Guid id)
Retrieves all templates related to the given VM template id.
|
DiskImageTemplate |
getByVmTemplateAndId(Guid vm,
Guid vmTemplate)
Retrieves the template with the specified VM and IT id.
|
void |
remove(Guid diskImageTemplate)
Removes the entity with the given id from the underlying store of data.
|
void |
save(DiskImageTemplate template)
Persist a new instance of the entity.
|
void |
update(DiskImageTemplate template)
Update an existing entity with data from the given instance.
|
getCallsHandler, getCustomMapSqlParameterSource, setDbFacade, setDialect, setTemplate
public DiskImageTemplate get(Guid id)
ReadDao
get
in interface ReadDao<DiskImageTemplate,Guid>
id
- The id to look by (can't be null
).null
if not found.public List<DiskImageTemplate> getAll()
ReadDao
T
.getAll
in interface ReadDao<DiskImageTemplate,Guid>
public void save(DiskImageTemplate template)
ModificationDao
save
in interface ModificationDao<DiskImageTemplate,Guid>
template
- The entity to persist (can't be null
).public void update(DiskImageTemplate template)
ModificationDao
update
in interface ModificationDao<DiskImageTemplate,Guid>
template
- The entity instance, containing data to update (can't be null
).public void remove(Guid diskImageTemplate)
ModificationDao
remove
in interface ModificationDao<DiskImageTemplate,Guid>
diskImageTemplate
- The id of the entity to remove (can't be null
).public DiskImageTemplate getByVmTemplateAndId(Guid vm, Guid vmTemplate)
DiskImageTemplateDAO
getByVmTemplateAndId
in interface DiskImageTemplateDAO
vm
- the VM idvmTemplate
- the template idpublic List<DiskImageTemplate> getAllByVmTemplate(Guid id)
DiskImageTemplateDAO
getAllByVmTemplate
in interface DiskImageTemplateDAO
id
- the VM template idCopyright © 2012. All Rights Reserved.