Package com.j_spaces.jdbc
Class RequestPacket
java.lang.Object
com.j_spaces.jdbc.RequestPacket
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ExtendedRequestPacket,RequestPacketV3,SetAutoCommitRequest,SetTransaction,SetUseSingleSpace
The RequestPacket class. Every request from the JDBC driver is wrapped by this class. it holds a
byte which signals the type of the request. The available types are:
TYPE_STATEMENT - a regular statement as a string TYPE_PREPARED_STATEMENT - a regular prepared
statement. a string with question marks. TYPE_PREPARED_WITH_VALUES - a prepared statement,
accompanied with an array of values TYPE_TOGGLE_AUTO_COMMIT - toggling autocommit on/off.
Version 8.0: PREPARED_VALUES_BATCH
- Author:
- Michael Mitrani - 2Train4, 2004
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccept(QueryHandler handler, QuerySession session) voidbuild(AbstractDMLQuery dmlQuery) Object[]getType()voidsetModifiers(Integer modifiers) voidsetPreparedValues(Object[] preparedValues) voidsetPreparedValuesCollection(GPreparedStatement.PreparedValuesCollection preparedValuesCollection) voidsetStatement(String statement) voidsetType(RequestPacket.Type type) toString()
-
Constructor Details
-
RequestPacket
public RequestPacket()
-
-
Method Details
-
getModifiers
-
setModifiers
-
getPreparedValues
- Returns:
- the array of prepared values that come with a prepared statement
-
setPreparedValues
-
getStatement
- Returns:
- - The accompanying statement/prepared statement
-
setStatement
-
getType
-
setType
-
build
- Parameters:
dmlQuery-
-
toString
-
accept
public ResponsePacket accept(QueryHandler handler, QuerySession session) throws LeaseDeniedException, RemoteException, TransactionException, SQLException -
setPreparedValuesCollection
public void setPreparedValuesCollection(GPreparedStatement.PreparedValuesCollection preparedValuesCollection) -
getPreparedValuesCollection
-