|
|||||||||||
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.UnknownRequest
An UnknownRequest
is an SQL request that does not match any
SQL query known by this software.
Field Summary | |
private static long |
serialVersionUID
|
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 | |
UnknownRequest(CJDBCInputStream in)
|
|
UnknownRequest(java.lang.String sqlQuery,
boolean escapeProcessing,
int timeout,
java.lang.String lineSeparator)
Creates a new UnknownRequest instance. |
Method Summary | |
void |
cloneParsing(AbstractRequest request)
Throws always an SQLException : it is not possible to parse
an unknown request because we don't know its syntax or semantic. |
boolean |
needsMacroProcessing()
Returns true if this request requires macro (RAND(), NOW(),
...) processing. |
void |
parse(DatabaseSchema schema,
int granularity,
boolean isCaseSensitive)
Throws always an SQLException : it is not possible to parse
an unknown request because we don't know its syntax or semantic. |
boolean |
returnsResultSet()
Does this request returns a ResultSet? |
void |
sendToStream(CJDBCOutputStream out,
boolean needSqlSkeleton)
Serialize the request on the output stream by sending only the needed parameters to reconstruct it on the controller. |
Methods inherited from class org.objectweb.cjdbc.common.sql.AbstractRequest |
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, receiveResultSetParams, sendResultSetParams, 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 |
private static final long serialVersionUID
Constructor Detail |
public UnknownRequest(java.lang.String sqlQuery, boolean escapeProcessing, int timeout, java.lang.String lineSeparator)
UnknownRequest
instance.
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 querypublic UnknownRequest(CJDBCInputStream in) throws java.io.IOException
AbstractRequest
Method Detail |
public void sendToStream(CJDBCOutputStream out, boolean needSqlSkeleton) throws java.io.IOException
AbstractRequest
sendToStream
in class AbstractRequest
out
- destination CJDBCOutputStreamneedSqlSkeleton
- true if controller wants SQL templates
java.io.IOException
- if failsAbstractRequest
public boolean needsMacroProcessing()
AbstractRequest
true
if this request requires macro (RAND(), NOW(),
...) processing.
needsMacroProcessing
in class AbstractRequest
false
AbstractRequest.needsMacroProcessing()
public boolean returnsResultSet()
AbstractRequest
returnsResultSet
in class AbstractRequest
AbstractRequest.returnsResultSet()
public void parse(DatabaseSchema schema, int granularity, boolean isCaseSensitive) throws java.sql.SQLException
SQLException
: it is not possible to parse
an unknown request because we don't know its syntax or semantic.
parse
in class AbstractRequest
schema
- a DatabaseSchema
valuegranularity
- parsing granularity as defined in
ParsingGranularities
isCaseSensitive
- 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 not possible to parse
an unknown request because we don't know its syntax or semantic.
cloneParsing
in class AbstractRequest
request
- the parsed request to cloneAbstractRequest.cloneParsing(AbstractRequest)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |