org.teiid.translator.ExecutionContext.getConnectionId()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(2.0k)|赞(0)|评价(0)|浏览(78)

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

ExecutionContext.getConnectionId介绍

[英]Get the identifier for the connection through which the command is being executed. This represents the original user connection to the Teiid system shortcut for #getCommandContext().getConnectionId()
[中]获取用于执行命令的连接的标识符。这表示与#getCommandContext()的TEID系统快捷方式的原始用户连接。getConnectionId()

代码示例

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

public QueryExecutionImpl(QueryExpression command, SalesforceConnection connection, RuntimeMetadata metadata, ExecutionContext context, SalesForceExecutionFactory salesForceExecutionFactory) {
  this.connection = connection;
  this.metadata = metadata;
  this.context = context;
  this.query = command;
  this.executionFactory = salesForceExecutionFactory;
  connectionIdentifier = context.getConnectionId();
  connectorIdentifier = context.getConnectorIdentifier();
  requestIdentifier = context.getRequestId();
  partIdentifier = context.getPartIdentifier();
}

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

/**
 * Returns the source comment for the given command
 * @param context
 * @param command
 * @return the comment
 */
public String getSourceComment(ExecutionContext context, Command command) {
  if (addSourceComment() && context != null) {
    return comment.get().format(new Object[] {context.getConnectionId(), context.getRequestId(), context.getPartIdentifier(), 
        context.getExecutionCountIdentifier(), context.getSession().getUserName(), context.getVdbName(), context.getVdbVersion(), context.isTransactional() });
  }
  return ""; //$NON-NLS-1$ 
}

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

public FakeExecutionContextImpl(ExecutionContext c) {
  super(c.getVdbName(), c.getVdbVersion(), c.getCommandPayload(), c
      .getConnectionId(), c.getConnectorIdentifier(), Long.valueOf(c
      .getRequestId()), c.getPartIdentifier(), c
      .getExecutionCountIdentifier());
}

相关文章