|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.altair.hwm.database.sql.protocol.DBSQLReqPacket
public class DBSQLReqPacket
Title: DBSQLReqPacket
Description: This class represents the request packet that will be received from the client
Company: Altair Engineering, Inc.
Field Summary | |
---|---|
static int |
CMD_DML_INSERT
|
static int |
CMD_DML_QUERY
|
static int |
CMD_DML_UPDATE
The kind of operations that can be executed are: In DML: update, insert, delete query In DDL: create table, delete table etc. |
Constructor Summary | |
---|---|
DBSQLReqPacket()
Constructor |
|
DBSQLReqPacket(java.lang.String strQuery,
int nReqType)
Constructor |
|
DBSQLReqPacket(java.lang.String strQuery,
java.util.Vector vectParams,
int nReqType)
Constructor |
Method Summary | |
---|---|
java.util.Vector |
GetParams()
Gets the parameters |
java.lang.String |
GetQueryString()
Gets the query |
int |
GetRequestType()
Gets the type of request. |
void |
ReadPacket(java.io.ObjectInputStream in)
Reads this object from the input stream |
void |
SetParams(java.util.Vector vectParams)
Sets the parameters |
void |
SetQueryString(java.lang.String strQuery)
Sets the query |
void |
SetRequestType(int nReqType)
Sets the type of request. |
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 |
Field Detail |
---|
public static final int CMD_DML_UPDATE
public static final int CMD_DML_INSERT
public static final int CMD_DML_QUERY
Constructor Detail |
---|
public DBSQLReqPacket()
public DBSQLReqPacket(java.lang.String strQuery, int nReqType)
strQuery
- The query/update/insert etc. to executenReqType
- The type of requestpublic DBSQLReqPacket(java.lang.String strQuery, java.util.Vector vectParams, int nReqType)
strQuery
- The prepared statement to executevectParams
- The vector of objects which are parameters for the
prepared statementnReqType
- The type of requestMethod Detail |
---|
public void SetQueryString(java.lang.String strQuery)
strQuery
- The query to executepublic java.lang.String GetQueryString()
public void SetRequestType(int nReqType)
nReqType
- public int GetRequestType()
public void SetParams(java.util.Vector vectParams)
vectParams
- The vector of parameters for the prepared statementpublic java.util.Vector GetParams()
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 |