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.
Related concepts
″SQL communication area (SQLCA)″ (DB2 SQL Reference)
Related tasks
“Handling an SQLException under the IBM Data Server Driver for JDBC and
SQLJ” on page 77
“Handling SQL warnings in an SQLJ application” on page 155
DB2Statement interface
The com.ibm.db2.jcc.DB2Statement interface extends the java.sql.Statement
interface.
DB2Statement implements the java.sql.Wrapper interface.
DB2Statement methods
The following methods are defined only for the IBM Data Server Driver for JDBC
and SQLJ.
getDB2ClientProgramId
Format:
public String getDB2ClientProgramId()
throws java.sql.SQLException
Returns the user-defined client program identifier for the connection, which is
stored on the data source.
354 Application Programming Guide and Reference for Java
™