/** * */ package com.cloud.offerings.dao; import com.cloud.offerings.NetworkOfferingVO; import com.cloud.utils.db.GenericDao; /** * NetworkOfferingDao deals with searches and operations done on the * network_offering table. * */ public interface NetworkOfferingDao extends GenericDao { /** * Returns the network offering that matches the name. * @param name name * @return NetworkOfferingVO */ NetworkOfferingVO findByName(String name); /** * Persists the system network offering by checking the name. If it * is already there, then it returns the correct one in the database. * If not, then it persists it into the database. * * @param offering network offering to persist if not in the database. * @return NetworkOfferingVO backed by a row in the database */ NetworkOfferingVO persistSystemNetworkOffering(NetworkOfferingVO offering); }