1 2 12 package com.versant.core.metadata; 13 14 import java.util.Map ; 15 import java.util.HashMap ; 16 17 22 public class MetaDataEnums { 23 24 public static final String OPTIMISTIC_LOCKING_NONE = "none"; 25 public static final String OPTIMISTIC_LOCKING_VERSION = "version"; 26 public static final String OPTIMISTIC_LOCKING_TIMESTAMP = "timestamp"; 27 public static final String OPTIMISTIC_LOCKING_CHANGED = "changed"; 28 29 public final Map CACHE_ENUM; 30 public final Map AUTOSET_ENUM; 31 32 public MetaDataEnums() { 33 CACHE_ENUM = new HashMap (); 34 CACHE_ENUM.put("no", new Integer (MDStatics.CACHE_STRATEGY_NO)); 35 CACHE_ENUM.put("yes", new Integer (MDStatics.CACHE_STRATEGY_YES)); 36 CACHE_ENUM.put("all", new Integer (MDStatics.CACHE_STRATEGY_ALL)); 37 38 AUTOSET_ENUM = new HashMap (); 39 AUTOSET_ENUM.put("no", new Integer (MDStatics.AUTOSET_NO)); 40 AUTOSET_ENUM.put("created", new Integer (MDStatics.AUTOSET_CREATED)); 41 AUTOSET_ENUM.put("modified", new Integer (MDStatics.AUTOSET_MODIFIED)); 42 AUTOSET_ENUM.put("both", new Integer (MDStatics.AUTOSET_BOTH)); 43 } 44 } 45 | Popular Tags |