2004.04.29


com.jdc.rdb.sql
Class SQLStatus

java.lang.Object
  |
  +--com.jdc.lang.Object
        |
        +--com.jdc.rdb.sql.SQLStatus

public class SQLStatus
extends Object

SQLStatus represents the statement execution status of a Structured Query Language (SQL) statement. This class provides the following SQL statement execution status information:

Note:
The SQLStatus class is immutable.

Version:
2.0
Author:
Jay Damon
See Also:
DDLStatus, DMLStatus

Field Summary
 
Fields inherited from class com.jdc.lang.Object
string
 
Method Summary
 Connection getConnection()
          Returns the SQL statement connection, if a result set was returned.
 SQLException getException()
          Returns the SQL statement exception, if one occurred.
 SQLMessage getMessage()
          Returns the SQL statement message, if one was created.
 int getRowCount()
          Returns the SQL statement rows affected count.
 String getSQL()
          Returns the SQL statement String executed.
 Statement getStatement()
          Returns the SQL statement, if a result set was returned.
protected  boolean isResultSet()
          Returns true if the SQL statement execution returned a result set.
 boolean isSuccessful()
          Returns true if the SQL statement execution is successful.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getConnection

public Connection getConnection()
Returns the SQL statement connection, if a result set was returned.

Returns:
The SQL statement connection.

getException

public SQLException getException()
Returns the SQL statement exception, if one occurred.

Returns:
The SQL statement exception.

getMessage

public SQLMessage getMessage()
Returns the SQL statement message, if one was created.

Returns:
The SQL statement message.

getRowCount

public int getRowCount()
Returns the SQL statement rows affected count.

Returns:
The SQL statement rows affected count.

getSQL

public String getSQL()
Returns the SQL statement String executed.

Returns:
The SQL statement String.

getStatement

public Statement getStatement()
Returns the SQL statement, if a result set was returned.

Returns:
The SQL statement.

isResultSet

protected boolean isResultSet()
Returns true if the SQL statement execution returned a result set.

Returns:
True if the SQL statement execution returned a result set.
False if the SQL statement execution did not return a result set.

isSuccessful

public boolean isSuccessful()
Returns true if the SQL statement execution is successful.

Returns:
True if the SQL statement execution is successful.
False if the SQL statement execution is not successful.

2004.04.29



Copyright © 2004 J. Damon & Co.; All Rights Reserved WorldWide.