From 17256fc3b543f29b060eb1172b0e4dccfc82ce64 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Thu, 23 Apr 2020 09:50:47 +0200 Subject: [PATCH] Intialized jbonuscard-lib project based on jfinancials-lib MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- README.txt | 2 - build.xml | 6 +- lib/jcontacts-business-core.jar | Bin 153580 -> 144492 bytes lib/jcontacts-core.jar | Bin 56897 -> 57871 bytes lib/jcountry-core.jar | Bin 14405 -> 17106 bytes lib/jphone-core.jar | Bin 69204 -> 75749 bytes lib/jproduct-core.jar | Bin 43359 -> 44332 bytes lib/juser-core.jar | Bin 68300 -> 69045 bytes nbproject/build-impl.xml | 18 ++--- nbproject/project.properties | 14 ++-- nbproject/project.xml | 4 +- .../FinancialIncomeSessionBeanRemote.java | 39 ---------- ...inancialAdminReceiptSessionBeanRemote.java | 56 -------------- .../FinancialReceiptSessionBeanRemote.java | 72 ------------------ ...cialAdminReceiptItemSessionBeanRemote.java | 44 ----------- ...FinancialReceiptItemSessionBeanRemote.java | 72 ------------------ 16 files changed, 21 insertions(+), 306 deletions(-) delete mode 100644 src/org/mxchange/jfinancials/model/income/FinancialIncomeSessionBeanRemote.java delete mode 100644 src/org/mxchange/jfinancials/model/receipt/FinancialAdminReceiptSessionBeanRemote.java delete mode 100644 src/org/mxchange/jfinancials/model/receipt/FinancialReceiptSessionBeanRemote.java delete mode 100644 src/org/mxchange/jfinancials/model/receipt_item/FinancialAdminReceiptItemSessionBeanRemote.java delete mode 100644 src/org/mxchange/jfinancials/model/receipt_item/FinancialReceiptItemSessionBeanRemote.java diff --git a/README.txt b/README.txt index 1538010..b9bb69a 100644 --- a/README.txt +++ b/README.txt @@ -4,5 +4,3 @@ README.txt 1) What is this? --------------- -This is a library for the jfinancials application. It should be linked as -NetBeans project in all applications (Console, Swing, JSF, ...). diff --git a/build.xml b/build.xml index 45c787b..f2c1f88 100644 --- a/build.xml +++ b/build.xml @@ -7,8 +7,8 @@ - - Builds, tests, and runs the project jfinancials-lib. + + Builds, tests, and runs the project jbonuscard-lib. - + @@ -474,7 +474,7 @@ is divided into following sections: - + @@ -625,7 +625,7 @@ is divided into following sections: - + @@ -917,7 +917,7 @@ is divided into following sections: - + @@ -929,8 +929,8 @@ is divided into following sections: - - + + @@ -1410,7 +1410,7 @@ is divided into following sections: - + @@ -1422,8 +1422,8 @@ is divided into following sections: - - + + diff --git a/nbproject/project.properties b/nbproject/project.properties index 581aec1..8a96899 100644 --- a/nbproject/project.properties +++ b/nbproject/project.properties @@ -3,7 +3,7 @@ annotation.processing.enabled.in.editor=true annotation.processing.processors.list= annotation.processing.run.all.processors=true annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output -application.title=jfinancials-lib +application.title=jbonuscard-lib application.vendor=Roland H\u00e4der auxiliary.org-netbeans-spi-editor-hints-projects.perProjectHintSettingsFile=nbproject/cfg_hints.xml build.classes.dir=${build.dir}/classes @@ -26,7 +26,7 @@ debug.test.classpath=\ dist.archive.excludes= # This directory is removed when the project is cleaned: dist.dir=dist -dist.jar=${dist.dir}/jfinancials-lib.jar +dist.jar=${dist.dir}/jbonuscard-lib.jar dist.javadoc.dir=${dist.dir}/javadoc endorsed.classpath= excludes= @@ -36,7 +36,7 @@ file.reference.jcountry-core.jar=lib/jcountry-core.jar file.reference.jphone-core.jar=lib/jphone-core.jar file.reference.jproduct-core.jar=lib/jproduct-core.jar file.reference.juser-core.jar=lib/juser-core.jar -file.reference.jfinancials-core.jar=lib/jfinancials-core.jar +file.reference.jbonuscard-core.jar=lib/jbonuscard-core.jar includes=** jar.archive.disabled=${jnlp.enabled} jar.compress=false @@ -48,7 +48,7 @@ javac.classpath=\ ${file.reference.jcontacts-business-core.jar}:\ ${file.reference.jproduct-core.jar}:\ ${file.reference.juser-core.jar}:\ - ${reference.jfinancials-core.jar}:\ + ${reference.jbonuscard-core.jar}:\ ${libs.javaee-api-7.0.classpath} # Space-separated list of extra javac options javac.compilerargs=-Xlint:unchecked -Xlint:deprecation @@ -91,9 +91,9 @@ manifest.file=manifest.mf meta.inf.dir=${src.dir}/META-INF mkdist.disabled=true platform.active=default_platform -project.jfinancials-core=../jfinancials-core +project.jbonuscard-core=../jbonuscard-core project.license=gpl30 -reference.jfinancials-core.jar=${project.jfinancials-core}/dist/jfinancials-core.jar +reference.jbonuscard-core.jar=${project.jbonuscard-core}/dist/jbonuscard-core.jar run.classpath=\ ${javac.classpath}:\ ${build.classes.dir} @@ -107,6 +107,6 @@ source.reference.jcountry-core.jar=../jcountry-core/src/ source.reference.jphone-core.jar=../jphone-core/src/ source.reference.jproduct-core.jar=../jproduct-core/src/ source.reference.juser-core.jar=../juser-core/src/ -source.reference.jfinancials-core.jar=../jfinancials-core/src/ +source.reference.jbonuscard-core.jar=../jbonuscard-core/src/ src.dir=src test.src.dir=test diff --git a/nbproject/project.xml b/nbproject/project.xml index f698361..f6f2a3d 100644 --- a/nbproject/project.xml +++ b/nbproject/project.xml @@ -3,7 +3,7 @@ org.netbeans.modules.java.j2seproject - jfinancials-lib + jbonuscard-lib @@ -16,7 +16,7 @@ - jfinancials-core + jbonuscard-core jar jar diff --git a/src/org/mxchange/jfinancials/model/income/FinancialIncomeSessionBeanRemote.java b/src/org/mxchange/jfinancials/model/income/FinancialIncomeSessionBeanRemote.java deleted file mode 100644 index dd88f08..0000000 --- a/src/org/mxchange/jfinancials/model/income/FinancialIncomeSessionBeanRemote.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (C) 2017 - 2020 Free Software Foundation - * - * 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.model.income; - -import java.io.Serializable; -import javax.ejb.Remote; - -/** - * 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); - -} diff --git a/src/org/mxchange/jfinancials/model/receipt/FinancialAdminReceiptSessionBeanRemote.java b/src/org/mxchange/jfinancials/model/receipt/FinancialAdminReceiptSessionBeanRemote.java deleted file mode 100644 index e06e29d..0000000 --- a/src/org/mxchange/jfinancials/model/receipt/FinancialAdminReceiptSessionBeanRemote.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright (C) 2017 - 2020 Free Software Foundation - * - * 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.model.receipt; - -import java.io.Serializable; -import javax.ejb.Remote; -import org.mxchange.jfinancials.exceptions.receipt.ReceiptAlreadyAddedException; -import org.mxchange.jfinancials.exceptions.receipt.ReceiptNotFoundException; - -/** - * A remote interface for administrative EJBs for receipts - *

- * @author Roland Häder - */ -@Remote -public interface FinancialAdminReceiptSessionBeanRemote extends Serializable { - - /** - * Updates given receipt in database and returns an updated version. - *

- * @param receipt Receipt instance being updated - *

- * @return Updated receipt instance - *

- * @throws ReceiptNotFoundException If receipt instance was not found - */ - BillableReceipt updateReceipt (final BillableReceipt receipt) throws ReceiptNotFoundException; - - /** - * Adds given receipt and returns the updated version. If the receipt has - * already been found, a proper exception is being thrown. - *

- * @param receipt Receipt being added - *

- * @return Updated receipt - *

- * @throws ReceiptAlreadyAddedException If the receipt has already been - * added - */ - BillableReceipt addReceipt (final BillableReceipt receipt) throws ReceiptAlreadyAddedException; - -} diff --git a/src/org/mxchange/jfinancials/model/receipt/FinancialReceiptSessionBeanRemote.java b/src/org/mxchange/jfinancials/model/receipt/FinancialReceiptSessionBeanRemote.java deleted file mode 100644 index 38533e7..0000000 --- a/src/org/mxchange/jfinancials/model/receipt/FinancialReceiptSessionBeanRemote.java +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright (C) 2017 - 2020 Free Software Foundation - * - * 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.model.receipt; - -import java.io.Serializable; -import java.util.List; -import javax.ejb.Remote; -import org.mxchange.jfinancials.exceptions.receipt.ReceiptAlreadyAddedException; -import org.mxchange.jusercore.model.user.User; - -/** - * A remote interface for financial receipts - *

- * @author Roland Häder - */ -@Remote -public interface FinancialReceiptSessionBeanRemote extends Serializable { - - /** - * Returns a list of all receipts - *

- * @return A list of all receipts - */ - List fetchAllReceipts (); - - /** - * Returns a list of all user's receipts - *

- * @param user User instance to get all receipts for - *

- * @return A list of all user's receipts - */ - List fetchAllUsersReceipts (final User user); - - /** - * Adds given receipt and returns the updated version. If the receipt has - * already been found, a proper exception is being thrown. - *

- * @param receipt Receipt being added - *

- * @return Updated receipt - *

- * @throws ReceiptAlreadyAddedException If the receipt has already been - * added - */ - BillableReceipt addReceipt (final BillableReceipt receipt) throws ReceiptAlreadyAddedException; - - /** - * Checks if given receipt is already persisted by checking receipt number - * and branch office combination. - *

- * @param receipt Receipt instance - *

- * @return Whether the receipt has already been registered - */ - boolean isReceiptRegistered (final BillableReceipt receipt); - -} diff --git a/src/org/mxchange/jfinancials/model/receipt_item/FinancialAdminReceiptItemSessionBeanRemote.java b/src/org/mxchange/jfinancials/model/receipt_item/FinancialAdminReceiptItemSessionBeanRemote.java deleted file mode 100644 index 2e52f8e..0000000 --- a/src/org/mxchange/jfinancials/model/receipt_item/FinancialAdminReceiptItemSessionBeanRemote.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (C) 2017 - 2020 Free Software Foundation - * - * 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.model.receipt_item; - -import java.io.Serializable; -import javax.ejb.Remote; -import org.mxchange.jfinancials.exceptions.receipt_item.ReceiptItemAlreadyAddedException; - -/** - * A remote interface for administrative EJBs for receipt items - *

- * @author Roland Häder - */ -@Remote -public interface FinancialAdminReceiptItemSessionBeanRemote extends Serializable { - - /** - * Adds given receipt item and returns the updated version. If the receipt - * item has already been found, a proper exception is being thrown. - *

- * @param receiptItem Receipt item being added - *

- * @return Updated receipt item - *

- * @throws ReceiptItemAlreadyAddedException If the receipt item has already - * been added - */ - BillableReceiptItem addReceiptItem (final BillableReceiptItem receiptItem) throws ReceiptItemAlreadyAddedException; - -} diff --git a/src/org/mxchange/jfinancials/model/receipt_item/FinancialReceiptItemSessionBeanRemote.java b/src/org/mxchange/jfinancials/model/receipt_item/FinancialReceiptItemSessionBeanRemote.java deleted file mode 100644 index f77d2fe..0000000 --- a/src/org/mxchange/jfinancials/model/receipt_item/FinancialReceiptItemSessionBeanRemote.java +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright (C) 2017 - 2020 Free Software Foundation - * - * 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.model.receipt_item; - -import java.io.Serializable; -import java.util.List; -import javax.ejb.Remote; -import org.mxchange.jfinancials.exceptions.receipt_item.ReceiptItemAlreadyAddedException; -import org.mxchange.jfinancials.model.receipt.BillableReceipt; -import org.mxchange.jusercore.model.user.User; - -/** - * A remote interface for financial receipt items - *

- * @author Roland Häder - */ -@Remote -public interface FinancialReceiptItemSessionBeanRemote extends Serializable { - - /** - * Returns a list of all receipt items - *

- * @return A list of all receipt items - */ - List fetchAllReceiptItems (); - - /** - * Returns a list of all items by given receipt instance - *

- * @param receipt Receipt instance - *

- * @return A list of all assigned receipt items - */ - List fetchReceiptItemsByReceipt (final BillableReceipt receipt); - - /** - * Returns a list of all user's receipt items - *

- * @param user User instance to get all receipts for - *

- * @return A list of all user's receipt items - */ - List fetchReceiptItemsByUserUser (final User user); - - /** - * Adds given receipt item and returns the updated version. If the receipt - * item has already been found, a proper exception is being thrown. - *

- * @param receiptItem Receipt item being added - *

- * @return Updated receipt - *

- * @throws ReceiptItemAlreadyAddedException If the receipt item has already - * been added - */ - BillableReceiptItem addReceiptItem (final BillableReceiptItem receiptItem) throws ReceiptItemAlreadyAddedException; - -} -- 2.39.5