public class VdcOptionDAODbFacadeImpl extends BaseDAODbFacade implements VdcOptionDAO
VdcOptionDAODbFacadeImpl
provides a concrete implementation of VdcOptionDAO
using code
refactored from DbFacade
.dbFacade, dialect, jdbcTemplate, RETURN_VALUE_PARAMETER
Constructor and Description |
---|
VdcOptionDAODbFacadeImpl() |
Modifier and Type | Method and Description |
---|---|
VdcOption |
get(int id)
Retrieves the option with the specified id.
|
List<VdcOption> |
getAll()
Retrieves all options.
|
VdcOption |
getByNameAndVersion(String name,
String version)
Retrieves the option with the specified name.
|
void |
remove(int id)
Removes the option with the specified id.
|
void |
save(VdcOption option)
Saves the supplied option.
|
void |
update(VdcOption option)
Updates the specified option.
|
getCallsHandler, getCustomMapSqlParameterSource, setDbFacade, setDialect, setTemplate
public VdcOption get(int id)
VdcOptionDAO
get
in interface VdcOptionDAO
id
- the option idpublic VdcOption getByNameAndVersion(String name, String version)
VdcOptionDAO
getByNameAndVersion
in interface VdcOptionDAO
name
- the option nameversion
- the versionpublic List<VdcOption> getAll()
VdcOptionDAO
getAll
in interface VdcOptionDAO
public void save(VdcOption option)
VdcOptionDAO
save
in interface VdcOptionDAO
option
- the optionpublic void update(VdcOption option)
VdcOptionDAO
update
in interface VdcOptionDAO
option
- the optionpublic void remove(int id)
VdcOptionDAO
remove
in interface VdcOptionDAO
id
- the optionCopyright © 2012. All Rights Reserved.