| |
|
| java.lang.Object org.continuent.sequoia.controller.requests.AbstractRequest org.continuent.sequoia.controller.requests.AbstractWriteRequest org.continuent.sequoia.controller.requests.UpdateRequest
Constructor Summary | |
public | UpdateRequest(String sqlQuery, boolean escapeProcessing, int timeout, String lineSeparator) Creates a new UpdateRequest instance. |
isUnique | protected transient boolean isUnique(Code) | | true if this request updates a UNIQUE row.
|
UpdateRequest | public UpdateRequest(String sqlQuery, boolean escapeProcessing, int timeout, String lineSeparator)(Code) | | Creates a new UpdateRequest instance. The caller must give
an SQL request, without any leading or trailing spaces and beginning with
'update ' (it will not be checked).
The request is not parsed but it can be done later by a call to
UpdateRequest.parse(DatabaseSchema,int,boolean) .
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 See Also: UpdateRequest.parse |
debug | public void debug()(Code) | | Displays some debugging information about this request.
|
getUpdatedValues | public HashMap getUpdatedValues()(Code) | | What are the updated values in this request
a hashtable of (colname,value) or null if parsing granularity hasstop computation |
isUnique | public boolean isUnique()(Code) | | Returns true as this request updates a UNIQUE
row.
false |
parse | public void parse(DatabaseSchema schema, int granularity, boolean isCaseSensitive) throws SQLException(Code) | | Parses the SQL request and extract the selected columns and tables given
the DatabaseSchema of the database targeted by this request.
Determines also if this query only deletes a single row, and the equivalent
INSERT statement.
An exception is thrown when the parsing fails. Warning, this method does
not check the validity of the request. In particular, invalid request could
be parsed without throwing an exception. However, valid SQL request should
never throw an exception.
Parameters: schema - a DatabaseSchema value Parameters: granularity - parsing granularity as defined inParsingGranularities Parameters: isCaseSensitive - true if table name parsing is case sensitive exception: SQLException - if the parsing fails |
returnsResultSet | public boolean returnsResultSet()(Code) | | Does this request returns a ResultSet?
false |
|
|
|