public Options getOptions() { if (this.globalState.options == null) { this.globalState.options = new Options(); } return this.globalState.options; }
@Override public String getVdbName() { return this.commandContext.getVdbName(); } @Override
public void addWarning(TeiidException warning) { if (context != null) { context.addWarning(warning); } }
public void testNull() { try { new Permutation(null); fail("Expected IllegalArgumentException"); //$NON-NLS-1$ } catch(IllegalArgumentException e) { } }
@Override public String getConnectionId() { return this.commandContext.getConnectionId(); } @Override
@Override public String getVdbVersion() { return this.commandContext.getVdbVersion(); } @Override
public void setContinuous(PreparedPlan prepPlan, String query) { this.continuous = true; this.plan = prepPlan; this.query = query; this.context.setContinuous(); }
/** * Create list of arrays of items, in all possible permutations (that's n! permutations). * @return Iterator where each thing returned by the iterator is a permutation Object[] */ public Iterator<Object[]> generate() { return new PermutationIterator(this.items, this.items.length); }
@Override public GeneratedKeysImpl returnGeneratedKeys(String[] columnNames, Class<?>[] columnDataTypes) { synchronized (this.globalState) { this.globalState.generatedKeys = new GeneratedKeysImpl(columnNames, columnDataTypes); return this.globalState.generatedKeys; } }
/** * Asynch shutdown of the QueryProcessor, which may trigger exceptions in the processing thread */ public void requestCanceled() { this.requestCanceled = true; this.context.requestCancelled(); }
public Options getOptions() { if (this.globalState.options == null) { this.globalState.options = new Options(); } return this.globalState.options; }
@Override public String getConnectionId() { return this.commandContext.getConnectionId(); } @Override
@Override public String getVdbName() { return this.commandContext.getVdbName(); } @Override
public void addWarning(TeiidException warning) { if (context != null) { context.addWarning(warning); } }
@Override public String getVdbVersion() { return this.commandContext.getVdbVersion(); } @Override
public void setContinuous(PreparedPlan prepPlan, String query) { this.continuous = true; this.plan = prepPlan; this.query = query; this.context.setContinuous(); }
/** * Create list of arrays of items, in all possible permutations (that's n! permutations). * @return Iterator where each thing returned by the iterator is a permutation Object[] */ public Iterator<Object[]> generate() { return new PermutationIterator(this.items, this.items.length); }
@Override public Options getOptions() { if (options == null) { options = new Options(); } return options; }
@Override public Options getOptions() { if (options == null) { options = new Options(); } return options; }
public Options getOptions() { if (this.globalState.options == null) { this.globalState.options = new Options(); } return this.globalState.options; }