Index: topia2/src/java/org/codelutin/topia/persistence/TopiaEntity.java diff -u topia2/src/java/org/codelutin/topia/persistence/TopiaEntity.java:1.7 topia2/src/java/org/codelutin/topia/persistence/TopiaEntity.java:1.8 --- topia2/src/java/org/codelutin/topia/persistence/TopiaEntity.java:1.7 Wed Jun 7 15:56:01 2006 +++ topia2/src/java/org/codelutin/topia/persistence/TopiaEntity.java Fri Oct 20 00:26:25 2006 @@ -23,16 +23,17 @@ * Created: 28 déc. 2005 22:48:10 * * @author poussin - * @version $Revision: 1.7 $ + * @version $Revision: 1.8 $ * - * Last update: $Date: 2006/06/07 15:56:01 $ - * by : $Author: thimel $ + * Last update: $Date: 2006/10/20 00:26:25 $ + * by : $Author: bpoussin $ */ package org.codelutin.topia.persistence; import java.beans.PropertyChangeListener; import java.util.Date; +import java.util.List; import org.codelutin.topia.TopiaContext; import org.codelutin.topia.TopiaException; @@ -65,7 +66,20 @@ public void update() throws TopiaException; public void delete() throws TopiaException; - + + /** + * Return all object that must be deleted if this object is deleted + * @throws TopiaException + */ + public List getComposite() throws TopiaException; + + /** + * Return all object that are aggregate with this instance, aggreate object + * are not removed automaticaly + * @throws TopiaException + */ + public List getAggregate() throws TopiaException; + public void addPropertyListener(String propertyName, PropertyChangeListener listener); public void addPropertyListener(PropertyChangeListener listener); Index: topia2/src/java/org/codelutin/topia/persistence/TopiaEntityAbstract.java diff -u topia2/src/java/org/codelutin/topia/persistence/TopiaEntityAbstract.java:1.10 topia2/src/java/org/codelutin/topia/persistence/TopiaEntityAbstract.java:1.11 --- topia2/src/java/org/codelutin/topia/persistence/TopiaEntityAbstract.java:1.10 Mon Sep 25 13:20:57 2006 +++ topia2/src/java/org/codelutin/topia/persistence/TopiaEntityAbstract.java Fri Oct 20 00:26:25 2006 @@ -23,9 +23,9 @@ * * @author poussin * - * @version $Revision: 1.10 $ + * @version $Revision: 1.11 $ * - * Last update: $Date: 2006/09/25 13:20:57 $ by : $Author: ruchaud $ + * Last update: $Date: 2006/10/20 00:26:25 $ by : $Author: bpoussin $ */ package org.codelutin.topia.persistence; @@ -37,6 +37,7 @@ import java.beans.VetoableChangeListener; import java.beans.VetoableChangeSupport; import java.util.Date; +import java.util.List; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; @@ -183,6 +184,20 @@ throw new UnsupportedOperationException(); } + /* (non-Javadoc) + * @see org.codelutin.topia.persistence.TopiaEntity#getComposite() + */ + public List getComposite() throws TopiaException { + throw new UnsupportedOperationException(); + } + + /* (non-Javadoc) + * @see org.codelutin.topia.persistence.TopiaEntity#getAggregate() + */ + public List getAggregate() throws TopiaException { + throw new UnsupportedOperationException(); + } + /** * On utilise la date de creation comme hash code, cette date ne varie pas * au cours du temps