org.apache.metamodel.schema.Table.getQualifiedLabel()方法的使用及代码示例

x33g5p2x  于2022-01-30 转载在 其他  
字(7.1k)|赞(0)|评价(0)|浏览(260)

本文整理了Java中org.apache.metamodel.schema.Table.getQualifiedLabel()方法的一些代码示例,展示了Table.getQualifiedLabel()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Table.getQualifiedLabel()方法的具体详情如下:
包路径:org.apache.metamodel.schema.Table
类名称:Table
方法名:getQualifiedLabel

Table.getQualifiedLabel介绍

暂无

代码示例

代码示例来源:origin: org.apache.metamodel/MetaModel-core

  1. @Override
  2. public String toSql() {
  3. return "DROP TABLE " + _table.getQualifiedLabel();
  4. }
  5. }

代码示例来源:origin: apache/metamodel

  1. @Override
  2. public String toSql() {
  3. return "DROP TABLE " + _table.getQualifiedLabel();
  4. }
  5. }

代码示例来源:origin: org.eobjects.analyzerbeans/AnalyzerBeans-core

  1. @Override
  2. public String toString() {
  3. return "RowProcessingPublisher[table=" + _table.getQualifiedLabel() + ", consumers=" + _consumers.size() + "]";
  4. }

代码示例来源:origin: org.apache.metamodel/MetaModel-core

  1. @Override
  2. public final String getQualifiedLabel() {
  3. StringBuilder sb = new StringBuilder();
  4. Table table = getTable();
  5. if (table != null) {
  6. sb.append(table.getQualifiedLabel());
  7. sb.append('.');
  8. }
  9. sb.append(getName());
  10. return sb.toString();
  11. }

代码示例来源:origin: apache/metamodel

  1. @Override
  2. public final String getQualifiedLabel() {
  3. StringBuilder sb = new StringBuilder();
  4. Table table = getTable();
  5. if (table != null) {
  6. sb.append(table.getQualifiedLabel());
  7. sb.append('.');
  8. }
  9. sb.append(getName());
  10. return sb.toString();
  11. }

代码示例来源:origin: apache/metamodel

  1. @Override
  2. public final int compareTo(Table that) {
  3. int diff = getQualifiedLabel().compareTo(that.getQualifiedLabel());
  4. if (diff == 0) {
  5. diff = toString().compareTo(that.toString());
  6. }
  7. return diff;
  8. }
  9. }

代码示例来源:origin: org.apache.metamodel/MetaModel-core

  1. @Override
  2. public final int compareTo(Table that) {
  3. int diff = getQualifiedLabel().compareTo(that.getQualifiedLabel());
  4. if (diff == 0) {
  5. diff = toString().compareTo(that.toString());
  6. }
  7. return diff;
  8. }
  9. }

代码示例来源:origin: org.apache.metamodel/MetaModel-core

  1. @Override
  2. public String toSql() {
  3. return "DELETE FROM " + _table.getQualifiedLabel() + new FilterClause(null, " WHERE ").addItems(_whereItems);
  4. }
  5. }

代码示例来源:origin: apache/metamodel

  1. @Override
  2. public String toSql() {
  3. return "DELETE FROM " + _table.getQualifiedLabel() + new FilterClause(null, " WHERE ").addItems(_whereItems);
  4. }
  5. }

代码示例来源:origin: apache/metamodel

  1. StringBuilder sb = new StringBuilder();
  2. sb.append("INSERT INTO ");
  3. sb.append(_table.getQualifiedLabel());
  4. sb.append("(");
  5. Column[] columns = getColumns();

代码示例来源:origin: org.apache.metamodel/MetaModel-core

  1. StringBuilder sb = new StringBuilder();
  2. sb.append("INSERT INTO ");
  3. sb.append(_table.getQualifiedLabel());
  4. sb.append("(");
  5. Column[] columns = getColumns();

代码示例来源:origin: datacleaner/DataCleaner

  1. @Override
  2. public void actionPerformed(final ActionEvent e) {
  3. final Datastore datastore = _analysisJobBuilder.getDatastore();
  4. final StringBuilder initialQuery = new StringBuilder("SELECT ");
  5. if (_columns == null || _columns.isEmpty()) {
  6. initialQuery.append("*");
  7. } else {
  8. boolean first = true;
  9. for (final HasName column : _columns) {
  10. if (!first) {
  11. initialQuery.append(", ");
  12. }
  13. initialQuery.append("a.");
  14. initialQuery.append(column.getName());
  15. first = false;
  16. }
  17. }
  18. String fromClause = _table.getQualifiedLabel();
  19. if (fromClause.contains(" ")) {
  20. fromClause = _table.getName();
  21. }
  22. initialQuery.append("\nFROM " + fromClause + " a");
  23. final QueryWindow window = new QueryWindow(_windowContext, datastore, initialQuery.toString());
  24. window.open();
  25. }

代码示例来源:origin: org.apache.metamodel/MetaModel-core

  1. @Override
  2. public String toSql() {
  3. StringBuilder sb = new StringBuilder();
  4. sb.append("UPDATE ");
  5. sb.append(_table.getQualifiedLabel());
  6. sb.append(" SET ");
  7. Column[] columns = getColumns();
  8. Object[] values = getValues();
  9. for (int i = 0; i < columns.length; i++) {
  10. if (i != 0) {
  11. sb.append(',');
  12. }
  13. sb.append(columns[i].getName());
  14. sb.append('=');
  15. sb.append(values[i] == null ? "NULL" : values[i].toString());
  16. }
  17. List<FilterItem> whereItems = getWhereItems();
  18. String whereClause = new FilterClause(null, " WHERE ").addItems(whereItems).toSql();
  19. sb.append(whereClause);
  20. return sb.toString();
  21. }

代码示例来源:origin: apache/metamodel

  1. @Override
  2. public String toSql() {
  3. StringBuilder sb = new StringBuilder();
  4. sb.append("UPDATE ");
  5. sb.append(_table.getQualifiedLabel());
  6. sb.append(" SET ");
  7. Column[] columns = getColumns();
  8. Object[] values = getValues();
  9. for (int i = 0; i < columns.length; i++) {
  10. if (i != 0) {
  11. sb.append(',');
  12. }
  13. sb.append(columns[i].getName());
  14. sb.append('=');
  15. sb.append(values[i] == null ? "NULL" : values[i].toString());
  16. }
  17. List<FilterItem> whereItems = getWhereItems();
  18. String whereClause = new FilterClause(null, " WHERE ").addItems(whereItems).toSql();
  19. sb.append(whereClause);
  20. return sb.toString();
  21. }

代码示例来源:origin: datacleaner/DataCleaner

  1. @Override
  2. public String toString(final Object o) {
  3. final String result;
  4. if (o instanceof Schema) {
  5. result = ((Schema) o).getName();
  6. } else if (o instanceof Table) {
  7. result = ((Table) o).getQualifiedLabel();
  8. } else if (o instanceof Column) {
  9. result = ((Column) o).getQualifiedLabel();
  10. } else if (o instanceof Dictionary) {
  11. result = ((Dictionary) o).getName();
  12. } else if (o instanceof SynonymCatalog) {
  13. result = ((SynonymCatalog) o).getName();
  14. } else if (o instanceof StringPattern) {
  15. result = ((StringPattern) o).getName();
  16. } else if (o instanceof Datastore) {
  17. result = ((Datastore) o).getName();
  18. } else {
  19. logger.warn("Could not convert type: {}", o.getClass().getName());
  20. result = o.toString();
  21. }
  22. return result;
  23. }

代码示例来源:origin: datacleaner/DataCleaner

  1. private JButton createQueryButton(final Datastore datastore) {
  2. final JButton queryButton = WidgetFactory.createDefaultButton("Query", IconUtils.MODEL_QUERY);
  3. queryButton.setToolTipText("Query datastore");
  4. queryButton.addActionListener(e -> {
  5. final String queryString;
  6. try (DatastoreConnection connection = datastore.openConnection()) {
  7. final List<Table> tables = connection.getSchemaNavigator().getDefaultSchema().getTables();
  8. if (tables.size() > 0) {
  9. queryString = "SELECT *\nFROM " + tables.get(0).getQualifiedLabel();
  10. } else {
  11. queryString = "SELECT *\nFROM ?";
  12. }
  13. }
  14. final QueryWindow queryWindow = new QueryWindow(_windowContext, datastore, queryString);
  15. queryWindow.open();
  16. });
  17. return queryButton;
  18. }

代码示例来源:origin: org.eobjects.analyzerbeans/AnalyzerBeans-core

  1. @Override
  2. public String toString(Object o) {
  3. final String result;
  4. if (o instanceof Schema) {
  5. result = ((Schema) o).getName();
  6. } else if (o instanceof Table) {
  7. result = ((Table) o).getQualifiedLabel();
  8. } else if (o instanceof Column) {
  9. result = ((Column) o).getQualifiedLabel();
  10. } else if (o instanceof Dictionary) {
  11. result = ((Dictionary) o).getName();
  12. } else if (o instanceof SynonymCatalog) {
  13. result = ((SynonymCatalog) o).getName();
  14. } else if (o instanceof StringPattern) {
  15. result = ((StringPattern) o).getName();
  16. } else if (o instanceof Datastore) {
  17. result = ((Datastore) o).getName();
  18. } else {
  19. logger.warn("Could not convert type: {}", o.getClass().getName());
  20. result = o.toString();
  21. }
  22. return result;
  23. }

代码示例来源:origin: org.apache.metamodel/MetaModel-core

  1. if (!getQualifiedLabel().equals(other.getQualifiedLabel())) {
  2. return false;

代码示例来源:origin: apache/metamodel

  1. if (!getQualifiedLabel().equals(other.getQualifiedLabel())) {
  2. return false;

代码示例来源:origin: datacleaner/DataCleaner

  1. final DCPanel headerPanel = new DCPanel();
  2. headerPanel.setLayout(new FlowLayout(FlowLayout.LEFT, 0, 0));
  3. final JLabel tableNameLabel = new JLabel(table.getQualifiedLabel(),
  4. imageManager.getImageIcon(IconUtils.MODEL_COLUMN, IconUtils.ICON_SIZE_SMALL), JLabel.LEFT);
  5. tableNameLabel.setOpaque(false);

相关文章