package is.idega.idegaweb.campus.block.application.data; import java.util.Collection; import javax.ejb.CreateException; import javax.ejb.FinderException; import com.idega.data.IDOEntity; import com.idega.data.IDOFactory; public class AppliedHomeImpl extends IDOFactory implements AppliedHome { public Class getEntityInterfaceClass() { return Applied.class; } public Applied create() throws CreateException { return (Applied) super.createIDO(); } public Applied findByPrimaryKey(Object pk) throws FinderException { return (Applied) super.findByPrimaryKeyIDO(pk); } public Collection findAll() throws FinderException { IDOEntity entity = this.idoCheckOutPooledEntity(); Collection ids = ((AppliedBMPBean) entity).ejbFindAll(); this.idoCheckInPooledEntity(entity); return this.getEntityCollectionForPrimaryKeys(ids); } public Collection findByApplicationID(Integer ID) throws FinderException { IDOEntity entity = this.idoCheckOutPooledEntity(); Collection ids = ((AppliedBMPBean) entity).ejbFindByApplicationID(ID); this.idoCheckInPooledEntity(entity); return this.getEntityCollectionForPrimaryKeys(ids); } public Collection findBySQL(String sql) throws FinderException { IDOEntity entity = this.idoCheckOutPooledEntity(); Collection ids = ((AppliedBMPBean) entity).ejbFindBySQL(sql); this.idoCheckInPooledEntity(entity); return this.getEntityCollectionForPrimaryKeys(ids); } }