org.teiid.client
Class RequestMessage

java.lang.Object
  extended by org.teiid.client.RequestMessage
All Implemented Interfaces:
java.io.Externalizable, java.io.Serializable

public class RequestMessage
extends java.lang.Object
implements java.io.Externalizable

Request Message, used by MMXStatement for submitting queries.

See Also:
Serialized Form

Nested Class Summary
static class RequestMessage.ResultsMode
           
static class RequestMessage.ShowPlan
           
static class RequestMessage.StatementType
           
 
Field Summary
static int DEFAULT_FETCH_SIZE
           
static java.lang.String TXN_WRAP_DETECT
          Transaction auto wrap constant - checks if a command requires a transaction and will be automatically wrap it.
static java.lang.String TXN_WRAP_OFF
          Transaction auto wrap constant - never wrap a command execution in a transaction
static java.lang.String TXN_WRAP_ON
          Transaction auto wrap constant - always wrap commands in a transaction.
 
Constructor Summary
RequestMessage()
           
RequestMessage(java.lang.String command)
           
 
Method Summary
 java.lang.String[] getCommands()
           
 java.lang.String getCommandString()
           
 int getCursorType()
           
 long getExecutionId()
           
 java.io.Serializable getExecutionPayload()
           
 int getFetchSize()
           
 java.util.List<?> getParameterValues()
           
 RequestMessage.ResultsMode getResultsMode()
           
 int getRowLimit()
           
 RequestMessage.ShowPlan getShowPlan()
           
 java.lang.String getStyleSheet()
           
 int getTransactionIsolation()
           
 java.lang.String getTxnAutoWrapMode()
           
 boolean getValidationMode()
           
 java.lang.String getXMLFormat()
           
 boolean isAnsiQuotedIdentifiers()
           
 boolean isBatchedUpdate()
           
 boolean isCallableStatement()
           
 boolean isNoExec()
           
 boolean isPreparedStatement()
           
 void readExternal(java.io.ObjectInput in)
           
 void setAnsiQuotedIdentifiers(boolean ansiQuotedIdentifiers)
           
 void setBatchedUpdate(boolean isBatchedUpdate)
           
 void setCommands(java.lang.String... batchedCommands)
           
 void setCursorType(int cursorType)
          Sets the cursorType.
 void setExecutionId(long executionId)
           
 void setExecutionPayload(java.io.Serializable executionPayload)
           
 void setFetchSize(int fetchSize)
           
 void setNoExec(boolean noExec)
           
 void setParameterValues(java.util.List<?> values)
           
 void setPartialResults(boolean partial)
           
 void setResultsMode(RequestMessage.ResultsMode resultsMode)
           
 void setRowLimit(int rowLimit)
           
 void setShowPlan(RequestMessage.ShowPlan showPlan)
           
 void setStatementType(RequestMessage.StatementType statementType)
           
 void setStyleSheet(java.lang.String styleSheet)
          Sets the styleSheet.
 void setTransactionIsolation(int transactionIsolation)
           
 void setTxnAutoWrapMode(java.lang.String txnAutoWrapMode)
          Sets the txnAutoWrapMode.
 void setUseResultSetCache(boolean useResultSetCacse)
           
 void setValidationMode(boolean validationMode)
          Sets the validationMode.
 void setXMLFormat(java.lang.String xMLFormat)
          Sets the xMLFormat.
 boolean supportsPartialResults()
           
 boolean useResultSetCache()
           
 void writeExternal(java.io.ObjectOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_FETCH_SIZE

public static final int DEFAULT_FETCH_SIZE
See Also:
Constant Field Values

TXN_WRAP_OFF

public static final java.lang.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 java.lang.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 java.lang.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(java.lang.String command)
Method Detail

getFetchSize

public int getFetchSize()

supportsPartialResults

public boolean supportsPartialResults()

setFetchSize

public void setFetchSize(int fetchSize)
Parameters:
i -

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 java.util.List<?> getParameterValues()
Returns:
A list of parameter values. May be null.

setParameterValues

public void setParameterValues(java.util.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

getValidationMode

public boolean getValidationMode()
Returns:
boolean

getXMLFormat

public java.lang.String getXMLFormat()
Returns:
String

setValidationMode

public void setValidationMode(boolean validationMode)
Sets the validationMode.

Parameters:
validationMode - The validationMode to set

setXMLFormat

public void setXMLFormat(java.lang.String xMLFormat)
Sets the xMLFormat.

Parameters:
xMLFormat - The xMLFormat to set

getTxnAutoWrapMode

public java.lang.String getTxnAutoWrapMode()
Returns:
String

setTxnAutoWrapMode

public void setTxnAutoWrapMode(java.lang.String txnAutoWrapMode)
                        throws TeiidProcessingException
Sets the txnAutoWrapMode.

Parameters:
txnAutoWrapMode - The txnAutoWrapMode to set
Throws:
TeiidProcessingException

getStyleSheet

public java.lang.String getStyleSheet()
Returns:
String

setStyleSheet

public void setStyleSheet(java.lang.String styleSheet)
Sets the styleSheet.

Parameters:
styleSheet - The styleSheet to set

useResultSetCache

public boolean useResultSetCache()

setUseResultSetCache

public void setUseResultSetCache(boolean useResultSetCacse)

getCommandString

public java.lang.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 java.lang.String[] getCommands()

setCommands

public void setCommands(java.lang.String... batchedCommands)

setExecutionPayload

public void setExecutionPayload(java.io.Serializable executionPayload)

getExecutionPayload

public java.io.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(java.io.ObjectInput in)
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException
Specified by:
readExternal in interface java.io.Externalizable
Throws:
java.io.IOException
java.lang.ClassNotFoundException

writeExternal

public void writeExternal(java.io.ObjectOutput out)
                   throws java.io.IOException
Specified by:
writeExternal in interface java.io.Externalizable
Throws:
java.io.IOException


Copyright © 2010. All Rights Reserved.