Пример #1
0
 static {
   try {
     Jvm.loadSystemLibrary("javautils");
   } catch (Exception e) {
     Logger.ELOG(Logger.EUtils, "Error loading debug utils native.", e);
   }
 }
Пример #2
0
  /** 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);
    }
  }
Пример #3
0
 /**
  * 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);
 }