@Test public void testInvalidTxnAutoWrap() { RequestMessage rm = new RequestMessage(); try { rm.setTxnAutoWrapMode("foo"); fail("exception expected"); } catch (TeiidProcessingException e) { assertEquals("TEIID20000 'FOO' is an invalid transaction autowrap mode.", e.getMessage()); } }
public void setTxnAutoWrapMode(String txnAutoWrapMode) throws TeiidProcessingException { if (txnAutoWrapMode != null) { txnAutoWrapMode = txnAutoWrapMode.toUpperCase(); if (!(txnAutoWrapMode.equals(TXN_WRAP_OFF) || txnAutoWrapMode.equals(TXN_WRAP_ON) || txnAutoWrapMode.equals(TXN_WRAP_DETECT))) { throw new TeiidProcessingException(JDBCPlugin.Event.TEIID20000, JDBCPlugin.Util.gs(JDBCPlugin.Event.TEIID20000, txnAutoWrapMode)); } } this.txnAutoWrapMode = txnAutoWrapMode; }
RequestMessage implements Externalizable { public void setTxnAutoWrapMode(String txnAutoWrapMode) throws TeiidProcessingException { if (txnAutoWrapMode != null) { txnAutoWrapMode = txnAutoWrapMode.toUpperCase(); if (!(txnAutoWrapMode.equals(TXN_WRAP_OFF) || txnAutoWrapMode.equals(TXN_WRAP_ON) || txnAutoWrapMode.equals(TXN_WRAP_DETECT))) { throw new TeiidProcessingException(JDBCPlugin.Event.TEIID20000, JDBCPlugin.Util.gs(JDBCPlugin.Event.TEIID20000, txnAutoWrapMode)); } } this.txnAutoWrapMode = txnAutoWrapMode; } }
RequestMessage implements Externalizable { public void setTxnAutoWrapMode(String txnAutoWrapMode) throws TeiidProcessingException { if (txnAutoWrapMode != null) { txnAutoWrapMode = txnAutoWrapMode.toUpperCase(); if (!(txnAutoWrapMode.equals(TXN_WRAP_OFF) || txnAutoWrapMode.equals(TXN_WRAP_ON) || txnAutoWrapMode.equals(TXN_WRAP_DETECT))) { throw new TeiidProcessingException(JDBCPlugin.Event.TEIID20000, JDBCPlugin.Util.gs(JDBCPlugin.Event.TEIID20000, txnAutoWrapMode)); } } this.txnAutoWrapMode = txnAutoWrapMode; } RequestMessage();  RequestMessage(String command); }
RequestMessage implements Externalizable { public void setTxnAutoWrapMode(String txnAutoWrapMode) throws TeiidProcessingException { if (txnAutoWrapMode != null) { txnAutoWrapMode = txnAutoWrapMode.toUpperCase(); if (!(txnAutoWrapMode.equals(TXN_WRAP_OFF) || txnAutoWrapMode.equals(TXN_WRAP_ON) || txnAutoWrapMode.equals(TXN_WRAP_DETECT))) { throw new TeiidProcessingException(JDBCPlugin.Event.TEIID20000, JDBCPlugin.Util.gs(JDBCPlugin.Event.TEIID20000, txnAutoWrapMode)); } } this.txnAutoWrapMode = txnAutoWrapMode; } RequestMessage();  RequestMessage(String command); boolean isSync(); void setSync(boolean sync); int getFetchSize(); boolean supportsPartialResults(); void setFetchSize(int fetchSize); void setPartialResults(boolean partial); boolean isPreparedStatement(); boolean isCallableStatement(); void setStatementType(StatementType statementType); List<?> getParameterValues(); void setParameterValues(List<?> values); int getCursorType(); void setCursorType(int cursorType); String getTxnAutoWrapMode(); void setTxnAutoWrapMode(String txnAutoWrapMode); String getStyleSheet(); void setStyleSheet(String styleSheet); boolean useResultSetCache(); void setUseResultSetCache(boolean useResultSetCacse); String getCommandString(); boolean isAnsiQuotedIdentifiers(); void setAnsiQuotedIdentifiers(boolean ansiQuotedIdentifiers); ShowPlan getShowPlan(); void setShowPlan(ShowPlan showPlan); int getRowLimit(); void setRowLimit(int rowLimit); String[] getCommands(); void setCommands(String... batchedCommands); Object getCommand(); void setCommand(Object command); void setExecutionPayload(Serializable executionPayload); Serializable getExecutionPayload(); long getExecutionId(); void setExecutionId(long executionId); void setBatchedUpdate(boolean isBatchedUpdate); boolean isBatchedUpdate(); ResultsMode getResultsMode(); void setResultsMode(ResultsMode resultsMode); int getTransactionIsolation(); void setTransactionIsolation(int transactionIsolation); boolean isNoExec(); void setNoExec(boolean noExec); @Override void readExternal(ObjectInput in); @Override void writeExternal(ObjectOutput out); RequestOptions getRequestOptions(); void setRequestOptions(RequestOptions requestOptions); void setReturnAutoGeneratedKeys(boolean autoGenerateKeys); boolean isReturnAutoGeneratedKeys(); boolean isDelaySerialization(); void setDelaySerialization(boolean delaySerialization); void setSpanContext(String string); String getSpanContext(); }
RequestMessage implements Externalizable { public void setTxnAutoWrapMode(String txnAutoWrapMode) throws TeiidProcessingException { if (txnAutoWrapMode != null) { txnAutoWrapMode = txnAutoWrapMode.toUpperCase(); if (!(txnAutoWrapMode.equals(TXN_WRAP_OFF) || txnAutoWrapMode.equals(TXN_WRAP_ON) || txnAutoWrapMode.equals(TXN_WRAP_DETECT))) { throw new TeiidProcessingException(JDBCPlugin.Event.TEIID20000, JDBCPlugin.Util.gs(JDBCPlugin.Event.TEIID20000, txnAutoWrapMode)); } } this.txnAutoWrapMode = txnAutoWrapMode; } RequestMessage();  RequestMessage(String command); boolean isSync(); void setSync(boolean sync); int getFetchSize(); boolean supportsPartialResults(); void setFetchSize(int fetchSize); void setPartialResults(boolean partial); boolean isPreparedStatement(); boolean isCallableStatement(); void setStatementType(StatementType statementType); List<?> getParameterValues(); void setParameterValues(List<?> values); int getCursorType(); void setCursorType(int cursorType); String getTxnAutoWrapMode(); void setTxnAutoWrapMode(String txnAutoWrapMode); String getStyleSheet(); void setStyleSheet(String styleSheet); boolean useResultSetCache(); void setUseResultSetCache(boolean useResultSetCacse); String getCommandString(); boolean isAnsiQuotedIdentifiers(); void setAnsiQuotedIdentifiers(boolean ansiQuotedIdentifiers); ShowPlan getShowPlan(); void setShowPlan(ShowPlan showPlan); int getRowLimit(); void setRowLimit(int rowLimit); String[] getCommands(); void setCommands(String... batchedCommands); Object getCommand(); void setCommand(Object command); void setExecutionPayload(Serializable executionPayload); Serializable getExecutionPayload(); long getExecutionId(); void setExecutionId(long executionId); void setBatchedUpdate(boolean isBatchedUpdate); boolean isBatchedUpdate(); ResultsMode getResultsMode(); void setResultsMode(ResultsMode resultsMode); int getTransactionIsolation(); void setTransactionIsolation(int transactionIsolation); boolean isNoExec(); void setNoExec(boolean noExec); @Override void readExternal(ObjectInput in); @Override void writeExternal(ObjectOutput out); RequestOptions getRequestOptions(); void setRequestOptions(RequestOptions requestOptions); void setReturnAutoGeneratedKeys(boolean autoGenerateKeys); boolean isReturnAutoGeneratedKeys(); boolean isDelaySerialization(); void setDelaySerialization(boolean delaySerialization); void setSpanContext(String string); String getSpanContext(); static final int DEFAULT_FETCH_SIZE; static final String TXN_WRAP_OFF; static final String TXN_WRAP_ON; static final String TXN_WRAP_DETECT; }