|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.objectweb.cjdbc.common.sql.AbstractRequest
org.objectweb.cjdbc.common.sql.StoredProcedure
A StoredProcedure is a SQL request with the following syntax:
{call <procedure-name>[<arg1>,<arg2>, ...]}
| Field Summary | |
private java.lang.String |
procedureName
|
| Fields inherited from class org.objectweb.cjdbc.common.sql.AbstractRequest |
cacheable, escapeProcessing, id, isAutoCommit, isParsed, isReadOnly, login, maxRows, sqlQuery, sqlSkeleton, timeout, transactionId |
| Constructor Summary | |
StoredProcedure(java.lang.String sqlQuery,
boolean escapeProcessing,
int timeout,
java.lang.String lineSeparator)
Creates a new StoredProcedure instance. |
|
| Method Summary | |
void |
cloneParsing(AbstractRequest request)
Always throws a SQLException: it is useless to parse a
stored procedure call since we can't know which tables are affected by this
procedure. |
java.lang.String |
getProcedureName()
Get the stored procedure name |
boolean |
isReadRequest()
Returns true if this request is a read request (
SELECT requests for example perform a read). |
boolean |
isUnknownRequest()
Returns true if the resulting operation on this request is
unknown (some non-standard command or stored procedure for example). |
boolean |
isWriteRequest()
Returns true if this request is a write request (
INSERT or UPDATE for example perform writes). |
void |
parse(DatabaseSchema schema,
int granularity,
boolean isCaseSensitive)
Just get the stored procedure name. |
| Methods inherited from class org.objectweb.cjdbc.common.sql.AbstractRequest |
debug, equals, getCacheAbility, getEscapeProcessing, getFetchSize, getId, getLineSeparator, getLogin, getMaxRows, getSQL, getSQLShortForm, getSqlSkeleton, getTimeout, getTransactionId, isAutoCommit, isDriverProcessed, isParsed, isReadOnly, setCacheAbility, setDriverProcessed, setFetchSize, setId, setIsAutoCommit, setIsReadOnly, setLineSeparator, setLogin, setMaxRows, setSQL, setSqlSkeleton, setTimeout, setTransactionId, trimCarriageReturn |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private transient java.lang.String procedureName
| Constructor Detail |
public StoredProcedure(java.lang.String sqlQuery,
boolean escapeProcessing,
int timeout,
java.lang.String lineSeparator)
StoredProcedure instance.
sqlQuery - the SQL requestescapeProcessing - should the driver to escape processing before
sending to the database ?timeout - an int valuelineSeparator - the line separator used in the queryparse(org.objectweb.cjdbc.common.sql.schema.DatabaseSchema, int, boolean)| Method Detail |
public boolean isReadRequest()
AbstractRequesttrue if this request is a read request (
SELECT requests for example perform a read).
isReadRequest in class AbstractRequestfalseAbstractRequest.isReadRequest()public boolean isWriteRequest()
AbstractRequesttrue if this request is a write request (
INSERT or UPDATE for example perform writes).
isWriteRequest in class AbstractRequestfalseAbstractRequest.isWriteRequest()public boolean isUnknownRequest()
AbstractRequesttrue if the resulting operation on this request is
unknown (some non-standard command or stored procedure for example).
isUnknownRequest in class AbstractRequesttrueAbstractRequest.isUnknownRequest()public java.lang.String getProcedureName()
public void parse(DatabaseSchema schema,
int granularity,
boolean isCaseSensitive)
throws java.sql.SQLException
parse in class AbstractRequestschema - a DatabaseSchema valuegranularity - parsing granularity as defined in
ParsingGranularitiesisCaseSensitive - true if parsing must be case sensitive
java.sql.SQLException - if the parsing failsAbstractRequest.parse(org.objectweb.cjdbc.common.sql.schema.DatabaseSchema,
int, boolean)public void cloneParsing(AbstractRequest request)
SQLException: it is useless to parse a
stored procedure call since we can't know which tables are affected by this
procedure.
cloneParsing in class AbstractRequestrequest - the parsed request to cloneAbstractRequest.cloneParsing(AbstractRequest)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||