// Copyright 2012 Citrix Systems, Inc. Licensed under the // Apache License, Version 2.0 (the "License"); you may not use this // file except in compliance with the License. Citrix Systems, Inc. // reserves all rights not expressly granted by the License. // You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // // Automatically generated by addcopyright.py at 04/03/2012 package com.cloud.vpc.dao; import java.util.List; import javax.ejb.Local; import com.cloud.network.vpc.Vpc; import com.cloud.network.vpc.VpcVO; import com.cloud.network.vpc.Dao.VpcDao; import com.cloud.utils.db.DB; import com.cloud.utils.db.GenericDaoBase; @Local(value = VpcDao.class) @DB(txn = false) public class MockVpcDaoImpl extends GenericDaoBase implements VpcDao{ /* (non-Javadoc) * @see com.cloud.network.vpc.Dao.VpcDao#getVpcCountByOfferingId(long) */ @Override public int getVpcCountByOfferingId(long offId) { return 100; } /* (non-Javadoc) * @see com.cloud.network.vpc.Dao.VpcDao#getActiveVpcById(long) */ @Override public Vpc getActiveVpcById(long vpcId) { // TODO Auto-generated method stub return null; } /* (non-Javadoc) * @see com.cloud.network.vpc.Dao.VpcDao#listByAccountId(long) */ @Override public List listByAccountId(long accountId) { // TODO Auto-generated method stub return null; } /* (non-Javadoc) * @see com.cloud.network.vpc.Dao.VpcDao#listInactiveVpcs() */ @Override public List listInactiveVpcs() { // TODO Auto-generated method stub return null; } /* (non-Javadoc) * @see com.cloud.network.vpc.Dao.VpcDao#countByAccountId(long) */ @Override public long countByAccountId(long accountId) { // TODO Auto-generated method stub return 0; } @Override public VpcVO findById(Long id) { VpcVO vo = null; if (id.longValue() == 1) { vo = new VpcVO(1, "new vpc", "new vpc", 1,1 , 1, "0.0.0.0/0", "vpc domain"); } else if (id.longValue() == 2) { vo = new VpcVO(1, "new vpc", "new vpc", 1,1 , 1, "0.0.0.0/0", "vpc domain"); } return vo; } }