branch feature/1197-modularisation updated (72ca5d0 -> 5f68057)
This is an automated email from the git hooks/post-receive script. New change to branch feature/1197-modularisation in repository lima. See http://git.chorem.org/lima.git from 72ca5d0 Rename model file to match module name new 5f68057 Remove useless classes The 1 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "adds" were already present in the repository and have only been added to this reference. Detailed log of new commits: commit 5f680575ebf09c4ce32c6530e2684d982832cef5 Author: Arnaud Thimel <thimel@codelutin.com> Date: Fri Mar 20 01:14:55 2015 +0100 Remove useless classes Summary of changes: .../org/chorem/lima/DefaultServiceContext.java | 148 --------------------- .../main/java/org/chorem/lima/ServiceContext.java | 38 ------ 2 files changed, 186 deletions(-) delete mode 100644 lima-callao/src/main/java/org/chorem/lima/DefaultServiceContext.java delete mode 100644 lima-callao/src/main/java/org/chorem/lima/ServiceContext.java -- To stop receiving notification emails like this one, please contact chorem.org SCM administrator <admin+scm@chorem.org>.
This is an automated email from the git hooks/post-receive script. New commit to branch feature/1197-modularisation in repository lima. See http://git.chorem.org/lima.git commit 5f680575ebf09c4ce32c6530e2684d982832cef5 Author: Arnaud Thimel <thimel@codelutin.com> Date: Fri Mar 20 01:14:55 2015 +0100 Remove useless classes --- .../org/chorem/lima/DefaultServiceContext.java | 148 --------------------- .../main/java/org/chorem/lima/ServiceContext.java | 38 ------ 2 files changed, 186 deletions(-) diff --git a/lima-callao/src/main/java/org/chorem/lima/DefaultServiceContext.java b/lima-callao/src/main/java/org/chorem/lima/DefaultServiceContext.java deleted file mode 100644 index 9d54e78..0000000 --- a/lima-callao/src/main/java/org/chorem/lima/DefaultServiceContext.java +++ /dev/null @@ -1,148 +0,0 @@ -package org.chorem.lima; - -/* - * #%L - * Lima :: callao - * %% - * Copyright (C) 2008 - 2014 CodeLutin - * %% - * 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% - */ - -import com.google.common.base.Supplier; -import org.nuiton.topia.persistence.TopiaDao; -import org.nuiton.topia.persistence.TopiaEntity; -import org.nuiton.topia.persistence.TopiaIdFactory; -import org.nuiton.topia.persistence.TopiaPersistenceContext; -import org.nuiton.topia.persistence.TopiaReplicationDestination; -import org.nuiton.topia.persistence.internal.AbstractTopiaPersistenceContext; -import org.nuiton.topia.persistence.internal.support.TopiaFiresSupport; - -import java.util.List; - -/** - * Created by davidcosse on 15/05/14. - */ -public class DefaultServiceContext implements ServiceContext, TopiaPersistenceContext { - - protected AbstractTopiaPersistenceContext persistenceContext; - protected Supplier<AbstractTopiaPersistenceContext> transactionSupplier; - - @Override - public void close() { - // try to close non closed persistence context (false to not reopen it) - AbstractTopiaPersistenceContext context = getPersistenceContext(false); - if (context != null) { - context.close(); - } - } - - @Override - public AbstractTopiaPersistenceContext getPersistenceContext() { - AbstractTopiaPersistenceContext result = getTransaction0(true); - return result; - } - - @Override - public AbstractTopiaPersistenceContext getPersistenceContext(boolean create) { - AbstractTopiaPersistenceContext result = getTransaction0(create); - return result; - } - - @Override - public AbstractTopiaPersistenceContext getTransaction0(boolean create) { - if (persistenceContext == null && create) { - persistenceContext = transactionSupplier.get(); - - } - return persistenceContext; - } - - @Override - public <E extends TopiaEntity> E findByTopiaId(String s) { - return null; - } - - @Override - public void update(TopiaEntity topiaEntity) { - - } - - @Override - public void delete(TopiaEntity topiaEntity) { - - } - - @Override - public <E extends TopiaEntity> void deleteAll(Iterable<E> es) { - - } - - @Override - public TopiaIdFactory getTopiaIdFactory() { - return null; - } - - @Override - public boolean isClosed() { - return false; - } - - @Override - public TopiaFiresSupport getTopiaFiresSupport() { - return null; - } - - @Override - public <E extends TopiaEntity> TopiaDao<E> getDao(Class<E> eClass) { - return null; - } - - @Override - public <E extends TopiaEntity, D extends TopiaDao<E>> D getDao(Class<E> eClass, Class<D> dClass) { - return null; - } - - @Override - public void replicate(TopiaEntity topiaEntity) { - - } - - @Override - public void replicate(TopiaReplicationDestination topiaReplicationDestination, Object... objects) throws IllegalArgumentException { - - } - - @Override - public <T extends TopiaEntity> void replicateEntity(TopiaReplicationDestination topiaReplicationDestination, T t) throws IllegalArgumentException { - - } - - @Override - public <T extends TopiaEntity> void replicateEntities(TopiaReplicationDestination topiaReplicationDestination, List<T> ts) throws IllegalArgumentException { - - } - - @Override - public void commit() { - - } - - @Override - public void rollback() { - - } -} diff --git a/lima-callao/src/main/java/org/chorem/lima/ServiceContext.java b/lima-callao/src/main/java/org/chorem/lima/ServiceContext.java deleted file mode 100644 index 7d2431a..0000000 --- a/lima-callao/src/main/java/org/chorem/lima/ServiceContext.java +++ /dev/null @@ -1,38 +0,0 @@ -package org.chorem.lima; - -/* - * #%L - * Lima :: callao - * %% - * Copyright (C) 2008 - 2014 CodeLutin - * %% - * 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% - */ - -import org.nuiton.topia.persistence.internal.AbstractTopiaPersistenceContext; - -/** - * Created by davidcosse on 15/05/14. - */ -public interface ServiceContext { - void close(); - - AbstractTopiaPersistenceContext getPersistenceContext(); - - AbstractTopiaPersistenceContext getPersistenceContext(boolean create); - - AbstractTopiaPersistenceContext getTransaction0(boolean create); -} -- To stop receiving notification emails like this one, please contact chorem.org SCM administrator <admin+scm@chorem.org>.
participants (1)
-
chorem.org scm