| |
|
| java.lang.Object org.continuent.sequoia.controller.requests.AbstractRequest org.continuent.sequoia.controller.requests.AbstractWriteRequest org.continuent.sequoia.controller.requests.DeleteRequest
Field Summary | |
protected transient ArrayList | from | protected transient boolean | isUnique true if this query only deletes a single row. | protected ArrayList | whereValues ArrayList of values String associated with
the unique columns involved in this delete query.
The values instance variable is only used when a
COLUMN_UNIQUE_DELETE
granularity is applied. |
Constructor Summary | |
public | DeleteRequest(String sqlQuery, boolean escapeProcessing, int timeout, String lineSeparator) Creates a new DeleteRequest instance. |
isUnique | protected transient boolean isUnique(Code) | | true if this query only deletes a single row.
|
whereValues | protected ArrayList whereValues(Code) | | ArrayList of values String associated with
the unique columns involved in this delete query.
The values instance variable is only used when a
COLUMN_UNIQUE_DELETE
granularity is applied. Here, the DELETE request is UNIQUE: all columns of
the WHERE clause are UNIQUE and used in the left part of an equality. When
such a granularity is used, the columns instance variable
contains only UNIQUE columns.
See Also: org.continuent.sequoia.controller.cache.result.CachingGranularities |
DeleteRequest | public DeleteRequest(String sqlQuery, boolean escapeProcessing, int timeout, String lineSeparator)(Code) | | Creates a new DeleteRequest instance. The caller must give
an SQL request, without any leading or trailing spaces and beginning with
'delete ' (it will not be checked).
The request is not parsed but it can be done later by a call to
DeleteRequest.parse(DatabaseSchema,int,boolean) .
Parameters: sqlQuery - the SQL request 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: DeleteRequest.parse |
debug | public void debug()(Code) | | Displays some debugging information about this request.
|
getValues | public ArrayList getValues()(Code) | | Returns an ArrayList of String objects
representing the values associated with the unique columns involved in this
request.
an ArrayList value |
isUnique | public boolean isUnique()(Code) | | Returns true if this query only deletes a single row.
a boolean value |
parse | public void parse(DatabaseSchema schema, int granularity, boolean isCaseSensitive) throws SQLException(Code) | | Parses the SQL request and extracts the selected columns and tables given
the DatabaseSchema of the database targeted by this request.
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 - if parsing must be case sensitive exception: SQLException - if the parsing fails |
returnsResultSet | public boolean returnsResultSet()(Code) | | Does this request returns a ResultSet?
false |
|
|
|