Advertisement
Guest User

Untitled

a guest
Sep 23rd, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. @Primary
  2. @Component
  3. public class CachedOracleDbUnitManagerImpl extends OracleDbUnitManagerImpl {
  4.  
  5. private IDatabaseConnection dbUnitConn;
  6.  
  7. @Autowired
  8. public CachedDbUnitManagerOracleServer(DataSource dataSource) {
  9. super(dataSource);
  10. }
  11.  
  12. @Override
  13. protected IDatabaseConnection getDbUnitConnection()
  14. throws DatabaseUnitException, SQLException {
  15.  
  16. if (dbUnitConn == null)
  17. dbUnitConn = super.getDbUnitConnection();
  18.  
  19. return dbUnitConn;
  20. }
  21.  
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement