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

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

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

Table.getUUID介绍

暂无

代码示例

代码示例来源: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.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.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-runtime

  1. public static Integer regClass(org.teiid.CommandContext cc, String name) throws TeiidComponentException, QueryResolverException, org.teiid.query.parser.ParseException {
  2. VDBMetaData metadata = (VDBMetaData) cc.getVdb();
  3. TransformationMetadata tm = metadata.getAttachment(TransformationMetadata.class);
  4. GroupSymbol symbol = new GroupSymbol(SQLParserUtil.normalizeId(name));
  5. ResolverUtil.resolveGroup(symbol, tm);
  6. return tm.getMetadataStore().getOid(((Table)symbol.getMetadataID()).getUUID());
  7. }

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

  1. List<Column> columns = new ArrayList<Column>(getByParent(tableRecord.getUUID(), MetadataConstants.RECORD_TYPE.COLUMN, Column.class, false));
  2. for (Column columnRecordImpl : columns) {
  3. setDataType(columnRecordImpl);
  4. tableRecord.setAccessPatterns(getByParent(tableRecord.getUUID(), MetadataConstants.RECORD_TYPE.ACCESS_PATTERN, KeyRecord.class, false));
  5. Map<String, Column> uuidColumnMap = new HashMap<String, Column>();
  6. for (Column columnRecordImpl : columns) {
  7. columnSetRecordImpl.setParent(tableRecord);
  8. tableRecord.setForeignKeys(getByParent(tableRecord.getUUID(), MetadataConstants.RECORD_TYPE.FOREIGN_KEY, ForeignKey.class, false));
  9. for (ForeignKey foreignKeyRecord : tableRecord.getForeignKeys()) {
  10. KeyRecord pk = (KeyRecord) getRecordByType(foreignKeyRecord.getUniqueKeyID(), MetadataConstants.RECORD_TYPE.PRIMARY_KEY, false);
  11. foreignKeyRecord.setParent(tableRecord);
  12. tableRecord.setUniqueKeys(getByParent(tableRecord.getUUID(), MetadataConstants.RECORD_TYPE.UNIQUE_KEY, KeyRecord.class, false));
  13. for (KeyRecord columnSetRecordImpl : tableRecord.getUniqueKeys()) {
  14. loadColumnSetRecords(columnSetRecordImpl, uuidColumnMap);
  15. tableRecord.setPrimaryKey(primaryKey);
  16. String groupUUID = tableRecord.getUUID();
  17. if (tableRecord.isVirtual()) {
  18. TransformationRecordImpl update = (TransformationRecordImpl)getRecordByType(groupUUID, MetadataConstants.RECORD_TYPE.UPDATE_TRANSFORM,false);
  19. tableRecord.setMaterializedStageTable((Table)getByType(MetadataConstants.RECORD_TYPE.TABLE).get(tableRecord.getMaterializedStageTable().getUUID()));
  20. tableRecord.setMaterializedTable((Table)getByType(MetadataConstants.RECORD_TYPE.TABLE).get(tableRecord.getMaterializedTable().getUUID()));

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

  1. List<Column> columns = new ArrayList<Column>(getByParent(tableRecord.getUUID(), MetadataConstants.RECORD_TYPE.COLUMN, Column.class, false));
  2. for (Column columnRecordImpl : columns) {
  3. setDataType(columnRecordImpl);
  4. tableRecord.setAccessPatterns(getByParent(tableRecord.getUUID(), MetadataConstants.RECORD_TYPE.ACCESS_PATTERN, KeyRecord.class, false));
  5. Map<String, Column> uuidColumnMap = new HashMap<String, Column>();
  6. for (Column columnRecordImpl : columns) {
  7. columnSetRecordImpl.setParent(tableRecord);
  8. tableRecord.setForeignKeys(getByParent(tableRecord.getUUID(), MetadataConstants.RECORD_TYPE.FOREIGN_KEY, ForeignKey.class, false));
  9. for (ForeignKey foreignKeyRecord : tableRecord.getForeignKeys()) {
  10. KeyRecord pk = (KeyRecord) getRecordByType(foreignKeyRecord.getUniqueKeyID(), MetadataConstants.RECORD_TYPE.PRIMARY_KEY, false);
  11. foreignKeyRecord.setParent(tableRecord);
  12. tableRecord.setUniqueKeys(getByParent(tableRecord.getUUID(), MetadataConstants.RECORD_TYPE.UNIQUE_KEY, KeyRecord.class, false));
  13. for (KeyRecord columnSetRecordImpl : tableRecord.getUniqueKeys()) {
  14. loadColumnSetRecords(columnSetRecordImpl, uuidColumnMap);
  15. tableRecord.setPrimaryKey(primaryKey);
  16. String groupUUID = tableRecord.getUUID();
  17. if (tableRecord.isVirtual()) {
  18. TransformationRecordImpl update = (TransformationRecordImpl)getRecordByType(groupUUID, MetadataConstants.RECORD_TYPE.UPDATE_TRANSFORM,false);
  19. tableRecord.setMaterializedStageTable((Table)getByType(MetadataConstants.RECORD_TYPE.TABLE).get(tableRecord.getMaterializedStageTable().getUUID()));
  20. tableRecord.setMaterializedTable((Table)getByType(MetadataConstants.RECORD_TYPE.TABLE).get(tableRecord.getMaterializedTable().getUUID()));

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

  1. assertFalse(table.isMaterialized());
  2. assertFalse(table.isDeletePlanEnabled());
  3. assertEquals("uuid2", table.getUUID());
  4. assertEquals(12, table.getCardinality());
  5. assertTrue(table.supportsUpdate());

相关文章