1 23 package com.lutris.appserver.server.sql; 24 25 import org.enhydra.dods.cache.Condition; 26 27 33 abstract public class CoreDataStruct { 34 35 45 private static String oidColumnName = "oid"; 46 private static String versionColumnName = "version"; 47 protected ObjectId oId; 49 protected int version = 0; 51 protected int newVersion = 0; 53 54 57 public CoreDataStruct() {} 58 59 63 protected static String get_OIdColumnName() { 64 return oidColumnName; 65 } 66 67 71 protected static void set_OIdColumnName(String _oidColumnName) { 72 oidColumnName = _oidColumnName; 73 } 74 75 79 protected static String get_versionColumnName() { 80 return versionColumnName; 81 } 82 83 87 protected static void set_versionColumnName(String _versionColumnName) { 88 CoreDataStruct.versionColumnName = _versionColumnName; 89 } 90 91 95 protected void setVersion(int _version) { 96 set_Version(_version); 97 } 98 99 103 protected void set_Version(int _version) { 104 version = _version; 105 } 106 107 111 protected int getVersion() { 112 return get_Version(); 113 } 114 115 119 protected int get_Version() { 120 return version; 121 } 122 123 127 public ObjectId getOId() { 128 return get_OId(); 129 } 130 131 135 public ObjectId get_OId() { 136 return oId; 137 } 138 139 143 protected void setOId(ObjectId oId) { 144 set_OId(oId); 145 } 146 147 151 protected void set_OId(ObjectId oId) { 152 this.oId = oId; 153 } 154 155 163 public boolean compareCond(Condition cond) { 164 return false; 165 } 166 167 176 public String getHandle() throws DatabaseManagerException { 177 return null; 178 } 179 180 188 public String get_Handle() throws DatabaseManagerException { 189 return null; 190 } 191 192 201 public String get_CacheHandle() throws DatabaseManagerException { 202 return null; 203 } 204 205 212 public String get_Database() { 213 return null; 214 } 215 216 219 abstract public CoreDataStruct dumpData(boolean incrementVersion); 220 } 221 | Popular Tags |