|
2004.04.29 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--com.jdc.lang.Object
|
+--com.jdc.rdb.sql.dml.DMLStatus
|
+--com.jdc.rdb.sql.dml.insert.InsertStatus
InsertStatus represents the execution status of an
Insert SQL statement.
This class provides the following Insert statement execution
status information:
Insert statement execution was successful or not.SQLException that occurred if not successful.InsertStatus class is immutable.
Insert| Field Summary |
| Fields inherited from class com.jdc.lang.Object |
string |
| Method Summary | |
SQLException |
getException()
Returns the Insert statement exception, if one occurred. |
int |
getRowCount()
Returns the number of Database Table
rows inserted. |
boolean |
isDuplicate()
Returns true if Insert statement attempts to insert
a duplicate row into the Database Table. |
boolean |
isSuccessful()
Returns true if the Insert statement execution is
successful. |
| Methods inherited from class com.jdc.rdb.sql.dml.DMLStatus |
getSQL, getStatus |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public SQLException getException()
Insert statement exception, if one occurred.
Insert statement exception.public boolean isDuplicate()
true if Insert statement attempts to insert
a duplicate row into the Database Table.
This method checks for an SQLSTATE value of 23505.
SQLSTATE value.
True if the Insert statement attempts to insert a duplicate row. False if the Insert statement execution is successful.public boolean isSuccessful()
true if the Insert statement execution is
successful.
isSuccessful in class DMLStatusTrue if the Insert statement execution is successful. False if the Insert statement execution is not successful.public int getRowCount()
Database Table
rows inserted.
Database Table rows inserted.
|
2004.04.29 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||