org.jbundle.base.db.Record.remove()方法的使用及代码示例

x33g5p2x  于2022-01-28 转载在 其他  
字(7.7k)|赞(0)|评价(0)|浏览(90)

本文整理了Java中org.jbundle.base.db.Record.remove方法的一些代码示例,展示了Record.remove的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Record.remove方法的具体详情如下:
包路径:org.jbundle.base.db.Record
类名称:Record
方法名:remove

Record.remove介绍

[英]Delete the current object.
[中]删除当前对象。

代码示例

代码示例来源:origin: com.tourgeek.tour/com.tourgeek.tour.acctpay.screen

/**
 * Remove this batch detail transaction and the distribution.
 * @return true if successful.
 */
public boolean removeDetailTrx()
{
  // Step 3 - Delete the batch (if not recurring)
  Record recBankTrxBatchDetail = this.getDetailRecord();
  try   {
    recBankTrxBatchDetail.remove();
  } catch (DBException ex)    {
    ex.printStackTrace();
  }
  return true;
}
/**

代码示例来源:origin: com.tourapp.tour/com.tourapp.tour.acctpay.screen

/**
 * Remove this batch detail transaction and the distribution.
 * @return true if successful.
 */
public boolean removeDetailTrx()
{
  // Step 3 - Delete the batch (if not recurring)
  Record recBankTrxBatchDetail = this.getDetailRecord();
  try   {
    recBankTrxBatchDetail.remove();
  } catch (DBException ex)    {
    ex.printStackTrace();
  }
  return true;
}
/**

代码示例来源:origin: org.jbundle.base/org.jbundle.base.mixed

/**
 * Delete this item.
 */
public boolean remove()
{
  boolean bSuccess = false;
  try   {
    Record recGrid = this.getMainRecord();
    if (recGrid.getEditMode() == Constants.EDIT_CURRENT)
      recGrid.edit();
    if (recGrid.getEditMode() == Constants.EDIT_IN_PROGRESS)
      recGrid.remove();
    bSuccess = true;
  } catch (DBException ex)  {
    ex.printStackTrace();
    bSuccess = false;
  }
  return bSuccess;
}
/**

代码示例来源:origin: org.jbundle.base.screen/org.jbundle.base.screen.model

/**
 * Delete this item.
 */
public boolean remove()
{
  boolean bSuccess = false;
  try   {
    Record recGrid = this.getMainRecord();
    if (recGrid.getEditMode() == Constants.EDIT_CURRENT)
      recGrid.edit();
    if (recGrid.getEditMode() == Constants.EDIT_IN_PROGRESS)
      recGrid.remove();
    bSuccess = true;
  } catch (DBException ex)  {
    ex.printStackTrace();
    bSuccess = false;
  }
  return bSuccess;
}
/**

代码示例来源:origin: org.jbundle.base.db/org.jbundle.base.db

/**
 * Delete this record (Always called from the record class).
 * Always override this method.
 * @exception DBException File exception.
 */
public void remove() throws DBException
{
  if (this.getCurrentRecord() == this.getBaseRecord())
    super.remove();
  else
  {
    this.getBaseRecord().matchListeners(this.getCurrentRecord(), false, true, true, true, true);      // Clone the listeners that are not there already.
    this.getCurrentRecord().remove();
  }
}
/**

代码示例来源:origin: org.jbundle.base/org.jbundle.base.mixed

/**
 * Delete this record (Always called from the record class).
 * Always override this method.
 * @exception DBException File exception.
 */
public void remove() throws DBException
{
  if (this.getCurrentRecord() == this.getBaseRecord())
    super.remove();
  else
  {
    this.getBaseRecord().matchListeners(this.getCurrentRecord(), false, true, true, true, true);      // Clone the listeners that are not there already.
    this.getCurrentRecord().remove();
  }
}
/**

代码示例来源:origin: org.jbundle.base/org.jbundle.base.mixed

if (DBConstants.TRUE.equals(record.getTable().getProperty(DBParams.SUPRESSREMOTEDBMESSAGES)))
  record.setSupressRemoteMessages(true);
record.remove();

代码示例来源:origin: org.jbundle.base/org.jbundle.base

/**
 * Delete this record (Always called from the record class).
 * Always override this method.
 * @exception DBException File exception.
 */
public void remove() throws DBException
{
  if (this.getCurrentRecord() == this.getBaseRecord())
    super.remove();
  else
  {
    this.getBaseRecord().matchListeners(this.getCurrentRecord(), false, true, true, true, true);      // Clone the listeners that are not there already.
    this.getCurrentRecord().remove();
  }
}
/**

代码示例来源:origin: com.tourapp.tour/com.tourapp.tour.acctrec.screen

/**
 * Remove this batch detail transaction and the distribution.
 * @return true if successful.
 */
public boolean removeDetailTrx()
{
  // Step 3 - Delete the batch (if not recurring)
  Record recBankTrxBatchDetail = this.getDetailRecord();
  Record recBankTrxBatchDist = this.getDistRecord();
  recBankTrxBatchDist.close();
  try   {
    while (recBankTrxBatchDist.hasNext())
    {
      recBankTrxBatchDist.next();
      recBankTrxBatchDist.edit();
      recBankTrxBatchDist.remove();
    }
    // Don't remove the detail trx as it is not in a batch.
  } catch (DBException ex) {
    ex.printStackTrace();
    return false;
  }
  return true;
}
/**

代码示例来源:origin: org.jbundle.base.screen/org.jbundle.base.screen.model

/**
 * Process the "Delete" toolbar command.
 * @return  true    If command was handled
 */
public boolean onDelete()
{
  Record record = this.getMainRecord();
  if (record == null)
    return false;
  if (record.getEditMode() == Constants.EDIT_NONE)
    return true;
  if (record.getEditMode() == Constants.EDIT_ADD)
  {   // If they're adding, can't delete nothing!
    this.onRefresh();
    return true;
  }
  try {
    if (record.getEditMode() != Constants.EDIT_IN_PROGRESS)
      record.edit();
    record.remove();
    record.addNew();
    this.clearStatusText();
  } catch(DBException ex) {
    this.displayError(ex);
    return false;
  }
  return true;
}
/**

代码示例来源:origin: org.jbundle.base/org.jbundle.base.mixed

/**
 * Process the "Delete" toolbar command.
 * @return  true    If command was handled
 */
public boolean onDelete()
{
  Record record = this.getMainRecord();
  if (record == null)
    return false;
  if (record.getEditMode() == Constants.EDIT_NONE)
    return true;
  if (record.getEditMode() == Constants.EDIT_ADD)
  {   // If they're adding, can't delete nothing!
    this.onRefresh();
    return true;
  }
  try {
    if (record.getEditMode() != Constants.EDIT_IN_PROGRESS)
      record.edit();
    record.remove();
    record.addNew();
    this.clearStatusText();
  } catch(DBException ex) {
    this.displayError(ex);
    return false;
  }
  return true;
}
/**

代码示例来源:origin: com.tourapp.tour/com.tourapp.tour.request.report

/**
 * UpdateHistoryDetail Method.
 */
public void updateHistoryDetail(Record recRequestDetail, Record recRequestHistoryDetail, Record recRequest)
{
  try   {
    recRequestDetail.close();
    while (recRequestDetail.hasNext())
    {
      recRequestDetail.next();
      recRequestDetail.edit();
  
      recRequestHistoryDetail.addNew();
      recRequestHistoryDetail.moveFields(recRequestDetail, Record.MOVE_BY_NAME, true, DBConstants.SCREEN_MOVE, true, false, false, false);   // Move all fields to the history record
      recRequestHistoryDetail.getField(RequestHistoryDetail.PROFILE_ID).moveFieldToThis(recRequest.getField(Request.PROFILE_ID));
      recRequestHistoryDetail.add();  
  
      recRequestDetail.remove();
    }
  } catch (DBException ex)    {
    ex.printStackTrace();
  }
}

代码示例来源:origin: com.tourgeek.tour/com.tourgeek.tour.request.report

/**
 * UpdateHistoryDetail Method.
 */
public void updateHistoryDetail(Record recRequestDetail, Record recRequestHistoryDetail, Record recRequest)
{
  try   {
    recRequestDetail.close();
    while (recRequestDetail.hasNext())
    {
      recRequestDetail.next();
      recRequestDetail.edit();
  
      recRequestHistoryDetail.addNew();
      recRequestHistoryDetail.moveFields(recRequestDetail, Record.MOVE_BY_NAME, true, DBConstants.SCREEN_MOVE, true, false, false, false);   // Move all fields to the history record
      recRequestHistoryDetail.getField(RequestHistoryDetail.PROFILE_ID).moveFieldToThis(recRequest.getField(Request.PROFILE_ID));
      recRequestHistoryDetail.add();  
  
      recRequestDetail.remove();
    }
  } catch (DBException ex)    {
    ex.printStackTrace();
  }
}

代码示例来源:origin: org.jbundle.base/org.jbundle.base

m_recDependent.remove();

代码示例来源:origin: org.jbundle.base.db/org.jbundle.base.db

m_recDependent.remove();

代码示例来源:origin: com.tourapp.tour/com.tourapp.tour.request.report

recRequest.remove();

代码示例来源:origin: com.tourgeek.tour/com.tourgeek.tour.request.report

recRequest.remove();

代码示例来源:origin: com.tourgeek.tour/com.tourgeek.tour.product.screen

recInventory.getField(Inventory.CLOSED).moveFieldToThis(this.getScreenRecord().getField(ProductScreenRecord.CLOSED));
if (this.getScreenRecord().getField(ProductScreenRecord.DELETE).getState())
  recInventory.remove();
else
  recInventory.set();

代码示例来源:origin: com.tourapp.tour/com.tourapp.tour.product.screen

recInventory.getField(Inventory.CLOSED).moveFieldToThis(this.getScreenRecord().getField(ProductScreenRecord.CLOSED));
if (this.getScreenRecord().getField(ProductScreenRecord.DELETE).getState())
  recInventory.remove();
else
  recInventory.set();

代码示例来源:origin: com.tourapp.tour/com.tourapp.tour.acctpay.screen

recPaymentRequest.getField(PaymentRequest.VENDOR_ID).moveFieldToThis(recVendor.getField(Vendor.ID));
if (recPaymentRequest.seek("="))
  recPaymentRequest.remove();
if (dTotal != 0)

相关文章

微信公众号

最新文章

更多

Record类方法