1 2 12 package com.versant.core.common.config; 13 14 import java.util.*; 15 16 import com.versant.core.common.BindingSupportImpl; 17 import com.versant.core.metadata.parser.JdoRoot; 18 19 23 public class ConfigInfo { 24 25 public Properties props; 26 public String url; 27 public String db; 28 public String serverName; 29 public boolean allowPmCloseWithOpenTx; 30 public boolean precompileNamedQueries; 31 public boolean checkModelConsistencyOnCommit; 32 public boolean interceptDfgFieldAccess; 33 public boolean hyperdrive; 34 public String hyperdriveSrcDir; 35 public String hyperdriveClassDir; 36 public boolean keepHyperdriveBytecode; 37 public int pmCacheRefType; 38 public boolean testing; 39 40 public String remoteAccess; 41 42 public boolean retainValues; 43 public boolean restoreValues; 44 public boolean optimistic; 45 public boolean nontransactionalRead; 46 public boolean nontransactionalWrite; 47 public boolean ignoreCache; 48 public boolean multithreaded; 49 public String connectionFactoryName; 50 public String connectionFactory2Name; 51 52 public boolean pmpoolEnabled; 53 public int pmpoolMaxIdle; 54 55 public boolean remotePmpoolEnabled; 56 public int remotePmpoolMaxIdle; 57 public int remotePmpoolMaxActive; 58 59 62 public boolean queryCacheEnabled; 63 public int maxQueriesToCache; 64 public int compiledQueryCacheSize; 65 66 69 public ArrayList jdoResources = new ArrayList(); 70 public JdoRoot[] jdoMetaData; 71 72 public Map perfProps; 73 74 public boolean useCache; 75 public int cacheMaxObjects; 76 public String cacheListenerClass; 77 public Map cacheListenerProps; 78 79 public int flushThreshold; 80 public int datastoreTxLocking; 81 public int retainConnectionInOptTx; 83 public int metricStoreCapacity; 84 public int metricSnapshotIntervalMs; 85 public ArrayList userBaseMetrics = new ArrayList(); 87 public String logDownloaderClass; 88 public Map logDownloaderProps; 89 90 public List externalizers = new ArrayList(); public Map scoFactoryRegistryMappings = new HashMap(); 92 public String metaDataPreProcessor; 93 94 97 public static class UserBaseMetric { 98 public String name; 99 public String displayName; 100 public String category; 101 public String description; 102 public int defaultCalc; 103 public int decimals; 104 } 105 106 109 public static class ExternalizerInfo { 110 public String typeName; 111 public boolean enabled; 112 public String externalizerName; 113 public Map args = new HashMap(17); 114 } 115 116 120 public void validate() { 121 if (jdoResources.isEmpty()) { 122 throw BindingSupportImpl.getInstance().runtime( 123 "At least one jdoNNN property is required"); 124 } 125 } 126 127 130 public String [] getJdoResources() { 131 String [] a = new String [jdoResources.size()]; 132 jdoResources.toArray(a); 133 return a; 134 } 135 } 136 | Popular Tags |