et-setting-connection-properties.md
You can set a connection property in one of the following ways:
-
Include the property name and value as part of the connection string you pass to the method
DriverManager.getConnection()
. -
Set the properties in a
Properties
object, and then pass it to the methodDriverManager.getConnection()
. -
Use the method
VerticaConnection.setProperty()
. With this approach, you can change only those connection properties that remain changeable after the connection has been established.
Also, some standard JDBC connection properties have getters and setters on the Connection
interface, such as Connection.setAutoCommit()
.