com.sybase.jdbcx
Interface EedInfo


public abstract interface EedInfo

Provides read-only access to Extended Error Data received from the server.


Method Summary
 ResultSet getEedParams()
          Returns a one-row result set containing any parameter values that accompany the error message.
 int getLineNumber()
          Returns the line number of the stored procedure or query that caused the message, if applicable.
 String getProcedureName()
          Returns the name of the procedure that caused the message.
 String getServerName()
          Returns the name of the server that generated the message.
 int getSeverity()
          Returns the severity of the server message.
 int getState()
          Returns the server error state.
 int getStatus()
          Returns the status from the EED information.
 int getTranState()
          Returns the transaction state at the time of this message.
 

Method Detail

getState

public int getState()
Returns the server error state. This is additional information about the origin of the message. It may be useful to Sybase Technical Support in helping to diagnose problems.

getSeverity

public int getSeverity()
Returns the severity of the server message.

getServerName

public String getServerName()
Returns the name of the server that generated the message.

getProcedureName

public String getProcedureName()
Returns the name of the procedure that caused the message.

getLineNumber

public int getLineNumber()
Returns the line number of the stored procedure or query that caused the message, if applicable.

getEedParams

public ResultSet getEedParams()
Returns a one-row result set containing any parameter values that accompany the error message. This method returns useful results only when called from within a SybMessageHandler callback.
See Also:
SybMessageHandler

getTranState

public int getTranState()
Returns the transaction state at the time of this message.

getStatus

public int getStatus()
Returns the status from the EED information. This will be 1 if there are EedParams, 0 if there are not.