org.teiid.metadata.Table.supportsUpdate()方法的使用及代码示例

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

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

Table.supportsUpdate介绍

暂无

代码示例

代码示例来源:origin: org.jboss.teiid/teiid-engine

  1. public boolean groupSupports(final Object groupID, final int groupConstant)
  2. throws TeiidComponentException, QueryMetadataException {
  3. Table tableRecord = (Table) groupID;
  4. switch(groupConstant) {
  5. case SupportConstants.Group.UPDATE:
  6. return tableRecord.supportsUpdate();
  7. default:
  8. throw new UnsupportedOperationException(QueryPlugin.Util.getString("TransformationMetadata.Unknown_support_constant___12") + groupConstant); //$NON-NLS-1$
  9. }
  10. }

代码示例来源:origin: org.teiid/teiid-engine

  1. public boolean groupSupports(final Object groupID, final int groupConstant)
  2. throws TeiidComponentException, QueryMetadataException {
  3. Table tableRecord = (Table) groupID;
  4. switch(groupConstant) {
  5. case SupportConstants.Group.UPDATE:
  6. return tableRecord.supportsUpdate();
  7. default:
  8. throw new UnsupportedOperationException(QueryPlugin.Util.getString("TransformationMetadata.Unknown_support_constant___12") + groupConstant); //$NON-NLS-1$
  9. }
  10. }

代码示例来源:origin: teiid/teiid

  1. public boolean groupSupports(final Object groupID, final int groupConstant)
  2. throws TeiidComponentException, QueryMetadataException {
  3. Table tableRecord = (Table) groupID;
  4. switch(groupConstant) {
  5. case SupportConstants.Group.UPDATE:
  6. return tableRecord.supportsUpdate();
  7. default:
  8. throw new UnsupportedOperationException(QueryPlugin.Util.getString("TransformationMetadata.Unknown_support_constant___12") + groupConstant); //$NON-NLS-1$
  9. }
  10. }

代码示例来源:origin: org.jboss.teiid/teiid-engine

  1. @Override
  2. public void fillRow(List<Object> row, Table table,
  3. VDBMetaData v, TransformationMetadata metadata,
  4. CommandContext cc, SimpleIterator<Table> iter) {
  5. row.add(v.getName());
  6. row.add(table.getParent().getName());
  7. row.add(table.getName());
  8. row.add(table.getTableType().toString());
  9. row.add(table.getNameInSource());
  10. row.add(table.isPhysical());
  11. row.add(table.supportsUpdate());
  12. row.add(table.getUUID());
  13. row.add(table.getCardinality());
  14. row.add(table.getAnnotation());
  15. row.add(table.isSystem());
  16. row.add(table.isMaterialized());
  17. row.add(table.getParent().getUUID());
  18. }
  19. });

代码示例来源:origin: org.teiid/teiid-engine

  1. @Override
  2. public void fillRow(List<Object> row, Table table,
  3. VDBMetaData v, TransformationMetadata metadata,
  4. CommandContext cc, SimpleIterator<Table> iter) {
  5. row.add(v.getName());
  6. row.add(table.getParent().getName());
  7. row.add(table.getName());
  8. row.add(table.getTableType().toString());
  9. row.add(table.getNameInSource());
  10. row.add(table.isPhysical());
  11. row.add(table.supportsUpdate());
  12. row.add(table.getUUID());
  13. row.add(table.getCardinality());
  14. row.add(table.getAnnotation());
  15. row.add(table.isSystem());
  16. row.add(table.isMaterialized());
  17. row.add(table.getParent().getUUID());
  18. }
  19. });

代码示例来源:origin: teiid/teiid

  1. @Override
  2. public void fillRow(List<Object> row, Table table,
  3. VDBMetaData v, TransformationMetadata metadata,
  4. CommandContext cc, SimpleIterator<Table> iter) {
  5. row.add(v.getName());
  6. row.add(table.getParent().getName());
  7. row.add(table.getName());
  8. row.add(table.getTableType().toString());
  9. row.add(table.getNameInSource());
  10. row.add(table.isPhysical());
  11. row.add(table.supportsUpdate());
  12. row.add(table.getUUID());
  13. row.add(table.getCardinality());
  14. row.add(table.getAnnotation());
  15. row.add(table.isSystem());
  16. row.add(table.isMaterialized());
  17. row.add(table.getParent().getUUID());
  18. }
  19. });

代码示例来源:origin: org.jboss.teiid/teiid-engine

  1. private Column addColumn(String name, Class<?> type, Table table, MetadataFactory mf) throws TranslatorException {
  2. if (type == null) {
  3. throw new TranslatorException(QueryPlugin.Util.gs(QueryPlugin.Event.TEIID31086, name, table.getFullName()));
  4. }
  5. Column column = mf.addColumn(name, DataTypeManager.getDataTypeName(type), table);
  6. column.setUpdatable(table.supportsUpdate());
  7. return column;
  8. }

代码示例来源:origin: teiid/teiid

  1. private String buildTableOptions(Table table) {
  2. StringBuilder options = new StringBuilder();
  3. addCommonOptions(options, table);
  4. if (table.isMaterialized()) {
  5. addOption(options, MATERIALIZED, table.isMaterialized());
  6. if (table.getMaterializedTable() != null) {
  7. addOption(options, MATERIALIZED_TABLE, table.getMaterializedTable().getName());
  8. }
  9. }
  10. if (table.supportsUpdate()) {
  11. addOption(options, UPDATABLE, table.supportsUpdate());
  12. }
  13. if (table.getCardinality() != -1) {
  14. if (table.getCardinality() != table.getCardinalityAsFloat()) {
  15. addOption(options, CARDINALITY, (long)table.getCardinalityAsFloat());
  16. } else {
  17. addOption(options, CARDINALITY, table.getCardinality());
  18. }
  19. }
  20. if (!table.getProperties().isEmpty()) {
  21. for (String key:table.getProperties().keySet()) {
  22. addOption(options, key, table.getProperty(key, false));
  23. }
  24. }
  25. return options.toString();
  26. }

代码示例来源:origin: org.teiid/teiid-engine

  1. private String buildTableOptions(Table table) {
  2. StringBuilder options = new StringBuilder();
  3. addCommonOptions(options, table);
  4. if (table.isMaterialized()) {
  5. addOption(options, MATERIALIZED, table.isMaterialized());
  6. if (table.getMaterializedTable() != null) {
  7. addOption(options, MATERIALIZED_TABLE, table.getMaterializedTable().getName());
  8. }
  9. }
  10. if (table.supportsUpdate()) {
  11. addOption(options, UPDATABLE, table.supportsUpdate());
  12. }
  13. if (table.getCardinality() != -1) {
  14. if (table.getCardinality() != table.getCardinalityAsFloat()) {
  15. addOption(options, CARDINALITY, (long)table.getCardinalityAsFloat());
  16. } else {
  17. addOption(options, CARDINALITY, table.getCardinality());
  18. }
  19. }
  20. if (!table.getProperties().isEmpty()) {
  21. for (String key:table.getProperties().keySet()) {
  22. addOption(options, key, table.getProperty(key, false));
  23. }
  24. }
  25. return options.toString();
  26. }

代码示例来源:origin: org.jboss.teiid/teiid-engine

  1. private String buildTableOptions(Table table) {
  2. StringBuilder options = new StringBuilder();
  3. addCommonOptions(options, table);
  4. if (table.isMaterialized()) {
  5. addOption(options, MATERIALIZED, table.isMaterialized());
  6. if (table.getMaterializedTable() != null) {
  7. addOption(options, MATERIALIZED_TABLE, table.getMaterializedTable().getName());
  8. }
  9. }
  10. if (table.supportsUpdate()) {
  11. addOption(options, UPDATABLE, table.supportsUpdate());
  12. }
  13. if (table.getCardinality() != -1) {
  14. if (table.getCardinality() != table.getCardinalityAsFloat()) {
  15. addOption(options, CARDINALITY, (long)table.getCardinalityAsFloat());
  16. } else {
  17. addOption(options, CARDINALITY, table.getCardinality());
  18. }
  19. }
  20. if (!table.getProperties().isEmpty()) {
  21. for (String key:table.getProperties().keySet()) {
  22. addOption(options, key, table.getProperty(key, false));
  23. }
  24. }
  25. return options.toString();
  26. }

代码示例来源:origin: teiid/teiid

  1. private Column addColumn(Expression toCopy, Table table, MetadataFactory mf, QueryMetadataInterface metadata) throws TranslatorException, QueryMetadataException, TeiidComponentException {
  2. String name = Symbol.getShortName(toCopy);
  3. Class<?> type = toCopy.getType();
  4. if (type == null) {
  5. throw new TranslatorException(QueryPlugin.Util.gs(QueryPlugin.Event.TEIID31086, name, table.getFullName()));
  6. }
  7. Column column = mf.addColumn(name, DataTypeManager.getDataTypeName(type), table);
  8. column.setUpdatable(table.supportsUpdate());
  9. copyExpressionMetadata(toCopy, metadata, column);
  10. return column;
  11. }

代码示例来源:origin: org.teiid/teiid-engine

  1. private Column addColumn(Expression toCopy, Table table, MetadataFactory mf, QueryMetadataInterface metadata) throws TranslatorException, QueryMetadataException, TeiidComponentException {
  2. String name = Symbol.getShortName(toCopy);
  3. Class<?> type = toCopy.getType();
  4. if (type == null) {
  5. throw new TranslatorException(QueryPlugin.Util.gs(QueryPlugin.Event.TEIID31086, name, table.getFullName()));
  6. }
  7. Column column = mf.addColumn(name, DataTypeManager.getDataTypeName(type), table);
  8. column.setUpdatable(table.supportsUpdate());
  9. copyExpressionMetadata(toCopy, metadata, column);
  10. return column;
  11. }

代码示例来源:origin: org.teiid/teiid-olingo

  1. if (table.supportsUpdate()) {
  2. addBooleanAnnotation(entityType, "teiid.UPDATABLE", table.supportsUpdate());

代码示例来源:origin: teiid/teiid

  1. t.setSelectTransformation(def);
  2. if (t.supportsUpdate()) {
  3. def = this.getInsteadOfTriggerDefinition(vdbName, vdbVersion, t, Table.TriggerEvent.INSERT);
  4. if (def != null) {

代码示例来源:origin: org.teiid.connectors/translator-google

  1. if (table.supportsUpdate()) {
  2. c.setUpdatable(updatable || allTypesUpdatable);

代码示例来源:origin: teiid/teiid

  1. assertFalse(table.isMaterialized());
  2. assertFalse(table.isDeletePlanEnabled());
  3. assertFalse(table.supportsUpdate());

代码示例来源:origin: teiid/teiid

  1. assertFalse(table.isMaterialized());
  2. assertFalse(table.isDeletePlanEnabled());
  3. assertFalse(table.supportsUpdate());

代码示例来源:origin: org.teiid/teiid-engine

  1. if (!column.isUpdatable() && column.getParent() instanceof Table && ((Table)column.getParent()).supportsUpdate()) {
  2. addOption(options, UPDATABLE, column.isUpdatable());

代码示例来源:origin: org.jboss.teiid/teiid-engine

  1. if (!column.isUpdatable() && column.getParent() instanceof Table && ((Table)column.getParent()).supportsUpdate()) {
  2. addOption(options, UPDATABLE, column.isUpdatable());

代码示例来源:origin: teiid/teiid

  1. if (!column.isUpdatable() && column.getParent() instanceof Table && ((Table)column.getParent()).supportsUpdate()) {
  2. addOption(options, UPDATABLE, column.isUpdatable());

相关文章