static { try { Jvm.loadSystemLibrary("javautils"); } catch (Exception e) { Logger.ELOG(Logger.EUtils, "Error loading debug utils native.", e); } }
/** Opens the corresponding CommDB table. */ public void open(int aNativeSessionHandle) throws CommDBException { iHandle = _open(aNativeSessionHandle, iTableName); Logger.LOG(Logger.EJavaIapInfo, Logger.EInfo, "iHandle =" + iHandle); if (iHandle > 0) { state = OPENED; readFieldValues(); } else { throw new CommDBException("Open failed!", ERROR_OPEN_FAILED, iHandle); } }
/** * Retreives the number of records in the current table. * * @return with the number of records */ public int getRecordCount() throws CommDBException { Logger.LOG(Logger.EJavaIapInfo, Logger.EInfo, "+getRecordCount()"); return _getRecordCount(iHandle); }