1 20 package com.lutris.appserver.server.sql.standard; 21 22 import org.enhydra.dods.CommonConstants; 23 import org.enhydra.dods.DODS; 24 import org.enhydra.dods.cache.CacheConstants; 25 import org.enhydra.dods.exceptions.AssertionDataObjectException; 26 27 import com.lutris.appserver.server.sql.DatabaseManagerConfiguration; 28 import com.lutris.appserver.server.sql.StandardDatabaseManager; 29 import com.lutris.util.Config; 30 31 32 40 41 public class DatabaseConfiguration implements CacheConstants, DriverSpecificConstants { 42 43 47 private String dbName = null; 48 49 53 private boolean readOnly = CacheConstants.DEFAULT_All_READONLY; 54 55 60 private boolean lazyLoading = CacheConstants.DEFAULT_LAZY_LOADING; 61 62 63 64 69 private boolean caseSensitive = CacheConstants.DEFAULT_CASE_SENSITIVE; 70 71 72 73 74 79 private int maxExecuteTime = CacheConstants.DEFAULT_MAX_EXECUTE_TIME; 80 81 private double reserveFactor = CacheConstants.DEFAULT_RESERVE_FACTOR; 82 83 private int maxCacheSize = CacheConstants.DEFAULT_MAX_CACHE_SIZE; 84 85 private int maxSimpleCacheSize = CacheConstants.DEFAULT_MAX_SIMPLE_QUERY_CACHE_SIZE; 86 87 private int maxComplexCacheSize = CacheConstants.DEFAULT_MAX_COMPLEX_QUERY_CACHE_SIZE; 88 89 private int maxMultiJoinCacheSize = CacheConstants.DEFAULT_MAX_MULTI_JOIN_QUERY_CACHE_SIZE; 90 91 private double cachePercentage = CacheConstants.DEFAULT_CACHE_PERCENTAGE; 92 private boolean transactionCheck = CacheConstants.DEFAULT_TRANSACTION_CHECK; 93 94 private boolean deleteCheckVersion = CacheConstants.DEFAULT_DELETE_CHECK_VERSION; 95 96 private boolean autoSave = CacheConstants.DEFAULT_AUTO_SAVE; 97 98 private boolean autoSaveCreateVirgin = CacheConstants.DEFAULT_AUTO_SAVE_CREATE_VIRGIN; 99 100 private boolean autoWrite = CacheConstants.DEFAULT_AUTO_WRITE; 101 102 private boolean transactionCaches = CacheConstants.DEFAULT_TRANSACTION_CACHES; 103 104 private int deadlockWaitTime = CacheConstants.DEFAULT_DEADLOCK_READ_TIME; 105 106 private int deadlockRetryCount = CacheConstants.DEFAULT_DEADLOCK_RETRY_NUMBER; 107 108 private boolean initialAllCaches = CacheConstants.DEFAULT_INITIAL_ALL_CACHES; 109 110 private int defaultFetchSize = CacheConstants.DEFAULT_DEFAULT_FETCH_SIZE; 111 112 private int defaultQueryTimeout = CacheConstants.DEFAULT_QUERY_TIMEOUT; 113 114 private boolean defaultSelectOids = CacheConstants.DEFAULT_SELECT_OIDS; 115 116 private boolean defaultIncrementVersions = CacheConstants.DEFAULT_INCREMENT_VERSIONS; 117 118 private Boolean useCursorName = null ; 119 120 private boolean disableFetchSizeWithMaxRows = DriverSpecificConstants.DEFAULT_DISABLE_FETCH_SIZE_WITH_MAX_ROWS; 121 122 private int resultSetType = DriverSpecificConstants.DEFAULT_RESULT_SET_TYPE; 123 124 private int resultSetConcurrency = DriverSpecificConstants.DEFAULT_RESULT_SET_CONCURRENCY; 125 126 private String DBTransactionFactoryName = null; 127 128 private String connectionAllocatorName = null; 129 130 private String DBConnectionFactoryName = null; 131 132 private String queryCacheImplClass = null; 133 134 private int fullCacheCountLimit = CacheConstants.DEFAULT_FULL_CACHE_COUNT_LIMIT; 135 136 private int initialCacheFetchSize = CacheConstants.DEFAULT_INITIAL_CACHE_FETCH_SIZE; 137 138 private int initialDSCacheSize = CacheConstants.DEFAULT_INITIAL_DS_CACHE_SIZE; 139 140 private String initCachesResultSetType = null; 141 142 private String initCachesResultSetConcurrency = null; 143 144 private boolean sqlBatch = CommonConstants.DEFAULT_SQL_BATCH; 145 146 private boolean caseInsensitiveDatabase = CommonConstants.DEFAULT_CASE_INSENSITIVE_DATABASE; 147 148 private Integer queryTimeLimit = CommonConstants.DEFAULT_QUERY_TIME_LIMIT; 149 150 152 private int xaDefaultTimeout = CommonConstants.DEFAULT_XA_DEFAULT_TIMEOUT; 153 154 private int xaUsageCase = CommonConstants.DEFAULT_XA_USAGE_CASE; 155 156 private String xaTransactonManagerLookupName = CommonConstants.DEFAULT_XA_TM_LOOKUP_NAME; 157 158 private String xaUserTransactonLookupName = CommonConstants.DEFAULT_XA_USER_TRANSACTION_LOOKUP_NAME; 159 160 private String xaWrappedTransImplFactory = CommonConstants.DEFAULT_XA_WRAPPED_TRANS_IMPL_FACTORY; 161 162 private String xaJtaSupport = CommonConstants.DEFAULT_XA_JTA_SUPPORT; 163 164 166 private String dodsCacheFactory = CacheConstants.DEFAULT_DODS_CACHE_FACTORY; 167 168 173 public boolean isAllReadOnly() { 174 return readOnly; 175 } 176 177 public DatabaseConfiguration(String database) { 178 if (database != null) { 179 dbName = database; 180 } else { 181 dbName = DODS.getDatabaseManager().getDefaultDB(); 182 } 183 init(((StandardDatabaseManager)DODS.getDatabaseManager()).getDatabaseManagerConfiguration()); 184 } 185 186 public DatabaseConfiguration(String database, DatabaseManagerConfiguration DbManagerConf) { 187 if (database != null) { 188 dbName = database; 189 } else { 190 dbName = DODS.getDatabaseManager().getDefaultDB(); 191 } 192 init(DbManagerConf); 193 } 194 195 196 private void init(DatabaseManagerConfiguration stmc) { 197 readOnly = stmc.isAllReadOnly(); 198 lazyLoading = stmc.isLazyLoading(); 199 caseSensitive = stmc.getCaseSensitive(); 200 maxExecuteTime = stmc.getMaxExecuteTime(); 201 reserveFactor = stmc.getReserveFactor(); 202 cachePercentage = stmc.getCachePercentage(); 203 maxCacheSize = stmc.getMaxCacheSize(); 204 maxSimpleCacheSize = stmc.getMaxSimpleCacheSize(); 205 maxComplexCacheSize = stmc.getMaxComplexCacheSize(); 206 maxMultiJoinCacheSize = stmc.getMaxMultiJoinCacheSize(); 207 transactionCheck = stmc.getTransactionCheck(); 208 deleteCheckVersion = stmc.getDeleteCheckVersion(); 209 autoSave = stmc.getAutoSave(); 210 autoSaveCreateVirgin = stmc.getAutoSaveCreateVirgin(); 211 autoWrite = stmc.getAutoWrite(); 212 transactionCaches = stmc.getTransactionCaches(); 213 deadlockWaitTime = stmc.getDeadlockWaitTime(); 214 deadlockRetryCount = stmc.getDeadlockRetryCount(); 215 initialAllCaches = stmc.getInitAllCaches(); 216 defaultFetchSize = stmc.getDefaultFetchSize(); 217 defaultQueryTimeout = stmc.getQueryTimeout(); 218 defaultSelectOids = stmc.getSelectOids(); 219 defaultIncrementVersions = stmc.getIncrementVersions(); 220 useCursorName = stmc.getUseCursorName(); 221 DBTransactionFactoryName = stmc.getDBTransactionFactoryName(); 222 connectionAllocatorName = stmc.getConnectionAllocatorName(); 223 DBConnectionFactoryName = stmc.getDBConnectionFactoryName(); 224 queryCacheImplClass = stmc.getQueryCacheImplClass(); 225 dodsCacheFactory = stmc.getDodsCacheFactory(); 226 fullCacheCountLimit = stmc.getFullCacheCountLimit(); 227 initialCacheFetchSize = stmc.getInitialCacheFetchSize(); 228 initialDSCacheSize = stmc.getInitialDSCacheSize(); 229 initCachesResultSetType = stmc.getInitCachesResultSetType(); 230 initCachesResultSetConcurrency = stmc.getInitCachesResultSetConcurrency(); 231 sqlBatch = stmc.isSqlBatch(); 232 caseInsensitiveDatabase = stmc.isCaseInsensitiveDatabase(); 233 queryTimeLimit = stmc.getQueryTimeLimit(); 234 xaDefaultTimeout = stmc.getXaDefaultTimeout(); 235 xaUsageCase = stmc.getXaUsageCase(); 236 xaTransactonManagerLookupName = stmc.getXaTransactonManagerLookupName(); 237 xaUserTransactonLookupName = stmc.getXaUserTransactonLookupName(); 238 xaWrappedTransImplFactory = stmc.getXaWrappedTransImplFactory(); 239 xaJtaSupport = stmc.getXaJtaSupport(); 240 } 241 242 249 protected void setReadOnly(boolean newReadOnly) throws AssertionDataObjectException { 250 readOnly = newReadOnly ; 251 } 252 253 258 public boolean isLazyLoading() { 259 return lazyLoading; 260 } 261 262 267 protected void setLazyLoading(boolean newlazyLoading) { 268 lazyLoading = newlazyLoading; 269 } 270 271 276 public int getMaxExecuteTime() { 277 return maxExecuteTime; 278 } 279 280 285 protected void setMaxExecuteTime(int newMaxExecuteTime) { 286 maxExecuteTime = newMaxExecuteTime; 287 } 288 289 294 public int getMaxCacheSize() { 295 return maxCacheSize; 296 } 297 298 303 protected void setMaxCacheSize(int newMaxCacheSize) { 304 maxCacheSize = newMaxCacheSize; 305 } 306 307 312 public double getReserveFactor() { 313 return reserveFactor; 314 } 315 316 321 protected void setReserveFactor(double newReserveFactor) { 322 reserveFactor = newReserveFactor; 323 } 324 325 328 protected void setCachePercentage(double percent) { 329 cachePercentage = percent; 330 } 331 332 335 public double getCachePercentage() { 336 return cachePercentage; 337 } 338 339 344 public int getMaxComplexCacheSize() { 345 return maxComplexCacheSize; 346 } 347 348 353 protected void setMaxComplexCacheSize(int newMaxCacheSize) { 354 maxComplexCacheSize = newMaxCacheSize; 355 } 356 361 public int getMaxMultiJoinCacheSize() { 362 return maxMultiJoinCacheSize; 363 } 364 365 370 protected void setMaxMultiJoinCacheSize(int newMaxCacheSize) { 371 maxMultiJoinCacheSize = newMaxCacheSize; 372 } 373 374 379 public int getMaxSimpleCacheSize() { 380 return maxSimpleCacheSize; 381 } 382 383 388 protected void setMaxSimpleCacheSize(int newMaxCacheSize) { 389 maxSimpleCacheSize = newMaxCacheSize; 390 } 391 392 397 public boolean getTransactionCheck() { 398 return transactionCheck; 399 } 400 401 406 protected void setTransactionCheck(boolean newCheck) { 407 transactionCheck = newCheck; 408 } 409 410 415 public boolean getDeleteCheckVersion() { 416 return deleteCheckVersion; 417 } 418 419 424 protected void setDeleteCheckVersion(boolean newCheck) { 425 deleteCheckVersion = newCheck; 426 } 427 428 433 public boolean getAutoSave() { 434 return autoSave; 435 } 436 437 442 protected void setAutoSave(boolean newCheck) { 443 autoSave = newCheck; 444 } 445 446 451 public boolean getAutoSaveCreateVirgin() { 452 return autoSaveCreateVirgin; 453 } 454 455 460 protected void setAutoSaveCreateVirgin(boolean newCheck) { 461 autoSaveCreateVirgin = newCheck; 462 } 463 464 469 public boolean getAutoWrite() { 470 return autoWrite; 471 } 472 473 478 protected void setAutoWrite(boolean newCheck) { 479 autoWrite = newCheck; 480 } 481 482 487 public boolean getTransactionCaches() { 488 return transactionCaches; 489 } 490 491 496 protected void setTransactionCaches(boolean newCheck) { 497 transactionCaches = newCheck; 498 } 499 500 505 public int getDeadlockWaitTime() { 506 return deadlockWaitTime; 507 } 508 509 514 protected void setDeadlockWaitTime(int waitTime) { 515 deadlockWaitTime = waitTime; 516 } 517 518 523 public int getDeadlockRetryCount() { 524 return deadlockRetryCount; 525 } 526 527 532 protected void setDeadlockRetryCount(int newValue) { 533 deadlockRetryCount = newValue; 534 } 535 536 541 public boolean getInitAllCaches() { 542 return initialAllCaches; 543 } 544 545 550 protected void setInitAllCaches(boolean newValue) { 551 initialAllCaches = newValue; 552 } 553 554 559 public int getDefaultFetchSize() { 560 return defaultFetchSize; 561 } 562 563 568 protected void setDefaultFetchSize(int newValue) { 569 defaultFetchSize = newValue; 570 } 571 572 577 public int getQueryTimeout() { 578 return defaultQueryTimeout; 579 } 580 581 586 protected void setQueryTimeout(int newValue) { 587 defaultQueryTimeout = newValue; 588 } 589 590 591 596 public boolean getSelectOids() { 597 return defaultSelectOids; 598 } 599 600 605 protected void setSelectOids(boolean newValue) { 606 defaultSelectOids = newValue; 607 } 608 609 610 611 616 public boolean getIncrementVersions() { 617 return defaultIncrementVersions; 618 } 619 620 625 protected void setIncrementVersions(boolean newValue) { 626 defaultIncrementVersions = newValue; 627 } 628 629 630 635 public Boolean getUseCursorName() { 636 return useCursorName; 637 } 638 639 644 public void setUseCursorName(boolean newValue) { 645 useCursorName = new Boolean (newValue); 646 } 647 648 653 public void setUseCursorName(Boolean newValue) { 654 useCursorName = newValue; 655 } 656 657 658 663 public boolean getDisableFetchSizeWithMaxRows() { 664 return disableFetchSizeWithMaxRows; 665 } 666 667 672 public void setDisableFetchSizeWithMaxRows(boolean newValue) { 673 disableFetchSizeWithMaxRows = newValue; 674 } 675 676 677 682 public int getResultSetType() { 683 return resultSetType; 684 } 685 686 691 public void setResultSetType(int newValue) { 692 resultSetType = newValue; 693 } 694 695 696 697 702 public int getResultSetConcurrency() { 703 return resultSetConcurrency; 704 } 705 706 711 public void setResultSetConcurrency(int newValue) { 712 resultSetConcurrency = newValue; 713 } 714 715 716 719 public String getDBTransactionFactoryName() { 720 return DBTransactionFactoryName; 721 } 722 723 724 727 public void setDBTransactionFactoryName(String string) { 728 DBTransactionFactoryName = string; 729 } 730 731 732 735 public String getConnectionAllocatorName() { 736 return connectionAllocatorName; 737 } 738 739 740 743 public void setConnectionAllocatorName(String string) { 744 connectionAllocatorName = string; 745 } 746 747 748 public int getFullCacheCountLimit() { 749 return fullCacheCountLimit; 750 } 751 public void setFullCacheCountLimit(int i) { 752 fullCacheCountLimit = i; 753 } 754 755 756 757 761 public void readDatabaseConfiguration() { 762 Config databaseConfig = null; 763 764 try { 765 databaseConfig = (Config) DODS.getDatabaseManager().getConfig().getSection("DB." 766 + dbName); 767 } catch (Exception ex) {} 768 if (databaseConfig != null) { 769 try { 770 readOnly = databaseConfig.getBoolean(PARAMNAME_READ_ONLY); 771 } catch (Exception e) {} 772 try { 773 lazyLoading = databaseConfig.getBoolean(PARAMNAME_LAZY_LOADING); 774 } catch (Exception e) {} 775 try { 776 caseSensitive = databaseConfig.getBoolean(PARAMNAME_CASE_SENSITIVE); 777 } catch (Exception e) {} 778 try { 779 maxExecuteTime = databaseConfig.getInt(PARAMNAME_MAX_EXECUTE_TIME); 780 } catch (Exception e) {} 781 782 try { 783 transactionCheck = databaseConfig.getBoolean(PARAMNAME_TRANSACTION_CHECK); 784 } catch (Exception e) {} 785 try { 786 deleteCheckVersion = databaseConfig.getBoolean(PARAMNAME_DELETE_CHECK_VERSION); 787 } catch (Exception e) {} 788 try { 789 autoSave = databaseConfig.getBoolean(PARAMNAME_AUTO_SAVE); 790 } catch (Exception e) {} 791 try { 792 autoSaveCreateVirgin = databaseConfig.getBoolean(PARAMNAME_AUTO_SAVE_CREATE_VIRGIN); 793 } catch (Exception e) {} 794 try { 795 autoWrite = databaseConfig.getBoolean(PARAMNAME_AUTO_WRITE); 796 } catch (Exception e) {} 797 try { 798 transactionCaches = databaseConfig.getBoolean(PARAMNAME_TRANSACTION_CACHES); 799 } catch (Exception e) {} 800 try { 801 deadlockWaitTime = databaseConfig.getInt(PARAMNAME_DEADLOCK_READ_TIME); 802 } catch (Exception e) {} 803 try { 804 deadlockRetryCount = databaseConfig.getInt(PARAMNAME_DEADLOCK_RETRY_NUMBER); 805 } catch (Exception e) {} 806 try { 807 defaultFetchSize = databaseConfig.getInt(PARAMNAME_DEFAULT_FETCH_SIZE); 808 } catch (Exception e) {} 809 try { 810 defaultQueryTimeout = databaseConfig.getInt(PARAMNAME_QUERY_TIMEOUT); 811 } catch (Exception e) {} 812 try { 813 defaultSelectOids = databaseConfig.getBoolean(PARAMNAME_SELECT_OIDS); 814 } catch (Exception e) {} 815 try { 816 defaultIncrementVersions = databaseConfig.getBoolean(PARAMNAME_INCREMENT_VERSIONS); 817 } catch (Exception e) {} 818 try { 819 boolean tmpUCrN = (databaseConfig.getBoolean(PARAMNAME_USE_CURSOR_NAME)); 820 useCursorName = new Boolean (tmpUCrN); 821 } catch (Exception e) { 822 useCursorName = null; 823 } 824 try { 825 DBTransactionFactoryName = (databaseConfig.getString(CommonConstants.TRANSACTION_FACTORY)); 826 } catch (Exception e) { 827 DBTransactionFactoryName = null; 828 } 829 try { 830 connectionAllocatorName = (databaseConfig.getString(CommonConstants.CONNECTION_ALLOCATOR)); 831 } catch (Exception e) { 832 connectionAllocatorName = null; 833 } 834 try { 835 DBConnectionFactoryName = (databaseConfig.getString(CommonConstants.CONNECTION_FACTORY)); 836 } catch (Exception e) { 837 DBConnectionFactoryName = null; 838 } 839 try { 840 queryCacheImplClass = (databaseConfig.getString(CommonConstants.QUERY_CACAHE_IMPL_CLASS)); 841 } catch (Exception e) { 842 queryCacheImplClass = null; 843 } 844 try { 845 fullCacheCountLimit = (databaseConfig.getInt(CacheConstants.FULL_CACHE_COUNT_LIMIT)); 846 } catch (Exception e) {} 847 try { 848 initCachesResultSetType = databaseConfig.getString(CommonConstants.INIT_CACHES_RESULT_SET_TYPE); 849 } catch (Exception e) {} 850 try { 851 initCachesResultSetConcurrency = databaseConfig.getString(CommonConstants.INIT_CACHES_RESULT_SET_CONCURRENCY); 852 } catch (Exception e) {} 853 try { 854 sqlBatch = databaseConfig.getBoolean(CommonConstants.SQL_BATCH); 855 } catch (Exception e) {} 856 try { 857 caseInsensitiveDatabase = databaseConfig.getBoolean(CommonConstants.CASE_INSENSITIVE_DATABASE); 858 } catch (Exception e) {} 859 try { 860 xaDefaultTimeout = databaseConfig.getInt(CommonConstants.XA_DEFAULT_TIMEOUT); 861 } catch (Exception e) { } 862 863 try { 864 queryTimeLimit = new Integer (databaseConfig.getInt(CommonConstants.QUERY_TIME_LIMIT)); 865 } catch (Exception e) {} 866 try { 867 xaTransactonManagerLookupName = databaseConfig.getString(CommonConstants.XA_TM_LOOKUP_NAME); 868 } catch (Exception e) { } 869 try { 870 xaUsageCase = databaseConfig.getInt(CommonConstants.XA_USAGE_CASE); 871 } catch (Exception e) { } 872 try { 873 xaWrappedTransImplFactory = databaseConfig.getString(CommonConstants.XA_WRAPPED_TRANS_IMPL_FACTORY); 874 } catch (Exception e) { } 875 try { 876 xaUserTransactonLookupName = databaseConfig.getString(CommonConstants.XA_USER_TRANSACTION_LOOKUP_NAME); 877 } catch (Exception e) { } 878 try { 879 xaJtaSupport = databaseConfig.getString(CommonConstants.XA_JTA_SUPPORT); 880 } catch (Exception e) { } 881 882 } 883 try { 884 databaseConfig = (Config) DODS.getDatabaseManager().getConfig().getSection("DB." 885 + dbName + ".cache"); 886 } catch (Exception ex) {} 887 if (databaseConfig != null) { 888 try { 889 maxCacheSize = databaseConfig.getInt(PARAMNAME_MAX_CACHE_SIZE); 890 } catch (Exception e) {} 891 try { 892 reserveFactor = databaseConfig.getDouble(PARAMNAME_RESERVE_FACTOR); 893 } catch (Exception e) {} 894 try { 895 cachePercentage = databaseConfig.getDouble(PARAMNAME_CACHE_PERCENTAGE); 896 } catch (Exception e) {} 897 try { 898 maxSimpleCacheSize = databaseConfig.getInt(PARAMNAME_MAX_SIMPLE_CACHE_SIZE); 899 } catch (Exception e) {} 900 try { 901 maxComplexCacheSize = databaseConfig.getInt(PARAMNAME_MAX_COMPLEX_CACHE_SIZE); 902 } catch (Exception e) {} 903 try { 904 maxMultiJoinCacheSize = databaseConfig.getInt(PARAMNAME_MAX_MULTI_JOIN_CACHE_SIZE); 905 } catch (Exception e) {} 906 try { 907 initialAllCaches = databaseConfig.getBoolean(PARAMNAME_INITIAL_ALL_CACHES); 908 } catch (Exception e) {} 909 try { 910 initialCacheFetchSize = databaseConfig.getInt(PARAMNAME_INITIAL_CACHE_FETCH_SIZE); 911 } catch (Exception e) {} 912 try { 913 initialDSCacheSize = databaseConfig.getInt(PARAMNAME_INITIAL_DS_CACHE_SIZE); 914 } catch (Exception e) {} 915 try { 916 dodsCacheFactory = databaseConfig.getString(PARAMNAME_DODS_CACHE_FACTORY); 917 } catch (Exception e) {} 918 919 } 920 } 921 922 923 928 public boolean getCaseSensitive() { 929 return caseSensitive; 930 } 931 932 937 public void setCaseSensitive(boolean newValue) { 938 caseSensitive = newValue; 939 } 940 941 944 public String getDBConnectionFactoryName() { 945 return DBConnectionFactoryName; 946 } 947 948 951 public void setDBConnectionFactoryName(String string) { 952 DBConnectionFactoryName = string; 953 } 954 955 958 public int getInitialCacheFetchSize() { 959 return initialCacheFetchSize; 960 } 961 962 965 public int getInitialDSCacheSize() { 966 return initialDSCacheSize; 967 } 968 969 972 public void setInitialCacheFetchSize(int i) { 973 initialCacheFetchSize = i; 974 } 975 976 979 public void setInitialDSCacheSize(int i) { 980 initialDSCacheSize = i; 981 } 982 983 986 public String getQueryCacheImplClass() { 987 return queryCacheImplClass; 988 } 989 990 993 public void setQueryCacheImplClass(String string) { 994 queryCacheImplClass = string; 995 } 996 997 1000 public String getInitCachesResultSetConcurrency() { 1001 return initCachesResultSetConcurrency; 1002 } 1003 1004 1007 public String getInitCachesResultSetType() { 1008 return initCachesResultSetType; 1009 } 1010 1011 1014 public void setInitCachesResultSetConcurrency(String string) { 1015 initCachesResultSetConcurrency = string; 1016 } 1017 1018 1021 public void setInitCachesResultSetType(String string) { 1022 initCachesResultSetType = string; 1023 } 1024 1025 1026 1029 public boolean isSqlBatch() { 1030 return sqlBatch; 1031 } 1032 1033 1034 1037 public void setSqlBatch(boolean b) { 1038 sqlBatch = b; 1039 } 1040 1041 1042 1045 public boolean isCaseInsensitiveDatabase() { 1046 return caseInsensitiveDatabase; 1047 } 1048 1049 1050 1053 public void setCaseInsensitiveDatabase(boolean caseInsensitiveDatabase) { 1054 this.caseInsensitiveDatabase = caseInsensitiveDatabase; 1055 } 1056 1057 1058 1061 public Integer getQueryTimeLimit() { 1062 return queryTimeLimit; 1063 } 1064 1065 1066 1069 public void setQueryTimeLimit(Integer queryTimeLimit) { 1070 this.queryTimeLimit = queryTimeLimit; 1071 } 1072 1073 1074 1077 public int getXaDefaultTimeout() { 1078 return xaDefaultTimeout; 1079 } 1080 1081 1082 1085 public void setXaDefaultTimeout(int xaDefaultTimeout) { 1086 this.xaDefaultTimeout = xaDefaultTimeout; 1087 } 1088 1089 1090 1093 public String getXaTransactonManagerLookupName() { 1094 return xaTransactonManagerLookupName; 1095 } 1096 1097 1098 1101 public void setXaTransactonManagerLookupName( 1102 String xaTransactonManagerLookupName) { 1103 this.xaTransactonManagerLookupName = xaTransactonManagerLookupName; 1104 } 1105 1106 1107 1110 public int getXaUsageCase() { 1111 return xaUsageCase; 1112 } 1113 1114 1115 1118 public void setXaUsageCase(int xaUsageCase) { 1119 this.xaUsageCase = xaUsageCase; 1120 } 1121 1122 1123 1126 public String getXaWrappedTransImplFactory() { 1127 return xaWrappedTransImplFactory; 1128 } 1129 1130 1131 1134 public void setXaWrappedTransImplFactory(String xaWrappedTransImplFactory) { 1135 this.xaWrappedTransImplFactory = xaWrappedTransImplFactory; 1136 } 1137 1138 1139 1142 public String getXaUserTransactonLookupName() { 1143 return xaUserTransactonLookupName; 1144 } 1145 1146 1147 1150 public void setXaUserTransactonLookupName(String xaUserTransactonLookupName) { 1151 this.xaUserTransactonLookupName = xaUserTransactonLookupName; 1152 } 1153 1154 1155 1158 public String getXaJtaSupport() { 1159 return xaJtaSupport; 1160 } 1161 1162 1163 1166 public void setXaJtaSupport(String xaJtaSupport) { 1167 this.xaJtaSupport = xaJtaSupport; 1168 } 1169 1170 1173 public String getDodsCacheFactory() { 1174 return this.dodsCacheFactory; 1175 } 1176 1179 public void setDodsCacheFactory(String dodsCacheFactory) { 1180 this.dodsCacheFactory = dodsCacheFactory; 1181 } 1182} 1183 | Popular Tags |