@groovy.transform.Trait trait ConnectionFactory extends java.lang.Object implements java.io.Closeable
Type | Name and description |
---|---|
java.lang.ThreadLocal<java.sql.Connection> |
connectionLocal |
javax.sql.DataSource |
dataSource |
Type Params | Return Type | Name and description |
---|---|---|
|
void |
close() Implemented for use in try-with-resources statements. |
|
void |
closeActiveConnection() |
|
java.sql.Connection |
getConnection() |
|
boolean |
hasActiveConnection() |
|
void |
setDataSource(javax.sql.DataSource dataSource) |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Implemented for use in try-with-resources statements. Closes the active connection.