| |
|
| java.lang.Object org.continuent.sequoia.controller.requests.AbstractRequest org.continuent.sequoia.controller.requests.AbstractWriteRequest
All known Subclasses: org.continuent.sequoia.controller.requests.InsertRequest, org.continuent.sequoia.controller.requests.AlterRequest, org.continuent.sequoia.controller.requests.DeleteRequest, org.continuent.sequoia.controller.requests.CreateRequest, org.continuent.sequoia.controller.requests.UnknownWriteRequest, org.continuent.sequoia.controller.requests.DropRequest, org.continuent.sequoia.controller.requests.UpdateRequest,
AbstractWriteRequest | abstract public class AbstractWriteRequest extends AbstractRequest (Code) | | AbstractWriteRequest is the super-class of all requests which
do NOT return any ResultSet. They do have side-effects (else what would they
useful for?!)
author: Emmanuel Cecchet version: 1.0 |
Field Summary | |
protected transient boolean | blocking true if this request might block. | protected transient ArrayList | columns ArrayList of TableColumn involved in this
write query. | protected transient String | pkValue | protected boolean | requiresGlobalLock True if the request requires to take a global lock. | protected transient String | tableName Name of the table involved in this write query. |
blocking | protected transient boolean blocking(Code) | | true if this request might block.
|
columns | protected transient ArrayList columns(Code) | | ArrayList of TableColumn involved in this
write query.
|
pkValue | protected transient String pkValue(Code) | | Primary key value
|
requiresGlobalLock | protected boolean requiresGlobalLock(Code) | | True if the request requires to take a global lock.
|
tableName | protected transient String tableName(Code) | | Name of the table involved in this write query.
|
AbstractWriteRequest | public AbstractWriteRequest(String sqlQuery, boolean escapeProcessing, int timeout, String lineSeparator, int requestType)(Code) | | Creates a new AbstractWriteRequest object
Parameters: sqlQuery - the SQL query Parameters: escapeProcessing - should the driver to escape processing beforesending to the database ? Parameters: timeout - an int value Parameters: lineSeparator - the line separator used in the query Parameters: requestType - the request type as defined in RequestType class See Also: RequestType |
cloneTableNameAndColumns | protected void cloneTableNameAndColumns(AbstractWriteRequest abstractWriteRequest)(Code) | | Clones table name and columns from an already parsed request.
Parameters: abstractWriteRequest - the already parsed request |
getColumns | public ArrayList getColumns()(Code) | | Returns an ArrayList of TableColumn objects
representing the columns affected by this statement.
an ArrayList value |
getTableName | public String getTableName()(Code) | | Returns the name of the table affected by this statement.
a String value |
mightBlock | public boolean mightBlock()(Code) | | Tests if this request might block.
true if this request might block |
requiresGlobalLock | public boolean requiresGlobalLock()(Code) | | Return true if the query requires a global locking.
the requiresGlobalLock value. |
setBlocking | public void setBlocking(boolean blocking)(Code) | | Sets if this request might block.
Parameters: blocking - a boolean value |
|
|
|