|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.altair.hwm.database.sql.protocol.DBSQLReplyPacket
public class DBSQLReplyPacket
Title: DBSQLReplyPacket
Description: This class represents the result packet sent back to the client
Company: Altair Engineering, Inc.
| Field Summary | |
|---|---|
static int |
DB_FAIL
The constant to indicate a failed operation. |
| Constructor Summary | |
|---|---|
DBSQLReplyPacket()
Constructor |
|
| Method Summary | |
|---|---|
java.lang.String |
GetReason()
Gets the reason for the failure in execution of the query |
long |
GetResult()
Returns an integer indicating if the operation was successful or not |
java.sql.ResultSet |
GetResultSet()
Gets the result set |
void |
Init(long lResult,
java.sql.ResultSet rs)
Fills the reply packet |
boolean |
IsResultSetPresent()
Returns true if the result set is present else false |
void |
ReadPacket(java.io.ObjectInputStream in)
Reads this object from the input stream |
void |
SetReason(java.lang.String strReason)
Sets the reason for the failure in execution of the query |
java.lang.String |
toString()
Returns a string representation |
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 DB_FAIL
| Constructor Detail |
|---|
public DBSQLReplyPacket()
| Method Detail |
|---|
public void Init(long lResult,
java.sql.ResultSet rs)
lResult - The result of the operationrs - The result set for the operation. If not present
then pass nullpublic long GetResult()
public java.sql.ResultSet GetResultSet()
public boolean IsResultSetPresent()
public void SetReason(java.lang.String strReason)
strReason - The reason for failurepublic java.lang.String GetReason()
String - The reason for failurepublic 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 | |||||||||