public class ConfiguringConnectionDecorator extends Object implements ConnectionDecorator
Connection
constants)Modifier and Type | Class and Description |
---|---|
class |
ConfiguringConnectionDecorator.ConfiguringConnection
Decorator to configure connection components correctly.
|
Constructor and Description |
---|
ConfiguringConnectionDecorator() |
Modifier and Type | Method and Description |
---|---|
Connection |
decorate(Connection conn)
Decorate the given connection if desired.
|
Boolean |
getAutoCommit()
Whether auto commit should be on.
|
int |
getQueryTimeout()
The number of seconds to wait for a query to execute before
terminating it.
|
int |
getTransactionIsolation()
The transaction isolation level.
|
void |
setAutoCommit(Boolean autoCommit)
Whether auto commit should be on.
|
void |
setQueryTimeout(int timeout)
The number of seconds to wait for a query to execute before
terminating it.
|
void |
setTransactionIsolation(int isolation)
The transaction isolation level.
|
public int getQueryTimeout()
public void setQueryTimeout(int timeout)
public int getTransactionIsolation()
public void setTransactionIsolation(int isolation)
public Boolean getAutoCommit()
public void setAutoCommit(Boolean autoCommit)
public Connection decorate(Connection conn) throws SQLException
ConnectionDecorator
decorate
in interface ConnectionDecorator
SQLException
Copyright © 2006–2017 Apache Software Foundation. All rights reserved.