|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.objectweb.cjdbc.common.sql.AbstractRequest org.objectweb.cjdbc.common.sql.AbstractWriteRequest
An AbstractWriteRequest
defines the skeleton of read requests
that are sent from the driver to the controller.
Field Summary | |
protected boolean |
blocking
true if this request might block. |
protected java.util.ArrayList |
columns
ArrayList of TableColumn involved in this
write query. |
protected java.lang.String |
pkValue
Primary key value |
protected java.lang.String |
tableName
Name of the table involved in this write query. |
Fields inherited from class org.objectweb.cjdbc.common.sql.AbstractRequest |
cacheable, cursorName, escapeProcessing, fetchSize, id, isAutoCommit, isParsed, isReadOnly, login, maxRows, requestType, sqlQuery, sqlSkeleton, timeoutInSeconds, transactionId, transactionIsolation |
Constructor Summary | |
AbstractWriteRequest(CJDBCInputStream in,
int requestType)
Creates a new AbstractWriteRequest object |
|
AbstractWriteRequest(java.lang.String sqlQuery,
boolean escapeProcessing,
int timeout,
java.lang.String lineSeparator,
int requestType)
Creates a new AbstractWriteRequest object |
Method Summary | |
protected void |
cloneTableNameAndColumns(AbstractWriteRequest abstractWriteRequest)
Clones table name and columns from an already parsed request. |
java.util.ArrayList |
getColumns()
Returns an ArrayList of TableColumn objects
representing the columns affected by this statement. |
java.lang.String |
getPk()
|
java.lang.String |
getTableName()
Returns the name of the table affected by this statement. |
boolean |
mightBlock()
Tests if this request might block. |
void |
setBlocking(boolean blocking)
Sets if this request might block. |
Methods inherited from class org.objectweb.cjdbc.common.sql.AbstractRequest |
cloneParsing, debug, equals, getCacheAbility, getCursorName, getEscapeProcessing, getFetchSize, getId, getLineSeparator, getLogin, getMaxRows, getSQL, getSQLShortForm, getSqlSkeleton, getTimeout, getTransactionId, getTransactionIsolation, isAlter, isAutoCommit, isCreate, isDDL, isDelete, isDML, isDriverProcessed, isDrop, isInsert, isParsed, isReadOnly, isSelect, isUpdate, needsMacroProcessing, parse, receiveResultSetParams, returnsResultSet, sendResultSetParams, sendToStream, setCacheAbility, setCursorName, setDriverProcessed, setFetchSize, setId, setIsAutoCommit, setIsReadOnly, setLogin, setMaxRows, setSQL, setSqlSkeleton, setTimeout, setTransactionId, setTransactionIsolation, trimCarriageReturnAndTabs |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected transient java.lang.String tableName
protected transient java.util.ArrayList columns
ArrayList
of TableColumn
involved in this
write query.
protected transient boolean blocking
true
if this request might block.
protected transient java.lang.String pkValue
Constructor Detail |
public AbstractWriteRequest(java.lang.String sqlQuery, boolean escapeProcessing, int timeout, java.lang.String lineSeparator, int requestType)
AbstractWriteRequest
object
sqlQuery
- the SQL queryescapeProcessing
- should the driver to escape processing before
sending to the database ?timeout
- an int
valuelineSeparator
- the line separator used in the queryrequestType
- the request type as defined in RequestType classRequestType
public AbstractWriteRequest(CJDBCInputStream in, int requestType) throws java.io.IOException
AbstractWriteRequest
object
in
- the input stream to read the request fromrequestType
- the request type as defined in RequestType class
java.io.IOException
- if an error occursRequestType
,
AbstractRequest.AbstractRequest(CJDBCInputStream, int)
Method Detail |
public java.lang.String getTableName()
String
valuepublic java.util.ArrayList getColumns()
ArrayList
of TableColumn
objects
representing the columns affected by this statement.
ArrayList
valueprotected void cloneTableNameAndColumns(AbstractWriteRequest abstractWriteRequest)
abstractWriteRequest
- the already parsed requestpublic boolean mightBlock()
true
if this request might blockpublic void setBlocking(boolean blocking)
blocking
- a boolean
valuepublic java.lang.String getPk()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |