This is an automated email from the git hooks/post-receive script. New commit to branch develop in repository observe. See http://git.codelutin.com/observe.git commit 1be23f39c789e650810040aa1953b11ce24b2d94 Author: Tony CHEMIT <chemit@codelutin.com> Date: Thu Apr 9 08:53:43 2015 +0200 refs #6914 suppression d'un chargeur de noeud par association (trop couteux) --- .../AbstractAssociationNodeChildLoador.java | 68 ---------------------- 1 file changed, 68 deletions(-) diff --git a/observe-swing/src/main/java/fr/ird/observe/ui/tree/loadors/AbstractAssociationNodeChildLoador.java b/observe-swing/src/main/java/fr/ird/observe/ui/tree/loadors/AbstractAssociationNodeChildLoador.java deleted file mode 100644 index cc3c07f..0000000 --- a/observe-swing/src/main/java/fr/ird/observe/ui/tree/loadors/AbstractAssociationNodeChildLoador.java +++ /dev/null @@ -1,68 +0,0 @@ -/* - * #%L - * ObServe :: Swing - * %% - * Copyright (C) 2008 - 2010 IRD, Codelutin, Tony Chemit - * %% - * 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 - * <http://www.gnu.org/licenses/gpl-3.0.html>. - * #L% - */ -package fr.ird.observe.ui.tree.loadors; - -import fr.ird.observe.DataService; -import fr.ird.observe.db.DataSource; -import jaxx.runtime.swing.nav.NavDataProvider; -import org.nuiton.topia.persistence.TopiaEntity; - -import java.util.List; - -/** - * Le chargeur des noeuds de marees. - * - * @author Tony Chemit - chemit@codelutin.com - * @since 1.4 - */ -public abstract class AbstractAssociationNodeChildLoador<O extends TopiaEntity> extends AbstractNodeChildLoador<O> { - - private static final long serialVersionUID = 1L; - - protected final String associationName; - - public AbstractAssociationNodeChildLoador(Class<O> internalClass, - String associationName) { - super(internalClass); - this.associationName = associationName; - } - - public String getAssociationName() { - return associationName; - } - - @Override - public List<O> getData(Class<?> parentClass, - String parentId, - NavDataProvider dataProvider) throws Exception { - - DataSource source = getDataSource(dataProvider); - DataService service = getDataService(); - - List<O> result = service.loadEntityAssociation(source, - getBeanType(), - getAssociationName(), - parentId); - return result; - } - -} -- To stop receiving notification emails like this one, please contact codelutin.com SCM administrator <admin+scm@list.forge.codelutin.com>.