Documentation of 'org.apache.derby.client.am.Sqlca' Java class
Sqlca
org.apache.derby.client.am

Class Sqlca



  • public abstract class Sqlca
    extends java.lang.Object
    • Method Detail

      • getSqlCode

        public int getSqlCode()
      • getErrorCode

        public int getErrorCode()

        Get the error code based on the SQL code received from the server.

        The conversion from SQL code to error code happens like this:

        • If the SQL code is 0, there is no error code because the Sqlca doesn't represent an error. Return 0.
        • If the SQL code is positive, the Sqlca represents a warning, and the SQL code represents the actual error code. Return the SQL code.
        • If the SQL code is negative, the Sqlca represents an error, and the error code is -(sqlCode+1).
        See Also:
        org.apache.derby.impl.drda.DRDAConnThread#getSqlCode(java.sql.SQLException)
      • getSqlErrmc

        public java.lang.String getSqlErrmc()
      • getSqlErrp

        public java.lang.String getSqlErrp()
      • getSqlWarn

        public java.lang.String getSqlWarn()
      • getSqlState

        public java.lang.String getSqlState()
      • getUpdateCount

        public long getUpdateCount()
      • setContainsSqlcax

        public void setContainsSqlcax(boolean containsSqlcax)
      • containsSqlcax

        public boolean containsSqlcax()
      • resetRowsetSqlca

        public void resetRowsetSqlca(ClientConnection connection,
                                     int sqlCode,
                                     java.lang.String sqlState)
      • setRowsetRowCount

        public void setRowsetRowCount(long rowCount)
      • getRowsetRowCount

        public long getRowsetRowCount()

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.