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

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

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

Record.setModified介绍

[英]Restore the field's modified status to this.
[中]将字段的修改状态恢复到此状态。

代码示例

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

this.edit();        // Lock this record
this.setEditMode(this.getEditMode() | DBConstants.EDIT_REFRESHED);  // Special Mode
this.setModified(rgbModified);  // This is required, so any file listeners looking for a modified field on add will see this modified field
this.setEnableNonFilter(rgobjEnabledFields, false, false, false, false, false);   // Re-enable all file behaviors
rgobjEnabledFields = null;

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

this.edit();        // Lock this record
this.setEditMode(this.getEditMode() | DBConstants.EDIT_REFRESHED);  // Special Mode
this.setModified(rgbModified);  // This is required, so any file listeners looking for a modified field on add will see this modified field
this.setEnableNonFilter(rgobjEnabledFields, false, false, false, false, false);   // Re-enable all file behaviors
rgobjEnabledFields = null;

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

this.edit();        // Lock this record
this.setEditMode(this.getEditMode() | DBConstants.EDIT_REFRESHED);  // Special Mode
this.setModified(rgbModified);  // This is required, so any file listeners looking for a modified field on add will see this modified field
this.setEnableNonFilter(rgobjEnabledFields, false, false, false, false, false);   // Re-enable all file behaviors
rgobjEnabledFields = null;

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

/**
 * Adding a file listener to the chain.
 * This just gives the table an ability to respond to listeners being added.
 * @param record TODO
 * @param listener The filter or listener to add to the chain.
 */
public void addListener(Record record, FileListener listener)
{
  record.doAddListener(listener);
  boolean bOldState = listener.setEnabledListener(false);      // To disable recursive forever loop!
  BaseListener nextListener = listener.setNextListener(null);     // Make sure this is the ONLY listener in the chain to get this call
  if (record.getEditMode() == Constants.EDIT_ADD)
  {
    boolean[] rgbModified = this.getRecord().getModified();
    listener.doNewRecord(DBConstants.DISPLAY);
    this.getRecord().setModified(rgbModified);   // Restore since doNew should not change modified fields.
  }
  else if ((record.getEditMode() == Constants.EDIT_IN_PROGRESS) || (record.getEditMode() == Constants.EDIT_CURRENT))
    listener.doValidRecord(DBConstants.DISPLAY);
  listener.setNextListener(nextListener);
  listener.setEnabledListener(bOldState);   // Renable the listener to eliminate echos
}
/**

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

/**
 * Adding a file listener to the chain.
 * This just gives the table an ability to respond to listeners being added.
 * @param record TODO
 * @param listener The filter or listener to add to the chain.
 */
public void addListener(Record record, FileListener listener)
{
  record.doAddListener(listener);
  boolean bOldState = listener.setEnabledListener(false);      // To disable recursive forever loop!
  BaseListener nextListener = listener.setNextListener(null);     // Make sure this is the ONLY listener in the chain to get this call
  if (record.getEditMode() == Constants.EDIT_ADD)
  {
    boolean[] rgbModified = this.getRecord().getModified();
    listener.doNewRecord(DBConstants.DISPLAY);
    this.getRecord().setModified(rgbModified);   // Restore since doNew should not change modified fields.
  }
  else if ((record.getEditMode() == Constants.EDIT_IN_PROGRESS) || (record.getEditMode() == Constants.EDIT_CURRENT))
    listener.doValidRecord(DBConstants.DISPLAY);
  listener.setNextListener(nextListener);
  listener.setEnabledListener(bOldState);   // Renable the listener to eliminate echos
}
/**

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

/**
 * Adding a file listener to the chain.
 * This just gives the table an ability to respond to listeners being added.
 * @param record TODO
 * @param listener The filter or listener to add to the chain.
 */
public void addListener(Record record, FileListener listener)
{
  record.doAddListener(listener);
  boolean bOldState = listener.setEnabledListener(false);      // To disable recursive forever loop!
  BaseListener nextListener = listener.setNextListener(null);     // Make sure this is the ONLY listener in the chain to get this call
  if (record.getEditMode() == Constants.EDIT_ADD)
  {
    boolean[] rgbModified = this.getRecord().getModified();
    listener.doNewRecord(DBConstants.DISPLAY);
    this.getRecord().setModified(rgbModified);   // Restore since doNew should not change modified fields.
  }
  else if ((record.getEditMode() == Constants.EDIT_IN_PROGRESS) || (record.getEditMode() == Constants.EDIT_CURRENT))
    listener.doValidRecord(DBConstants.DISPLAY);
  listener.setNextListener(nextListener);
  listener.setEnabledListener(bOldState);   // Renable the listener to eliminate echos
}
/**

相关文章

微信公众号

最新文章

更多

Record类方法