Change in ovirt-engine[master]: engine: Extend NetworkDao

masayag at redhat.com masayag at redhat.com
Wed Dec 12 14:23:57 UTC 2012


Moti Asayag has submitted this change and it was merged.

Change subject: engine: Extend NetworkDao
......................................................................


engine: Extend NetworkDao

The NetworkDao is extended with two methods for fetching the network
entity by the following criteria:
1. By network name and storage pool id.
2. By network name and cluster id.

The motivation is easing the process of fetching the network entity
when is being queried either in scope of VM (find network which is
attached to a VM) or in the scope of data center which previously
was executed by getting the entire networks list for a DC/Cluster and
filtering out the required network.

Change-Id: If559aaf1ce824a0271874cf10cff1e42dd4647ba
Signed-off-by: Moti Asayag <masayag at redhat.com>
---
M backend/manager/dbscripts/network_sp.sql
M backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/GetAllNetworksQuery.java
M backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/queries/VdcQueryType.java
M backend/manager/modules/dal/src/main/java/org/ovirt/engine/core/dao/NetworkDAO.java
M backend/manager/modules/dal/src/main/java/org/ovirt/engine/core/dao/NetworkDAODbFacadeImpl.java
M backend/manager/modules/dal/src/main/java/org/ovirt/engine/core/dao/NetworkDAOHibernateImpl.java
M backend/manager/modules/dal/src/test/java/org/ovirt/engine/core/dao/NetworkDAOTest.java
7 files changed, 237 insertions(+), 24 deletions(-)

Approvals:
  Mike Kolesnik: Looks good to me, approved
  Moti Asayag: Verified


--
To view, visit http://gerrit.ovirt.org/9543
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: If559aaf1ce824a0271874cf10cff1e42dd4647ba
Gerrit-PatchSet: 9
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Moti Asayag <masayag at redhat.com>
Gerrit-Reviewer: Allon Mureinik <amureini at redhat.com>
Gerrit-Reviewer: Livnat Peer <lpeer at redhat.com>
Gerrit-Reviewer: Mike Kolesnik <mkolesni at redhat.com>
Gerrit-Reviewer: Moti Asayag <masayag at redhat.com>
Gerrit-Reviewer: Muli Salem <msalem at redhat.com>



More information about the Engine-commits mailing list