Package com.j_spaces.jdbc
Class QueryProcessorStub
- All Implemented Interfaces:
ILRMIProxy,SmartExternalizable,IQueryProcessor,Externalizable,Serializable,Remote
Smart stub for the
QueryProcessor- Since:
- 6.0
- Author:
- anna
- See Also:
-
Field Summary
Fields inherited from interface com.j_spaces.jdbc.IQueryProcessor
QP_LOOKUP_NAME -
Constructor Summary
ConstructorsConstructorDescriptionQueryProcessorStub(IQueryProcessor directObjRef, IQueryProcessor dynamicProxy) -
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.Methods inherited from class com.gigaspaces.lrmi.RemoteStub
closeProxy, disable, enable, equals, getConnectionUrl, getDynamicProxy, getGeneratedTraffic, getProxy, getReceivedTraffic, getRemoteHostAddress, getRemoteHostName, getRemoteNetworkAddress, getRemoteProcessId, getServicePlatformLogicalVersion, getStubId, hashCode, init, isClosed, isCollocated, isCollocatedStub, isDirect, isRemote, isStub, overrideMethodsMetadata, readExternal, toString, writeExternalMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.gigaspaces.serialization.SmartExternalizable
enabledSmartExternalizableWithReference
-
Constructor Details
-
QueryProcessorStub
public QueryProcessorStub() -
QueryProcessorStub
-
-
Method Details
-
closeConnection
Description copied from interface:IQueryProcessorClose connection- Specified by:
closeConnectionin interfaceIQueryProcessor- Throws:
RemoteException
-
setTransaction
Description copied from interface:IQueryProcessorSet an explicit transaction to be used by the query processor.- Specified by:
setTransactionin interfaceIQueryProcessor- Throws:
RemoteException
-
executeQuery
public ResponsePacket executeQuery(RequestPacket request, ConnectionContext context) throws RemoteException, SQLException Description copied from interface:IQueryProcessorExecute query request and returns the response- Specified by:
executeQueryin interfaceIQueryProcessor- Parameters:
request- the request to executecontext- the session of the request- Returns:
- response packet
- Throws:
RemoteExceptionSQLException
-
isAvailable
Description copied from interface:IQueryProcessorCheck if QueryProcessor is available- Specified by:
isAvailablein interfaceIQueryProcessor- Throws:
RemoteException
-
newConnection
Description copied from interface:IQueryProcessorStarts new connection- Specified by:
newConnectionin interfaceIQueryProcessor- Returns:
- connection context
- Throws:
RemoteException
-
getSession
Description copied from interface:IQueryProcessorRetrieve the query session that belongs to the given context- Specified by:
getSessionin interfaceIQueryProcessor- Returns:
- the query session that belongs to the given context
- Throws:
RemoteException
-