From 7c6c794cbc3ae978d605b115c28cba63148454dd Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Tue, 6 Jun 2017 22:57:01 +0200 Subject: [PATCH] added remote interface for BillableIncome objects (with first business method) MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- .../FinancialIncomeSessionBeanRemote.java | 40 +++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 src/org/mxchange/jfinancials/financial/income/FinancialIncomeSessionBeanRemote.java diff --git a/src/org/mxchange/jfinancials/financial/income/FinancialIncomeSessionBeanRemote.java b/src/org/mxchange/jfinancials/financial/income/FinancialIncomeSessionBeanRemote.java new file mode 100644 index 0000000..2c9ccb9 --- /dev/null +++ b/src/org/mxchange/jfinancials/financial/income/FinancialIncomeSessionBeanRemote.java @@ -0,0 +1,40 @@ +/* + * Copyright (C) 2017 Roland Häder + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +package org.mxchange.jfinancials.financial.income; + +import java.io.Serializable; +import javax.ejb.Remote; +import org.mxchange.jfinancials.model.income.BillableIncome; + +/** + * A remote interface for financial income stuff + *

+ * @author Roland Häder + */ +@Remote +public interface FinancialIncomeSessionBeanRemote extends Serializable { + + /** + * Adds given income entity to database, if not persisted yet. + *

+ * @param income Income entity + *

+ * @return Updated income entity + */ + BillableIncome addIncome (final BillableIncome income); + +} -- 2.39.5