1 5 6 package org.exoplatform.services.jcr.impl.core; 7 8 14 15 public class NodeChangeState { 16 public static final int UNDEFINED = 0; 17 public static final int ADDED = 1; 18 public static final int UPDATED = 2; 19 public static final int DELETED = 3; 20 public static final int UNCHANGED = 4; 21 public static final int REF_ADDED = 5; 22 23 24 public static String getStateName(int state) { 25 if (state == ADDED) 26 return "ADDED"; 27 else if (state == UPDATED) 28 return "UPDATED"; 29 else if (state == DELETED) 30 return "DELETED"; 31 else if (state == UNCHANGED) 32 return "UNCHANGED"; 33 else if (state == REF_ADDED) 34 return "REFERENCE ADDED"; 35 else 36 return "UNDEFINED"; 37 } 38 } 39 | Popular Tags |