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(); }
/** * 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$ }
public FakeExecutionContextImpl(ExecutionContext c) { super(c.getVdbName(), c.getVdbVersion(), c.getCommandPayload(), c .getConnectionId(), c.getConnectorIdentifier(), Long.valueOf(c .getRequestId()), c.getPartIdentifier(), c .getExecutionCountIdentifier()); }