r2637 - branches/topia-2.6.x/topia-persistence/src/main/java/org/nuiton/topia/persistence
Author: tchemit Date: 2012-08-21 18:08:41 +0200 (Tue, 21 Aug 2012) New Revision: 2637 Url: http://nuiton.org/repositories/revision/topia/2637 Log: fixes #2278: Introduce a TopiaPersistenceHelper Added: branches/topia-2.6.x/topia-persistence/src/main/java/org/nuiton/topia/persistence/TopiaPersistenceHelper.java Copied: branches/topia-2.6.x/topia-persistence/src/main/java/org/nuiton/topia/persistence/TopiaPersistenceHelper.java (from rev 2636, branches/topia-2.6.x/topia-persistence/src/main/java/org/nuiton/topia/persistence/metadata/TopiaEntityEnumProvider.java) =================================================================== --- branches/topia-2.6.x/topia-persistence/src/main/java/org/nuiton/topia/persistence/TopiaPersistenceHelper.java (rev 0) +++ branches/topia-2.6.x/topia-persistence/src/main/java/org/nuiton/topia/persistence/TopiaPersistenceHelper.java 2012-08-21 16:08:41 UTC (rev 2637) @@ -0,0 +1,41 @@ +package org.nuiton.topia.persistence; +/* + * #%L + * ToPIA :: Persistence + * $Id$ + * $HeadURL$ + * %% + * Copyright (C) 2004 - 2012 CodeLutin + * %% + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser 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 Lesser Public License for more details. + * + * You should have received a copy of the GNU General Lesser Public + * License along with this program. If not, see + * <http://www.gnu.org/licenses/lgpl-3.0.html>. + * #L% + */ + +import org.nuiton.topia.TopiaContext; + +/** + * Object which helps to wrap some static generated code + * (dao helper, entityEnum). + * + * @author tchemit <chemit@codelutin.com> + * @since 2.6.12 + */ +public interface TopiaPersistenceHelper<T extends TopiaEntityEnum> { + + <E extends TopiaEntity> T getEntityEnum(Class<E> type); + + <E extends TopiaEntity> TopiaDAO<E> getDAO(TopiaContext tx, Class<E> type); + +} Property changes on: branches/topia-2.6.x/topia-persistence/src/main/java/org/nuiton/topia/persistence/TopiaPersistenceHelper.java ___________________________________________________________________ Added: svn:keywords + Author Date Id Revision HeadURL Added: svn:eol-style + native
participants (1)
-
tchemit@users.nuiton.org