|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.altair.hwm.database.sql.protocol.DBBatchSQLReqPacket
public class DBBatchSQLReqPacket
Title: DBBatchSQLReqPacket
Description: This class represents the request packet sent to the server when more than one SQL cmd should be executed. This can be used to retrieve the auto id when data is inserted into a table.
Company: Altair Engineering, Inc.
Constructor Summary | |
---|---|
DBBatchSQLReqPacket()
Constructor |
Method Summary | |
---|---|
void |
AddRequest(java.lang.String strQuery,
java.util.Vector vectParams,
int nReqType)
Creates a DBSQLReqPacket for each request |
DBSQLReqPacket |
GetRequest(int nIndex)
Get request at an index. |
int |
GetSize()
Get number of request encapsulated. |
void |
ReadPacket(java.io.ObjectInputStream in)
Reads this object from the input stream |
void |
RemoveRequest(int nIndex)
Removes a request at an index. |
java.lang.String |
toString()
Returns the string representation of this object |
void |
WritePacket(java.io.ObjectOutputStream out)
Writes out this object to the output stream |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DBBatchSQLReqPacket()
Method Detail |
---|
public void AddRequest(java.lang.String strQuery, java.util.Vector vectParams, int nReqType)
strQuery
- The query to executevectParams
- The vector of values for paramaters in a querynReqType
- The type of requestpublic void RemoveRequest(int nIndex)
nIndex
- The index at which the req packet should be removed
java.lang.Exception
- If the index is out of boundspublic DBSQLReqPacket GetRequest(int nIndex) throws java.lang.Exception
java.lang.Exception
- If the index is out of boundspublic int GetSize()
public java.lang.String toString()
toString
in class java.lang.Object
public void WritePacket(java.io.ObjectOutputStream out) throws java.io.IOException
out
- The output stream
java.io.IOException
public void ReadPacket(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException
in
- The input stream
java.io.IOException
java.lang.ClassNotFoundException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |