/*
* $Id: RoomTypeHomeImpl.java,v 1.2 2005/06/21 13:02:10 gimmi Exp $
* Created on 21.6.2005
*
* Copyright (C) 2005 Idega Software hf. All Rights Reserved.
*
* This software is the proprietary information of Idega hf.
* Use is subject to license terms.
*/
package is.idega.idegaweb.travel.service.hotel.data;
import java.util.Collection;
import javax.ejb.FinderException;
import com.idega.data.IDOCompositePrimaryKeyException;
import com.idega.data.IDOFactory;
import com.idega.data.IDORelationshipException;
/**
*
* Last modified: $Date: 2005/06/21 13:02:10 $ by $Author: gimmi $
*
* @author <a href="mailto:gimmi@idega.com">gimmi</a>
* @version $Revision: 1.2 $
*/
public class RoomTypeHomeImpl extends IDOFactory implements RoomTypeHome {
protected Class getEntityInterfaceClass() {
return RoomType.class;
}
public RoomType create() throws javax.ejb.CreateException {
return (RoomType) super.createIDO();
}
public RoomType findByPrimaryKey(Object pk) throws javax.ejb.FinderException {
return (RoomType) super.findByPrimaryKeyIDO(pk);
}
public Collection findAll() throws FinderException {
com.idega.data.IDOEntity entity = this.idoCheckOutPooledEntity();
java.util.Collection ids = ((RoomTypeBMPBean) entity).ejbFindAll();
this.idoCheckInPooledEntity(entity);
return this.getEntityCollectionForPrimaryKeys(ids);
}
public Collection findAllUsedBySuppliers(Collection suppliers) throws IDOCompositePrimaryKeyException,
IDORelationshipException, FinderException {
com.idega.data.IDOEntity entity = this.idoCheckOutPooledEntity();
java.util.Collection ids = ((RoomTypeBMPBean) entity).ejbFindAllUsedBySuppliers(suppliers);
this.idoCheckInPooledEntity(entity);
return this.getEntityCollectionForPrimaryKeys(ids);
}
}