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

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

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

Table.setSystem介绍

暂无

代码示例

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

  1. private Table createView(String name) {
  2. Table t = addTable(name);
  3. t.setSystem(true);
  4. t.setSupportsUpdate(false);
  5. t.setVirtual(true);
  6. t.setTableType(Type.Table);
  7. return t;
  8. }

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

  1. private MetadataFactory loadSchema(VDBMetaData vdb, Properties p, String name, QueryParser parser) {
  2. ModelMetaData mmd = new ModelMetaData();
  3. mmd.setName(name);
  4. vdb.addModel(mmd);
  5. InputStream is = SystemMetadata.class.getClassLoader().getResourceAsStream("org/teiid/metadata/"+name+".sql"); //$NON-NLS-1$ //$NON-NLS-2$
  6. try {
  7. MetadataFactory factory = new MetadataFactory(vdb.getName(), vdb.getVersion(), name, typeMap, p, null);
  8. parser.parseDDL(factory, new InputStreamReader(is, Charset.forName("UTF-8"))); //$NON-NLS-1$
  9. for (Table t : factory.getSchema().getTables().values()) {
  10. t.setSystem(true);
  11. }
  12. return factory;
  13. } finally {
  14. try {
  15. is.close();
  16. } catch (IOException e) {
  17. throw new TeiidRuntimeException(e);
  18. }
  19. }
  20. }

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

  1. private MetadataFactory loadSchema(VDBMetaData vdb, Properties p, String name, QueryParser parser) {
  2. ModelMetaData mmd = new ModelMetaData();
  3. mmd.setName(name);
  4. vdb.addModel(mmd);
  5. InputStream is = SystemMetadata.class.getClassLoader().getResourceAsStream("org/teiid/metadata/"+name+".sql"); //$NON-NLS-1$ //$NON-NLS-2$
  6. try {
  7. MetadataFactory factory = new MetadataFactory(vdb.getName(), vdb.getVersion(), name, typeMap, p, null);
  8. parser.parseDDL(factory, new InputStreamReader(is, Charset.forName("UTF-8"))); //$NON-NLS-1$
  9. for (Table t : factory.getSchema().getTables().values()) {
  10. t.setSystem(true);
  11. }
  12. return factory;
  13. } finally {
  14. try {
  15. is.close();
  16. } catch (IOException e) {
  17. throw new TeiidRuntimeException(e);
  18. }
  19. }
  20. }

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

  1. private MetadataFactory loadSchema(VDBMetaData vdb, Properties p, String name, QueryParser parser) {
  2. ModelMetaData mmd = new ModelMetaData();
  3. mmd.setName(name);
  4. vdb.addModel(mmd);
  5. InputStream is = SystemMetadata.class.getClassLoader().getResourceAsStream("org/teiid/metadata/"+name+".sql"); //$NON-NLS-1$ //$NON-NLS-2$
  6. try {
  7. MetadataFactory factory = new MetadataFactory(vdb.getName(), vdb.getVersion(), name, typeMap, p, null);
  8. parser.parseDDL(factory, new InputStreamReader(is, Charset.forName("UTF-8"))); //$NON-NLS-1$
  9. for (Table t : factory.getSchema().getTables().values()) {
  10. t.setSystem(true);
  11. }
  12. return factory;
  13. } finally {
  14. try {
  15. is.close();
  16. } catch (IOException e) {
  17. throw new TeiidRuntimeException(e);
  18. }
  19. }
  20. }

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

  1. table.setSystem(getBooleanValue(supportFlags[1]));
  2. table.setSupportsUpdate(getBooleanValue(supportFlags[2]));
  3. if(includeMaterializationFlag(indexVersion)) {

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

  1. table.setSystem(getBooleanValue(supportFlags[1]));
  2. table.setSupportsUpdate(getBooleanValue(supportFlags[2]));
  3. if(includeMaterializationFlag(indexVersion)) {

相关文章