1 2 12 package com.versant.core.jdbc.metadata; 13 14 import com.versant.core.jdbc.metadata.JdbcClass; 15 import com.versant.core.jdbc.metadata.JdbcRefField; 16 import com.versant.core.metadata.MDStatics; 17 18 import java.util.Map ; 19 import java.util.HashMap ; 20 21 26 public class JdbcMetaDataEnums { 27 28 public static final String OPTIMISTIC_LOCKING_NONE = "none"; 29 public static final String OPTIMISTIC_LOCKING_VERSION = "version"; 30 public static final String OPTIMISTIC_LOCKING_TIMESTAMP = "timestamp"; 31 public static final String OPTIMISTIC_LOCKING_CHANGED = "changed"; 32 33 public final Map USE_JOIN_ENUM; 34 public final Map OPTIMISTIC_LOCKING_ENUM; 35 public final Map INHERITANCE_ENUM; 36 37 public static final String INHERITANCE_FLAT = "flat"; 38 public static final String INHERITANCE_VERTICAL = "vertical"; 39 public static final String INHERITANCE_HORIZONTAL = "horizontal"; 40 41 public JdbcMetaDataEnums() { 42 USE_JOIN_ENUM = new HashMap (); 43 USE_JOIN_ENUM.put("no", new Integer (JdbcRefField.USE_JOIN_NO)); 44 USE_JOIN_ENUM.put("inner", new Integer (JdbcRefField.USE_JOIN_INNER)); 45 USE_JOIN_ENUM.put("outer", new Integer (JdbcRefField.USE_JOIN_OUTER)); 46 47 OPTIMISTIC_LOCKING_ENUM = new HashMap (); 48 OPTIMISTIC_LOCKING_ENUM.put(OPTIMISTIC_LOCKING_NONE, new Integer (JdbcClass.OPTIMISTIC_LOCKING_NONE)); 49 OPTIMISTIC_LOCKING_ENUM.put(OPTIMISTIC_LOCKING_VERSION, new Integer (JdbcClass.OPTIMISTIC_LOCKING_VERSION)); 50 OPTIMISTIC_LOCKING_ENUM.put(OPTIMISTIC_LOCKING_TIMESTAMP, new Integer (JdbcClass.OPTIMISTIC_LOCKING_TIMESTAMP)); 51 OPTIMISTIC_LOCKING_ENUM.put(OPTIMISTIC_LOCKING_CHANGED, new Integer (JdbcClass.OPTIMISTIC_LOCKING_CHANGED)); 52 53 INHERITANCE_ENUM = new HashMap (); 54 INHERITANCE_ENUM.put(INHERITANCE_FLAT, new Integer (JdbcClass.INHERITANCE_FLAT)); 55 INHERITANCE_ENUM.put(INHERITANCE_VERTICAL, new Integer (JdbcClass.INHERITANCE_VERTICAL)); 56 INHERITANCE_ENUM.put(INHERITANCE_HORIZONTAL, new Integer (JdbcClass.INHERITANCE_HORIZONTAL)); 57 } 58 } 59 | Popular Tags |