public class NetworkDAODbFacadeImpl extends BaseDAODbFacade implements NetworkDAO
NetworkDAODbFacadeImpl
provides a concrete implementation of NetworkDAO
based on code refactored
from DbFacade
.dbFacade, dialect, jdbcTemplate, RETURN_VALUE_PARAMETER
Constructor and Description |
---|
NetworkDAODbFacadeImpl() |
Modifier and Type | Method and Description |
---|---|
network |
get(Guid id)
Retrieves the entity with the given id.
|
List<network> |
getAll()
Retrieves all the entities of type
T . |
List<network> |
getAllForCluster(Guid id)
Retrieves all networks for the given cluster.
|
List<network> |
getAllForDataCenter(Guid id)
Retrieves all networks for the given data center.
|
network |
getByName(String name)
Retrieves the network with the specified name.
|
void |
remove(Guid id)
Removes the entity with the given id from the underlying store of data.
|
void |
save(network net)
Persist a new instance of the entity.
|
void |
update(network net)
Update an existing entity with data from the given instance.
|
getCallsHandler, getCustomMapSqlParameterSource, setDbFacade, setDialect, setTemplate
public network getByName(String name)
NetworkDAO
getByName
in interface NetworkDAO
name
- the network namepublic List<network> getAll()
ReadDao
T
.public List<network> getAllForDataCenter(Guid id)
NetworkDAO
getAllForDataCenter
in interface NetworkDAO
id
- the data centerpublic List<network> getAllForCluster(Guid id)
NetworkDAO
getAllForCluster
in interface NetworkDAO
id
- the clusterpublic void save(network net)
ModificationDao
save
in interface ModificationDao<network,Guid>
net
- The entity to persist (can't be null
).public void update(network net)
ModificationDao
update
in interface ModificationDao<network,Guid>
net
- The entity instance, containing data to update (can't be null
).public void remove(Guid id)
ModificationDao
remove
in interface ModificationDao<network,Guid>
id
- The id of the entity to remove (can't be null
).Copyright © 2012. All Rights Reserved.