Package org.projectforge.jdbc

Examples of org.projectforge.jdbc.PropertyDataSource


      try {
        // Build spring context
        ctx = new ClassPathXmlApplicationContext(contextFiles);
        ctx.getBeanFactory().autowireBeanProperties(this, AutowireCapableBeanFactory.AUTOWIRE_BY_NAME, false);

        final PropertyDataSource ds = ctx.getBean("dataSource", PropertyDataSource.class);
        this.databaseUrl = ds.getUrl();
        final JdbcTemplate jdbc = new JdbcTemplate(ds);
        try {
          jdbc.execute("CHECKPOINT DEFRAG");
        } catch (final org.springframework.jdbc.BadSqlGrammarException ex) {
          // ignore
View Full Code Here

TOP

Related Classes of org.projectforge.jdbc.PropertyDataSource

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.