Connection function ( ) { Connection loc0 = threadLocal . get ( ) ; if ( loc0 != null ) return loc0 ; return showSql ? new SqlReporter ( dataSource . getConnection ( ) ) . getConnection ( ) : dataSource . getConnection ( ) ; }
get connection . support transaction if connection in threadlocal concode_field_sep int transactionLevel concode_elem_sep ICache cache concode_elem_sep Dialect dialect concode_elem_sep boolean devMode concode_elem_sep IContainerFactory containerFactory concode_elem_sep String name concode_elem_sep boolean showSql concode_elem_sep ThreadLocal<Connection> threadLocal concode_elem_sep DataSource dataSource concode_field_sep int getTransactionLevel concode_elem_sep Dialect getDialect concode_elem_sep DataSource getDataSource concode_elem_sep String getName concode_elem_sep boolean isShowSql concode_elem_sep void setThreadLocalConnection concode_elem_sep ICache getCache concode_elem_sep boolean isDevMode concode_elem_sep Connection getThreadLocalConnection concode_elem_sep boolean isInTransaction concode_elem_sep IContainerFactory getContainerFactory concode_elem_sep Config createBrokenConfig concode_elem_sep void close concode_elem_sep void close concode_elem_sep void close concode_elem_sep void removeThreadLocalConnection