public class NetSqlca extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
SQL_ERR_LENGTH |
protected int |
sqlCode_ |
protected int[] |
sqlErrd_ |
protected byte[] |
sqlErrmcBytes_ |
protected byte[] |
sqlErrpBytes_ |
protected String |
sqlState_ |
protected byte[] |
sqlWarnBytes_ |
| Modifier and Type | Method and Description |
|---|---|
protected String |
bytes2String(byte[] bytes,
int offset,
int length) |
static int |
complete(NetSqlca sqlca,
int... allowedCodes)
Checks the SQL code of the SQLCA.
|
boolean |
containsSqlcax() |
long |
getRowCount() |
long |
getRowsetRowCount() |
int |
getSqlCode() |
String |
getSqlErrmc() |
String |
getSqlErrp() |
String |
getSqlState() |
String |
getSqlWarn() |
long |
getUpdateCount() |
void |
resetRowsetSqlca(int sqlCode,
String sqlState) |
void |
setContainsSqlcax(boolean containsSqlcax) |
void |
setRowsetRowCount(long rowCount) |
static void |
throwSqlError(NetSqlca sqlca)
Throws a specific error message based on the passed in SQL error code
|
String |
toString() |
public static final int SQL_ERR_LENGTH
protected int sqlCode_
protected int[] sqlErrd_
protected String sqlState_
protected byte[] sqlErrmcBytes_
protected byte[] sqlErrpBytes_
protected byte[] sqlWarnBytes_
public static int complete(NetSqlca sqlca, int... allowedCodes)
sqlca - The SQL Communication Area to completepublic static void throwSqlError(NetSqlca sqlca)
sqlca - public int getSqlCode()
public String getSqlErrmc()
public String getSqlErrp()
public String getSqlWarn()
public String getSqlState()
protected String bytes2String(byte[] bytes, int offset, int length)
public long getUpdateCount()
public long getRowCount()
public void setContainsSqlcax(boolean containsSqlcax)
public boolean containsSqlcax()
public void resetRowsetSqlca(int sqlCode,
String sqlState)
public void setRowsetRowCount(long rowCount)
public long getRowsetRowCount()
Copyright © 2021. All rights reserved.