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

x33g5p2x  于2022-01-26 转载在 其他  
字(6.9k)|赞(0)|评价(0)|浏览(114)

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

Procedure.getParent介绍

暂无

代码示例

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

@Override
  public void fillRow(List<Object> row, Procedure proc,
      VDBMetaData v, TransformationMetadata metadata,
      CommandContext cc, SimpleIterator<Procedure> iter) {
    row.add(v.getName());
    row.add(proc.getParent().getName());
    row.add(proc.getName());
    row.add(proc.getNameInSource());
    row.add(proc.getResultSet() != null);
    row.add(proc.getUUID());
    row.add(proc.getAnnotation());
    row.add(proc.getParent().getUUID());
  }
});

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

@Override
  public void fillRow(List<Object> row, Procedure proc,
      VDBMetaData v, TransformationMetadata metadata,
      CommandContext cc, SimpleIterator<Procedure> iter) {
    row.add(v.getName());
    row.add(proc.getParent().getName());
    row.add(proc.getName());
    row.add(proc.getNameInSource());
    row.add(proc.getResultSet() != null);
    row.add(proc.getUUID());
    row.add(proc.getAnnotation());
    row.add(proc.getParent().getUUID());
  }
});

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

@Override
  public void fillRow(List<Object> row, Procedure proc,
      VDBMetaData v, TransformationMetadata metadata,
      CommandContext cc, SimpleIterator<Procedure> iter) {
    row.add(v.getName());
    row.add(proc.getParent().getName());
    row.add(proc.getName());
    row.add(proc.getNameInSource());
    row.add(proc.getResultSet() != null);
    row.add(proc.getUUID());
    row.add(proc.getAnnotation());
    row.add(proc.getParent().getUUID());
  }
});

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

parentName = ((Table)abstractMetadataRecord).getParent().getName();
} else if (record[0] == MetadataConstants.RECORD_TYPE.CALLABLE) {
  parentName = ((Procedure)abstractMetadataRecord).getParent().getName();

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

parentName = ((Table)abstractMetadataRecord).getParent().getName();
} else if (record[0] == MetadataConstants.RECORD_TYPE.CALLABLE) {
  parentName = ((Procedure)abstractMetadataRecord).getParent().getName();

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

@Override
public void visit(AlterProcedure obj) {
  Procedure p = (Procedure)obj.getTarget().getMetadataID();
  String sql = obj.getDefinition().toString();
  if (getMetadataRepository(vdb, p.getParent().getName()) != null) {
    getMetadataRepository(vdb, p.getParent().getName()).setProcedureDefinition(workContext.getVdbName(), workContext.getVdbVersion(), p, sql);
  }
  alterProcedureDefinition(vdb, p, sql, false);
  if (pdm.getEventDistributor() != null) {
    pdm.getEventDistributor().setProcedureDefinition(workContext.getVdbName(), workContext.getVdbVersion(), p.getParent().getName(), p.getName(), sql);
  }
}

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

@Override
public void visit(AlterProcedure obj) {
  Procedure p = (Procedure)obj.getTarget().getMetadataID();
  String sql = obj.getDefinition().toString();
  if (getMetadataRepository(vdb, p.getParent().getName()) != null) {
    getMetadataRepository(vdb, p.getParent().getName()).setProcedureDefinition(workContext.getVdbName(), workContext.getVdbVersion(), p, sql);
  }
  alterProcedureDefinition(vdb, p, sql, false);
  if (pdm.getEventDistributor() != null) {
    pdm.getEventDistributor().setProcedureDefinition(workContext.getVdbName(), workContext.getVdbVersion(), p.getParent().getName(), p.getName(), sql);
  }
}

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

@Override
public void visit(AlterProcedure obj) {
  Procedure p = (Procedure)obj.getTarget().getMetadataID();
  String sql = obj.getDefinition().toString();
  if (getMetadataRepository(vdb, p.getParent().getName()) != null) {
    getMetadataRepository(vdb, p.getParent().getName()).setProcedureDefinition(workContext.getVdbName(), workContext.getVdbVersion(), p, sql);
  }
  alterProcedureDefinition(vdb, p, sql, false);
  if (pdm.getEventDistributor() != null) {
    pdm.getEventDistributor().setProcedureDefinition(workContext.getVdbName(), workContext.getVdbVersion(), p.getParent().getName(), p.getName(), sql);
  }
}

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

this.returnsTable = true;
this.returnEntityTypeName = proc.getProperty(ODataMetadataProcessor.ENTITY_TYPE, false);
this.entity = getTableWithEntityType(proc.getParent(), returnEntityTypeName);
  this.isComplexReturnType = ( this.entity == null);
  this.returnColumns = proc.getResultSet().getColumns();

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

public void procedureDropped(String procedureName, Boolean virtual) {
  if (!assertInEditMode(Mode.SCHEMA)) {
    return;
  }
  Procedure procedure = (Procedure)getSchemaRecord(procedureName, ResourceType.PROCEDURE);
  
  if (virtual != null && virtual^procedure.isVirtual()) {
    throw new org.teiid.metadata.MetadataException(QueryPlugin.Event.TEIID31273,
        QueryPlugin.Util.gs(QueryPlugin.Event.TEIID31273, procedure.getFullName()));
  }
  
  assertGrant(Grant.Permission.Privilege.DROP, Database.ResourceType.PROCEDURE,
      procedure);
  Schema s = procedure.getParent();
  s.removeProcedure(procedureName);
}

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

public void procedureDropped(String procedureName, Boolean virtual) {
  if (!assertInEditMode(Mode.SCHEMA)) {
    return;
  }
  Procedure procedure = (Procedure)getSchemaRecord(procedureName, ResourceType.PROCEDURE);
  
  if (virtual != null && virtual^procedure.isVirtual()) {
    throw new org.teiid.metadata.MetadataException(QueryPlugin.Event.TEIID31273,
        QueryPlugin.Util.gs(QueryPlugin.Event.TEIID31273, procedure.getFullName()));
  }
  
  assertGrant(Grant.Permission.Privilege.DROP, Database.ResourceType.PROCEDURE,
      procedure);
  Schema s = procedure.getParent();
  s.removeProcedure(procedureName);
}

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

Datatype dt = column.getDatatype();
row.add(vdb.getName());
row.add(column.getParent().getParent().getName());
row.add(column.getParent().getName());
row.add(column.getName());
row.add(column.getPosition());
row.add(column.getUUID());
row.add(column.getAnnotation());
row.add(column.getParent().getUUID());
addTypeInfo(row, column, dt);

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

Datatype dt = column.getDatatype();
row.add(vdb.getName());
row.add(column.getParent().getParent().getName());
row.add(column.getParent().getName());
row.add(column.getName());
row.add(column.getPosition());
row.add(column.getUUID());
row.add(column.getAnnotation());
row.add(column.getParent().getUUID());
addTypeInfo(row, column, dt);

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

Datatype dt = column.getDatatype();
row.add(vdb.getName());
row.add(column.getParent().getParent().getName());
row.add(column.getParent().getName());
row.add(column.getName());
row.add(column.getPosition());
row.add(column.getUUID());
row.add(column.getAnnotation());
row.add(column.getParent().getUUID());
addTypeInfo(row, column, dt);

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

procInfo.setModelID(procRecord.getParent());

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

procInfo.setModelID(procRecord.getParent());

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

procInfo.setModelID(procRecord.getParent());

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

@Override
public void execute() throws TranslatorException {
  String URI = this.visitor.buildURL();
  Schema schema = visitor.getProcedure().getParent();
  EdmDataServices edm = new TeiidEdmMetadata(schema.getName(), ODataEntitySchemaBuilder.buildMetadata(schema));
  if (this.visitor.hasCollectionReturn()) {

相关文章