Package org.beangle.db.meta

Examples of org.beangle.db.meta.DatabaseMetadata


   * @param dialect
   */
  public void connect(DataSource dataSource, Dialect dialect) {
    try {
      setDataSource(dataSource);
      meta = new DatabaseMetadata(dataSource.getConnection(), dialect);
      meta.loadAllMetadata(getSchema(), null, false);
    } catch (SQLException e) {
      logger.error("cannot build connection using:{} under dialect {}", dataSource, dialect);
      throw new RuntimeException(e);
    }
View Full Code Here


  public void setUp() throws Exception {
    // meta = new
    // DatabaseMetadata(DataSourceUtil.getDataSource("oracle").getConnection(),
    // new OracleDialect());
    // meta.loadAllMetadata("EAMS_NEW",null,false);
    meta = new DatabaseMetadata(DataSourceUtil.getDataSource("hsqldb").getConnection(),
        new HSQLDialect());
    meta.loadAllMetadata(null, null, false);
  }
View Full Code Here

TOP

Related Classes of org.beangle.db.meta.DatabaseMetadata

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.