Преглед изворни кода

数据库连接配置新增属性增加getter、setter方法

dongbw пре 8 година
родитељ
комит
a87e783f60
1 измењених фајлова са 24 додато и 0 уклоњено
  1. 24 0
      src/main/java/com/uas/ps/product/DruidDBConfiguration.java

+ 24 - 0
src/main/java/com/uas/ps/product/DruidDBConfiguration.java

@@ -268,4 +268,28 @@ public class DruidDBConfiguration {
     public void setConnectionProperties(String connectionProperties) {
         this.connectionProperties = connectionProperties;
     }
+
+    public boolean isRemoveAbandoned() {
+        return removeAbandoned;
+    }
+
+    public void setRemoveAbandoned(boolean removeAbandoned) {
+        this.removeAbandoned = removeAbandoned;
+    }
+
+    public int getRemoveAbandonedTimeout() {
+        return removeAbandonedTimeout;
+    }
+
+    public void setRemoveAbandonedTimeout(int removeAbandonedTimeout) {
+        this.removeAbandonedTimeout = removeAbandonedTimeout;
+    }
+
+    public boolean isLogAbandoned() {
+        return logAbandoned;
+    }
+
+    public void setLogAbandoned(boolean logAbandoned) {
+        this.logAbandoned = logAbandoned;
+    }
 }