Class GraphContainerDaoImpl
- java.lang.Object
-
- org.springframework.dao.support.DaoSupport
-
- org.springframework.orm.hibernate3.support.HibernateDaoSupport
-
- org.opennms.netmgt.graph.dao.hibernate.GraphContainerDaoImpl
-
- All Implemented Interfaces:
GraphContainerDao
,org.springframework.beans.factory.InitializingBean
@Transactional public class GraphContainerDaoImpl extends org.springframework.orm.hibernate3.support.HibernateDaoSupport implements GraphContainerDao
-
-
Constructor Summary
Constructors Constructor Description GraphContainerDaoImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
delete(String containerId)
Looks up the given entity by its container id and afterwards deletes that entity.GraphContainerEntity
findContainerById(String containerId)
Returns the GraphContainerEntity identified by the containerId.GraphContainerEntity
findContainerInfoById(String containerId)
Returns the GraphContainerEntity, but only populating the properties.void
save(GraphContainerEntity graphContainerEntity)
Saves or Updates the entity.void
update(GraphContainerEntity graphContainerEntity)
Updates the given entity
-
-
-
Method Detail
-
save
public void save(GraphContainerEntity graphContainerEntity)
Description copied from interface:GraphContainerDao
Saves or Updates the entity.- Specified by:
save
in interfaceGraphContainerDao
- Parameters:
graphContainerEntity
- The entity to save or update
-
update
public void update(GraphContainerEntity graphContainerEntity)
Description copied from interface:GraphContainerDao
Updates the given entity- Specified by:
update
in interfaceGraphContainerDao
-
findContainerById
public GraphContainerEntity findContainerById(String containerId)
Description copied from interface:GraphContainerDao
Returns the GraphContainerEntity identified by the containerId. It is not fully populated.- Specified by:
findContainerById
in interfaceGraphContainerDao
- Parameters:
containerId
- The containerId of the entity- Returns:
- The container or null
-
findContainerInfoById
public GraphContainerEntity findContainerInfoById(String containerId)
Description copied from interface:GraphContainerDao
Returns the GraphContainerEntity, but only populating the properties. Vertices and Edges are not initialized.- Specified by:
findContainerInfoById
in interfaceGraphContainerDao
- Parameters:
containerId
- The container id of the entity- Returns:
-
delete
public void delete(String containerId)
Description copied from interface:GraphContainerDao
Looks up the given entity by its container id and afterwards deletes that entity.- Specified by:
delete
in interfaceGraphContainerDao
- Parameters:
containerId
- the container id of the entity.
-
-