Index: topia2/src/java/org/codelutin/topia/framework/TopiaContextImpl.java diff -u topia2/src/java/org/codelutin/topia/framework/TopiaContextImpl.java:1.4 topia2/src/java/org/codelutin/topia/framework/TopiaContextImpl.java:1.5 --- topia2/src/java/org/codelutin/topia/framework/TopiaContextImpl.java:1.4 Fri Jan 6 18:38:34 2006 +++ topia2/src/java/org/codelutin/topia/framework/TopiaContextImpl.java Fri Jan 13 15:25:06 2006 @@ -23,9 +23,9 @@ * * @author poussin * - * @version $Revision: 1.4 $ + * @version $Revision: 1.5 $ * - * Last update: $Date: 2006/01/06 18:38:34 $ by : $Author: thimel $ + * Last update: $Date: 2006/01/13 15:25:06 $ by : $Author: bpoussin $ */ package org.codelutin.topia.framework; @@ -56,6 +56,7 @@ import org.codelutin.topia.persistence.TopiaDAODelegator; import org.codelutin.topia.persistence.TopiaEntity; import org.codelutin.topia.persistence.TopiaEntityAbstract; +import org.codelutin.topia.persistence.TopiaId; import org.codelutin.util.ArrayUtil; import org.codelutin.util.CategorisedListenerSet; import org.codelutin.util.ListenerSet; @@ -541,6 +542,17 @@ } } + /* (non-Javadoc) + * @see org.codelutin.topia.TopiaContext#findByTopiaId(java.lang.String) + */ + public TopiaEntity findByTopiaId(String topiaId) throws TopiaException { + TopiaEntity result = null; + Class entityClass = TopiaId.getClassName(topiaId); + TopiaDAO dao = getDAO(entityClass); + result = dao.findByTopiaId(topiaId); + return result; + } + public void fireVetoableLoad(Class entityClass, Object id) { log.debug("fireVetoableLoad: " + id); try {