DB2 Version 9.7 for Linux, UNIX, and Windows

DB2Sqlca class

The com.ibm.db2.jcc.DB2Sqlca class is an encapsulation of the SQLCA.

DB2Sqlca methods

The following methods are defined only for the IBM® Data Server Driver for JDBC and SQLJ.

getMessage
Format:
public abstract String getMessage()

Returns error message text.

getSqlCode
Format:
public abstract int getSqlCode()

Returns an SQL error code value.

getSqlErrd
Format:
public abstract int[] getSqlErrd()

Returns an array, each element of which contains an SQLCA SQLERRD.

getSqlErrmc
Format:
public abstract String getSqlErrmc()

Returns a string that contains the SQLCA SQLERRMC values, delimited with spaces.

getSqlErrmcTokens
Format:
public abstract String[] getSqlErrmcTokens()

Returns an array, each element of which contains an SQLCA SQLERRMC token.

getSqlErrp
Format:
public abstract String getSqlErrp()

Returns the SQLCA SQLERRP value.

getSqlState
Format:
public abstract String getSqlState()

Returns the SQLCA SQLSTATE value.

getSqlWarn
Format:
public abstract char[] getSqlWarn()

Returns an array, each element of which contains an SQLCA SQLWARN value.