1 package org.apache.ojb.odmg.states; 2 3 17 18 import org.apache.ojb.odmg.ObjectEnvelope; 19 20 24 public class StateOldClean extends ModificationState 25 { 26 private static StateOldClean _instance = new StateOldClean(); 27 28 31 private StateOldClean() 32 { 33 34 } 35 36 39 public static StateOldClean getInstance() 40 { 41 return _instance; 42 } 43 44 47 public ModificationState markClean() 48 { 49 return this; 50 } 51 52 55 public ModificationState markDelete() 56 { 57 return StateOldDelete.getInstance(); 58 } 59 60 63 public ModificationState markDirty() 64 { 65 return StateOldDirty.getInstance(); 66 } 67 68 71 public ModificationState markNew() 72 { 73 return this; 74 } 75 76 79 public ModificationState markOld() 80 { 81 return this; 82 } 83 84 87 public void checkpoint(ObjectEnvelope mod) 88 { 89 90 } 91 92 95 public void commit(ObjectEnvelope mod) 96 { 97 98 } 99 100 103 public void rollback(ObjectEnvelope mod) 104 { 105 106 } 107 } 108 | Popular Tags |