1 package org.apache.ojb.broker.util; 2 3 17 18 import java.io.Serializable ; 19 20 30 public interface ObjectModification extends Serializable 31 { 32 static final long serialVersionUID = -3208237880606252967L; 33 34 37 public static final ObjectModification INSERT = new ObjectModification() 38 { 39 public boolean needsInsert() 40 { 41 return true; 42 } 43 44 public boolean needsUpdate() 45 { 46 return false; 47 } 48 }; 49 50 53 public static final ObjectModification UPDATE = new ObjectModification() 54 { 55 public boolean needsInsert() 56 { 57 return false; 58 } 59 60 public boolean needsUpdate() 61 { 62 return true; 63 } 64 }; 65 66 70 public boolean needsInsert(); 71 72 76 public boolean needsUpdate(); 77 } 78 | Popular Tags |