1 21 22 package org.opensubsystems.core.data; 23 24 import java.io.Serializable ; 25 26 38 public abstract class DataObject implements Serializable 39 { 40 42 50 public static final int NEW_ID = -1; 51 52 55 public static final Integer NEW_ID_OBJ = new Integer (NEW_ID); 56 57 60 public static final String NEW_ID_STR = Integer.toString(NEW_ID); 61 62 64 69 private boolean m_bFromPersistanceStore = false; 70 71 73 80 public boolean isFromPersistenceStore( 81 ) 82 { 83 return m_bFromPersistanceStore; 84 } 85 86 89 public void setFromPersistenceStore( 90 ) 91 { 92 m_bFromPersistanceStore = true; 93 } 94 95 100 public abstract int getId( 101 ); 102 103 110 public abstract Integer getIdAsObject( 111 ); 112 113 125 public abstract boolean isSame( 126 Object oObject 127 ); 128 } 129 | Popular Tags |