Index: topia2/src/java/org/codelutin/topia/framework/EntityState.java diff -u topia2/src/java/org/codelutin/topia/framework/EntityState.java:1.1 topia2/src/java/org/codelutin/topia/framework/EntityState.java:1.2 --- topia2/src/java/org/codelutin/topia/framework/EntityState.java:1.1 Wed Nov 22 20:20:56 2006 +++ topia2/src/java/org/codelutin/topia/framework/EntityState.java Thu Nov 23 13:51:56 2006 @@ -23,10 +23,10 @@ * Created: 22 nov. 06 12:10:57 * * @author poussin - * @version $Revision: 1.1 $ + * @version $Revision: 1.2 $ * - * Last update: $Date: 2006/11/22 20:20:56 $ - * by : $Author: bpoussin $ + * Last update: $Date: 2006/11/23 13:51:56 $ + * by : $Author: ruchaud $ */ package org.codelutin.topia.framework; @@ -39,15 +39,18 @@ */ public class EntityState { - final static int LOAD = 0; - final static int READ = 1; - final static int CREATE = 2; - final static int UPDATE = 4; - final static int DELETE = 8; + final static int NULL = 0; + final static int LOAD = 1; + final static int READ = 2; + final static int CREATE = 4; + final static int UPDATE = 8; + final static int DELETE = 16; - protected int state = 0; + protected int state = NULL; - public void addLoad(){} + public void addLoad(){ + state |= LOAD; + } public void addRead(){ state |= READ; }