diff --git a/src/main/java/de/gnmyt/sqltoolkit/manager/ConnectSettingsManager.java b/src/main/java/de/gnmyt/sqltoolkit/manager/ConnectSettingsManager.java index 8a2cdac..10bb672 100644 --- a/src/main/java/de/gnmyt/sqltoolkit/manager/ConnectSettingsManager.java +++ b/src/main/java/de/gnmyt/sqltoolkit/manager/ConnectSettingsManager.java @@ -95,6 +95,28 @@ public class ConnectSettingsManager { return this; } + /** + * Sets the connectTimeout property + * + * @param connectTimeout The new value of the connectTimeout property + * @return this class + */ + public ConnectSettingsManager connectTimeout(int connectTimeout) { + settingValues.put("connectTimeout", connectTimeout); + return this; + } + + /** + * Sets the socketTimeout property + * + * @param socketTimeout The new value of the socketTimeout property + * @return this class + */ + public ConnectSettingsManager socketTimeout(int socketTimeout) { + settingValues.put("socketTimeout", socketTimeout); + return this; + } + /** * Sets the tcpKeepAlive property * @@ -139,6 +161,17 @@ public class ConnectSettingsManager { return this; } + /** + * Sets the maxAllowedPacket property + * + * @param maxAllowedPacket The new value of the maxAllowedPacket property + * @return this class + */ + public ConnectSettingsManager maxAllowedPacket(int maxAllowedPacket) { + settingValues.put("maxAllowedPacket", maxAllowedPacket); + return this; + } + /** * Sets the tcpTrafficClass property * @@ -183,6 +216,17 @@ public class ConnectSettingsManager { return this; } + /** + * Sets the verifyServerCertificate property + * + * @param verifyServerCertificate The new value of the verifyServerCertificate property + * @return this class + */ + public ConnectSettingsManager verifyServerCertificate(boolean verifyServerCertificate) { + settingValues.put("verifyServerCertificate", verifyServerCertificate); + return this; + } + /** * Creates the connection string *