public class VdsDynamicDAODbFacadeImpl extends BaseDAODbFacade implements VdsDynamicDAO
dbFacade, dialect, jdbcTemplate, RETURN_VALUE_PARAMETER
Constructor and Description |
---|
VdsDynamicDAODbFacadeImpl() |
Modifier and Type | Method and Description |
---|---|
VdsDynamic |
get(Guid id)
Retrieves the entity with the given id.
|
List<VdsDynamic> |
getAll()
Retrieves all the entities of type
T . |
void |
remove(Guid id)
Removes the entity with the given id from the underlying store of data.
|
void |
save(VdsDynamic vds)
Persist a new instance of the entity.
|
void |
update(VdsDynamic vds)
Update an existing entity with data from the given instance.
|
void |
updateStatus(Guid id,
VDSStatus status)
Update the entity's status field only.
|
getCallsHandler, getCustomMapSqlParameterSource, setDbFacade, setDialect, setTemplate
public VdsDynamic get(Guid id)
ReadDao
get
in interface ReadDao<VdsDynamic,Guid>
id
- The id to look by (can't be null
).null
if not found.public void save(VdsDynamic vds)
ModificationDao
save
in interface ModificationDao<VdsDynamic,Guid>
vds
- The entity to persist (can't be null
).public void update(VdsDynamic vds)
ModificationDao
update
in interface ModificationDao<VdsDynamic,Guid>
vds
- The entity instance, containing data to update (can't be null
).public void remove(Guid id)
ModificationDao
remove
in interface ModificationDao<VdsDynamic,Guid>
id
- The id of the entity to remove (can't be null
).public List<VdsDynamic> getAll()
ReadDao
T
.getAll
in interface ReadDao<VdsDynamic,Guid>
public void updateStatus(Guid id, VDSStatus status)
StatusAwareDao
updateStatus
in interface StatusAwareDao<Guid,VDSStatus>
id
- The id of the entity for which to update the status field.status
- The status to update to.Copyright © 2012. All Rights Reserved.