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

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

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

Record.readSameRecord介绍

[英]Read the record in this BaseTable.

Note: If the recordCurrent has an edit in progress, it is not updated first, so you should update the current record if you want the new record to show the updates.
Note: Be careful of concurrency issues... Use OnSelectHandler to update from one screen to another.
[中]读取此基表中的记录。
注意:如果recordCurrent正在进行编辑,则不会首先更新它,因此如果希望新记录显示更新,则应更新当前记录。
注意:小心并发问题。。。使用OnSelectHandler从一个屏幕更新到另一个屏幕。

代码示例

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

/**
   * Read the mirrored record.
   * @param tblTarget The table to read the same record from.
   * @param recSource Source record
   * @return The target table's record.
   */
  public Record syncTables(BaseTable tblTarget, Record recSource) throws DBException
  {
    tblTarget.getRecord().readSameRecord(recSource, false, false);
    return tblTarget.getRecord();
  }
}

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

/**
   * Read the mirrored record.
   * @param tblTarget The table to read the same record from.
   * @param recSource Source record
   * @return The target table's record.
   */
  public Record syncTables(BaseTable tblTarget, Record recSource) throws DBException
  {
    tblTarget.getRecord().readSameRecord(recSource, false, false);
    return tblTarget.getRecord();
  }
}

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

/**
   * Read the mirrored record.
   * @param tblTarget The table to read the same record from.
   * @param recSource Source record
   * @return The target table's record.
   */
  public Record syncTables(BaseTable tblTarget, Record recSource) throws DBException
  {
    tblTarget.getRecord().readSameRecord(recSource, false, false);
    return tblTarget.getRecord();
  }
}

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

e.printStackTrace();
record.readSameRecord(this.getMainRecord(), false, false);

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

bRefreshIfChanged = true;    // If I use the same window, I will free this record, so no need to refresh
if ((record.getEditMode() == Constants.EDIT_CURRENT) || (record.getEditMode() == Constants.EDIT_IN_PROGRESS))
  recordNew.readSameRecord(record, true, bRefreshIfChanged);
else
  recordNew.addNew();

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

try {
  recTourOrOption = (Record)recTourOrOption.clone();
  recTourOrOption.readSameRecord(fldTourOrOptionID.getReferenceRecord(), false, true);
} catch (CloneNotSupportedException ex) {
  ex.printStackTrace();

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

try {
  recTourOrOption = (Record)recTourOrOption.clone();
  recTourOrOption.readSameRecord(fldTourOrOptionID.getReferenceRecord(), false, true);
} catch (CloneNotSupportedException ex) {
  ex.printStackTrace();

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

if (this.getScreen().getParentScreen() == parent)
      bRefreshIfChanged = false;  // Since the screen (and record) will be closed, only need to write record
recordNew.readSameRecord(recordCurrent, true, bRefreshIfChanged);  // Write if it is changed

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

if (this.getScreen().getParentScreen() == parent)
      bRefreshIfChanged = false;  // Since the screen (and record) will be closed, only need to write record
recordNew.readSameRecord(recordCurrent, true, bRefreshIfChanged);  // Write if it is changed

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

if (this.getRecordOwner().getParentRecordOwner() == parent)
      bRefreshIfChanged = false;  // Since the screen (and record) will be closed, only need to write record
recordNew.readSameRecord(recordCurrent, true, bRefreshIfChanged);  // Write if it is changed

相关文章

微信公众号

最新文章

更多

Record类方法