@@ -0,0 +1,2242 @@
+/* Copyright 2005 I Serv Consultoria Empresarial Ltda.%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *     http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0A%0A%0Apackage org.helianto.finance.service;%0A%0Aimport java.util.List;%0A%0Aimport javax.annotation.Resource;%0A%0Aimport org.apache.commons.logging.Log;%0Aimport org.apache.commons.logging.LogFactory;%0Aimport org.helianto.core.filter.Filter;%0Aimport org.helianto.core.repository.FilterDao;%0Aimport org.helianto.finance.CashFlow;%0Aimport org.helianto.finance.CashFlowFilter;%0Aimport org.springframework.stereotype.Service;%0Aimport org.springframework.transaction.annotation.Transactional;%0A%0A/**%0A * Default implementation for %3Ccode%3EFinanceMgr%3C/code%3E internface.%0A * %0A * @author Mauricio Fernandes de Castro%0A */%0A@Service(%22financeMgr%22)%0A@Transactional%0Apublic class FinanceMgrImpl implements FinanceMgr %7B%0A%0A%09public List%3C? extends CashFlow%3E findCashFlows(Filter filter) %7B%0A        List%3C? extends CashFlow%3E cashFlowList = (List%3C? extends CashFlow%3E) cashFlowDao.find((CashFlowFilter) filter);%0A        if (logger.isDebugEnabled() && cashFlowList.size()%3E0) %7B%0A            logger.debug(%22Found %22+cashFlowList.size()+%22 item(s)%22);%0A        %7D%0A        return cashFlowList ;%0A%09%7D%0A%0A%09public CashFlow prepareCashFlow(CashFlow cashFlow) %7B%0A%09%09// TODO Auto-generated method stub%0A%09%09return null;%0A%09%7D%0A%0A%09public void removeCashFlow(CashFlow cashFlow) %7B%0A%09%09cashFlowDao.remove(cashFlow);%0A%09%7D%0A%0A%09public CashFlow storeCashFlow(CashFlow cashFlow) %7B%0A%09%09// TODO Auto-generated method stub%0A%09%09return null;%0A%09%7D%0A%09%0A%09private FilterDao%3CCashFlow, CashFlowFilter%3E cashFlowDao;%0A%09%0A%09@Resource(name=%22cashFlowDao%22)%0A%09public void setCashFlowDao(FilterDao%3CCashFlow, CashFlowFilter%3E cashFlowDao) %7B%0A%09%09this.cashFlowDao = cashFlowDao;%0A%09%7D%0A%09%0A%09private static final Log logger = LogFactory.getLog(FinanceMgrImpl.class);%0A%0A%7D%0A

work in progress