Package org.beangle.db.meta

Examples of org.beangle.db.meta.TableMetadata


  public boolean addTable(String table) {
    String newTable = table.toUpperCase();
    if (!StringUtils.contains(table, '.') && null != source.getSchema()) {
      newTable = source.getSchema() + "." + newTable;
    }
    TableMetadata tm = source.getMetadata().getTableMetadata(newTable);
    if (null == tm) {
      logger.error("cannot find metadata for {}", newTable);
    } else {
      tables.add(tm);
    }
View Full Code Here


    super();
    this.schema = schema;
  }

  public List<Object> getData(String tableName) {
    TableMetadata tableMeta = meta.getTables().get(tableName);
    if (null == tableMeta) {
      return Collections.emptyList();
    } else {
      return getData(tableMeta);
    }
View Full Code Here

  public void testlistMetadata() {
    listMetadata();
    Map<String, TableMetadata> tables = meta.getTables();
    for (Map.Entry<String, TableMetadata> entry : tables.entrySet()) {
      TableMetadata m = entry.getValue();
      log.info(m.sqlCreateString(meta.getDialect()));
    }
  }
View Full Code Here

TOP

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

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.