Package com.j_spaces.jdbc
Interface IQueryProcessor
- All Superinterfaces:
Remote
- All Known Implementing Classes:
QueryProcessor,QueryProcessorStub
Remote interface for the
QueryProcessor.- Since:
- 6.0
- Author:
- anna
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidcloseConnection(ConnectionContext context) Close connectionexecuteQuery(RequestPacket request, ConnectionContext context) Execute query request and returns the responsegetSession(ConnectionContext context) Retrieve the query session that belongs to the given contextbooleanCheck if QueryProcessor is availableStarts new connectionvoidsetTransaction(Transaction transaction) Set an explicit transaction to be used by the query processor.
-
Field Details
-
QP_LOOKUP_NAME
- See Also:
-
-
Method Details
-
executeQuery
ResponsePacket executeQuery(RequestPacket request, ConnectionContext context) throws RemoteException, SQLException Execute query request and returns the response- Parameters:
request- the request to executecontext- the session of the request- Returns:
- response packet
- Throws:
RemoteExceptionSQLException
-
isAvailable
Check if QueryProcessor is available- Throws:
RemoteException
-
newConnection
Starts new connection- Returns:
- connection context
- Throws:
RemoteException
-
closeConnection
Close connection- Throws:
RemoteException
-
getSession
Retrieve the query session that belongs to the given context- Returns:
- the query session that belongs to the given context
- Throws:
RemoteException
-
setTransaction
Set an explicit transaction to be used by the query processor.- Throws:
RemoteException
-