org.apache.derby.client.am
Class Sqlca
- java.lang.Object
-
- org.apache.derby.client.am.Sqlca
-
public abstract class Sqlca extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field and Description static intSQL_ERR_LENGTH
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description booleancontainsSqlcax()intgetErrorCode()Get the error code based on the SQL code received from the server.longgetRowCount()longgetRowsetRowCount()intgetSqlCode()java.lang.StringgetSqlErrmc()java.lang.StringgetSqlErrp()java.lang.StringgetSqlState()java.lang.StringgetSqlWarn()longgetUpdateCount()voidresetRowsetSqlca(ClientConnection connection, int sqlCode, java.lang.String sqlState)voidsetContainsSqlcax(boolean containsSqlcax)voidsetRowsetRowCount(long rowCount)
-
-
-
Field Detail
-
SQL_ERR_LENGTH
public static final int SQL_ERR_LENGTH
- See Also:
- Constant Field Values
-
-
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()
-
getRowCount
public long getRowCount() throws DisconnectException- Throws:
DisconnectException
-
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