1 2 12 package com.versant.core.jdbc; 13 14 import java.util.ArrayList ; 15 import java.util.HashMap ; 16 import java.util.Map ; 17 18 21 public class JdbcConfig { 22 23 public String name; 24 public String db; 25 public String poolname; 26 public String url; 27 public String driver; 28 public String user; 29 public String password; 30 public String properties; 31 public String conFactory; 33 public String driver2; 35 public String url2; 36 public String user2; 37 public String password2; 38 public String properties2; 39 public String conFactory2; 41 public int maxActive; 42 public int maxIdle; 43 public int minIdle; 44 public int reserved; 45 46 public int jdbcOptimisticLocking; 47 public boolean readOnly; 48 public int cacheStrategy; 49 public int inheritance; 50 public int defaultClassId; 51 public boolean jdbcDoNotCreateTable; 52 public boolean oidsInDefaultFetchGroup; 53 public boolean jdbcDisableStatementBatching; 54 public boolean jdbcDisablePsCache; 55 public boolean validateMappingOnStartup; 56 public boolean managedOneToMany; 57 public boolean managedManyToMany; 58 59 public int isolationLevel; 60 public String initSQL; 61 public String validateSQL; 62 public boolean waitForConOnStartup; 63 public boolean testOnAlloc; 64 public boolean testOnRelease; 65 public boolean testOnException = true; 66 public boolean testWhenIdle = true; 67 public int retryIntervalMs = 100; 68 public int retryCount; 69 public int psCacheMax; 70 public int conTimeout; 71 public int testInterval; 72 public boolean blockWhenFull; 73 public int maxConAge; 74 75 public String jdbcKeyGenerator; 76 public Map jdbcKeyGeneratorProps; 77 78 public String jdbcNameGenerator; 79 public Map jdbcNameGeneratorProps; 80 public Map jdbcMigrationControlProps; 81 82 public ArrayList typeMappings; 83 public ArrayList javaTypeMappings; 84 85 88 public static final int DEFAULT_CLASS_ID_HASH = 1; 89 92 public static final int DEFAULT_CLASS_ID_NO = 2; 93 96 public static final int DEFAULT_CLASS_ID_NAME = 3; 97 100 public static final int DEFAULT_CLASS_ID_FULLNAME = 4; 101 } 102 103 | Popular Tags |