public class RequestMessage extends Object implements Externalizable
Modifier and Type | Class and Description |
---|---|
static class |
RequestMessage.ResultsMode |
static class |
RequestMessage.ShowPlan |
static class |
RequestMessage.StatementType |
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_FETCH_SIZE |
static String |
TXN_WRAP_DETECT
Transaction auto wrap constant - checks if a command
requires a transaction and will be automatically wrap it.
|
static String |
TXN_WRAP_OFF
Transaction auto wrap constant - never wrap a command execution in a transaction
|
static String |
TXN_WRAP_ON
Transaction auto wrap constant - always wrap commands in a transaction.
|
Constructor and Description |
---|
RequestMessage() |
RequestMessage(String command) |
public static final int DEFAULT_FETCH_SIZE
public static final String TXN_WRAP_OFF
public static final String TXN_WRAP_ON
public static final String TXN_WRAP_DETECT
public RequestMessage()
public RequestMessage(String command)
public boolean isSync()
public void setSync(boolean sync)
public int getFetchSize()
public boolean supportsPartialResults()
public void setFetchSize(int fetchSize)
i
- public void setPartialResults(boolean partial)
partial
- public boolean isPreparedStatement()
public boolean isCallableStatement()
public void setStatementType(RequestMessage.StatementType statementType)
public List<?> getParameterValues()
public void setParameterValues(List<?> values)
values
- public int getCursorType()
public void setCursorType(int cursorType)
cursorType
- The cursorType to setpublic boolean getValidationMode()
public String getXMLFormat()
public void setValidationMode(boolean validationMode)
validationMode
- The validationMode to setpublic void setXMLFormat(String xMLFormat)
xMLFormat
- The xMLFormat to setpublic String getTxnAutoWrapMode()
public void setTxnAutoWrapMode(String txnAutoWrapMode) throws org.teiid.core.TeiidProcessingException
txnAutoWrapMode
- The txnAutoWrapMode to setorg.teiid.core.TeiidProcessingException
public String getStyleSheet()
public void setStyleSheet(String styleSheet)
styleSheet
- The styleSheet to setpublic boolean useResultSetCache()
public void setUseResultSetCache(boolean useResultSetCacse)
public String getCommandString()
public boolean isAnsiQuotedIdentifiers()
public void setAnsiQuotedIdentifiers(boolean ansiQuotedIdentifiers)
public RequestMessage.ShowPlan getShowPlan()
public void setShowPlan(RequestMessage.ShowPlan showPlan)
public int getRowLimit()
public void setRowLimit(int rowLimit)
rowLimit
- The rowLimit to set.public String[] getCommands()
public void setCommands(String... batchedCommands)
public void setExecutionPayload(Serializable executionPayload)
public Serializable getExecutionPayload()
public long getExecutionId()
public void setExecutionId(long executionId)
public void setBatchedUpdate(boolean isBatchedUpdate)
public boolean isBatchedUpdate()
public RequestMessage.ResultsMode getResultsMode()
public void setResultsMode(RequestMessage.ResultsMode resultsMode)
public int getTransactionIsolation()
public void setTransactionIsolation(int transactionIsolation)
public boolean isNoExec()
public void setNoExec(boolean noExec)
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
public RequestOptions getRequestOptions()
public void setRequestOptions(RequestOptions requestOptions)
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.