public class VdsStaticDAODbFacadeImpl extends BaseDAODbFacade implements VdsStaticDAO
VdsDAODbFacadeImpl
provides an implementation of VdsDAO
that uses previously written code from
DbFacade
.dbFacade, dialect, jdbcTemplate, RETURN_VALUE_PARAMETER
Constructor and Description |
---|
VdsStaticDAODbFacadeImpl() |
Modifier and Type | Method and Description |
---|---|
static String |
decryptPassword(String password) |
static String |
encryptPassword(String password) |
VdsStatic |
get(Guid id)
Retrieves the entity with the given id.
|
VdsStatic |
get(String name)
Finds the instance with the specified name.
|
List<VdsStatic> |
getAll()
Retrieves all the entities of type
T . |
List<VdsStatic> |
getAllForHost(String host)
Retrieves all instances for the given host.
|
List<VdsStatic> |
getAllForVdsGroup(Guid vdsGroup)
Retrieves all instances associated with the specified VDS group.
|
List<VdsStatic> |
getAllWithIpAddress(String address)
Finds all instances with the given ip address.
|
void |
remove(Guid id)
Removes the entity with the given id from the underlying store of data.
|
void |
save(VdsStatic vds)
Persist a new instance of the entity.
|
void |
update(VdsStatic vds)
Update an existing entity with data from the given instance.
|
getCallsHandler, getCustomMapSqlParameterSource, setDbFacade, setDialect, setTemplate
public VdsStatic get(Guid id)
ReadDao
public VdsStatic get(String name)
VdsStaticDAO
get
in interface VdsStaticDAO
name
- the namepublic List<VdsStatic> getAllForHost(String host)
VdsStaticDAO
getAllForHost
in interface VdsStaticDAO
host
- the hostpublic List<VdsStatic> getAllWithIpAddress(String address)
VdsStaticDAO
getAllWithIpAddress
in interface VdsStaticDAO
address
- the ip addresspublic List<VdsStatic> getAllForVdsGroup(Guid vdsGroup)
VdsStaticDAO
getAllForVdsGroup
in interface VdsStaticDAO
vdsGroup
- the group idpublic void save(VdsStatic vds)
ModificationDao
save
in interface ModificationDao<VdsStatic,Guid>
vds
- The entity to persist (can't be null
).public void update(VdsStatic vds)
ModificationDao
update
in interface ModificationDao<VdsStatic,Guid>
vds
- The entity instance, containing data to update (can't be null
).public void remove(Guid id)
ModificationDao
remove
in interface ModificationDao<VdsStatic,Guid>
id
- The id of the entity to remove (can't be null
).public List<VdsStatic> getAll()
ReadDao
T
.Copyright © 2012. All Rights Reserved.