Package org.teiid.client
Class RequestMessage
- java.lang.Object
-
- org.teiid.client.RequestMessage
-
- All Implemented Interfaces:
Externalizable
,Serializable
public class RequestMessage extends Object implements Externalizable
Request Message, used by MMXStatement for submitting queries.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RequestMessage.ResultsMode
static class
RequestMessage.ShowPlan
static class
RequestMessage.StatementType
-
Field Summary
Fields Modifier and Type Field 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 transactionstatic String
TXN_WRAP_ON
Transaction auto wrap constant - always wrap commands in a transaction.
-
Constructor Summary
Constructors Constructor Description RequestMessage()
RequestMessage(String command)
-
Method Summary
-
-
-
Field Detail
-
DEFAULT_FETCH_SIZE
public static final int DEFAULT_FETCH_SIZE
- See Also:
- Constant Field Values
-
TXN_WRAP_OFF
public static final String TXN_WRAP_OFF
Transaction auto wrap constant - never wrap a command execution in a transaction- See Also:
- Constant Field Values
-
TXN_WRAP_ON
public static final String TXN_WRAP_ON
Transaction auto wrap constant - always wrap commands in a transaction.- See Also:
- Constant Field Values
-
TXN_WRAP_DETECT
public static final String TXN_WRAP_DETECT
Transaction auto wrap constant - checks if a command requires a transaction and will be automatically wrap it.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
RequestMessage
public RequestMessage()
-
RequestMessage
public RequestMessage(String command)
-
-
Method Detail
-
isSync
public boolean isSync()
-
setSync
public void setSync(boolean sync)
-
getFetchSize
public int getFetchSize()
-
supportsPartialResults
public boolean supportsPartialResults()
-
setFetchSize
public void setFetchSize(int fetchSize)
-
setPartialResults
public void setPartialResults(boolean partial)
- Parameters:
partial
-
-
isPreparedStatement
public boolean isPreparedStatement()
- Returns:
- True if this request includes a prepared statement.
-
isCallableStatement
public boolean isCallableStatement()
- Returns:
- True if this request includes a callable statement.
-
setStatementType
public void setStatementType(RequestMessage.StatementType statementType)
-
getParameterValues
public List<?> getParameterValues()
- Returns:
- A list of parameter values. May be null.
-
setParameterValues
public void setParameterValues(List<?> values)
- Parameters:
values
-
-
getCursorType
public int getCursorType()
- Returns:
- String
-
setCursorType
public void setCursorType(int cursorType)
Sets the cursorType.- Parameters:
cursorType
- The cursorType to set
-
getTxnAutoWrapMode
public String getTxnAutoWrapMode()
- Returns:
- String
-
setTxnAutoWrapMode
public void setTxnAutoWrapMode(String txnAutoWrapMode) throws TeiidProcessingException
Sets the txnAutoWrapMode.- Parameters:
txnAutoWrapMode
- The txnAutoWrapMode to set- Throws:
TeiidProcessingException
-
getStyleSheet
public String getStyleSheet()
- Returns:
- String
-
setStyleSheet
public void setStyleSheet(String styleSheet)
Sets the styleSheet.- Parameters:
styleSheet
- The styleSheet to set
-
useResultSetCache
public boolean useResultSetCache()
-
setUseResultSetCache
public void setUseResultSetCache(boolean useResultSetCacse)
-
getCommandString
public String getCommandString()
-
isAnsiQuotedIdentifiers
public boolean isAnsiQuotedIdentifiers()
-
setAnsiQuotedIdentifiers
public void setAnsiQuotedIdentifiers(boolean ansiQuotedIdentifiers)
-
getShowPlan
public RequestMessage.ShowPlan getShowPlan()
-
setShowPlan
public void setShowPlan(RequestMessage.ShowPlan showPlan)
-
getRowLimit
public int getRowLimit()
- Returns:
- Returns the rowLimit.
- Since:
- 4.3
-
setRowLimit
public void setRowLimit(int rowLimit)
- Parameters:
rowLimit
- The rowLimit to set.- Since:
- 4.3
-
getCommands
public String[] getCommands()
-
setCommands
public void setCommands(String... batchedCommands)
-
getCommand
public Object getCommand()
-
setCommand
public void setCommand(Object command)
-
setExecutionPayload
public void setExecutionPayload(Serializable executionPayload)
-
getExecutionPayload
public Serializable getExecutionPayload()
-
getExecutionId
public long getExecutionId()
-
setExecutionId
public void setExecutionId(long executionId)
-
setBatchedUpdate
public void setBatchedUpdate(boolean isBatchedUpdate)
-
isBatchedUpdate
public boolean isBatchedUpdate()
-
getResultsMode
public RequestMessage.ResultsMode getResultsMode()
-
setResultsMode
public void setResultsMode(RequestMessage.ResultsMode resultsMode)
-
getTransactionIsolation
public int getTransactionIsolation()
-
setTransactionIsolation
public void setTransactionIsolation(int transactionIsolation)
-
isNoExec
public boolean isNoExec()
-
setNoExec
public void setNoExec(boolean noExec)
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternal
in interfaceExternalizable
- Throws:
IOException
ClassNotFoundException
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternal
in interfaceExternalizable
- Throws:
IOException
-
getRequestOptions
public RequestOptions getRequestOptions()
-
setRequestOptions
public void setRequestOptions(RequestOptions requestOptions)
-
setReturnAutoGeneratedKeys
public void setReturnAutoGeneratedKeys(boolean autoGenerateKeys)
-
isReturnAutoGeneratedKeys
public boolean isReturnAutoGeneratedKeys()
-
isDelaySerialization
public boolean isDelaySerialization()
-
setDelaySerialization
public void setDelaySerialization(boolean delaySerialization)
-
setSpanContext
public void setSpanContext(String string)
-
getSpanContext
public String getSpanContext()
-
-