1 64 65 package com.jcorporate.expresso.core.dataobjects; 66 67 import com.jcorporate.expresso.core.db.DBException; 68 69 import java.util.ArrayList ; 70 import java.util.HashMap ; 71 import java.util.Set ; 72 73 85 public interface DataObjectMetaData extends java.io.Serializable { 86 87 94 public String getDefaultValue(String fieldName); 95 96 97 102 public Set getDetailSet(); 103 104 110 public String getDetailFieldsLocal(String detailName); 111 112 118 public String getDetailFieldsForeign(String detailName); 119 120 121 127 public boolean isAllowsNull(String fieldName) throws DBException; 128 129 130 136 public void removeAttribute(String fieldName, String attribName); 137 138 143 public void setAttribute(String fieldName, String attribName, Object attribValue) 144 throws DBException; 145 146 153 public Object getAttribute(String fieldName, String attribName) 154 throws DBException; 155 156 157 163 public java.util.Set getAllAttributes(String fieldName); 164 165 166 169 public void disableLogging(); 170 171 177 public void enableLogging(); 178 179 180 186 public boolean isLoggingEnabled(); 187 188 196 public String isFieldIgnoreCase(String fieldName); 197 198 204 boolean isField(String fieldName); 205 206 212 public HashMap getAllFieldsMap(); 213 214 215 221 public HashMap getAllKeysMap(); 222 223 224 229 public String getCharset(); 230 231 237 public int getCacheSize(); 238 239 245 public void setCacheSize(int newValue); 246 247 248 254 public String getDescription(); 255 256 263 public String getDescription(String fieldName) 264 throws DBException; 265 266 275 public String getDescription(java.util.Locale l, String fieldName); 276 277 283 public DataFieldMetaData getFieldMetadata(String fieldName); 284 285 286 292 public ArrayList getFieldListArray(); 293 294 295 300 public ArrayList getKeyFieldListArray(); 301 302 309 public String getLength(String fieldName) throws DBException; 310 311 312 319 public int getLengthInt(String fieldName) throws DBException; 320 321 327 public int getPrecision(String fieldName) 328 throws DBException; 329 330 331 341 public String getLookupObject(String fieldName) 342 throws DBException; 343 344 345 354 public String getLookupField(String fieldName); 355 356 362 public String getName(); 363 364 365 372 public String getType(String fieldName) 373 throws DBException; 374 375 376 384 public boolean hasField(String fieldName); 385 386 387 395 public boolean isMultiValued(String fieldName) 396 throws DBException; 397 398 399 407 public boolean isReadOnly(String fieldName) 408 throws DBException; 409 410 420 public boolean isSecret(String fieldName) 421 throws DBException; 422 423 431 public boolean isVirtual(String fieldName) 432 throws DBException; 433 434 435 444 public void setCheckZeroUpdate(boolean newFlag); 445 446 447 452 public boolean checkZeroUpdate(); 453 454 455 460 public String getSchema(); 461 462 471 public String [] getFields(); 472 473 474 482 public String getDescription(java.util.Locale l); 483 } 484 | Popular Tags |