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

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

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

Record.isRefreshedRecord介绍

[英]Is this a new - refreshed record?
[中]这是新刷新的记录吗?

代码示例

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

/**
 * Is this record soft deleted?
 * Override this to decide whether to soft delete or physically delete the record.
 */
public boolean isRecordSoftDeleted()
{
  if (m_fldDeleteFlag == null)
    return false;
  if (this.getOwner().isRefreshedRecord())
    return false;   // By default, if this is a brand new record, just delete it.
  return m_fldDeleteFlag.getState();
}
/**

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

/**
 * Is this record soft deleted?
 * Override this to decide whether to soft delete or physically delete the record.
 */
public boolean isRecordSoftDeleted()
{
  if (m_fldDeleteFlag == null)
    return false;
  if (this.getOwner().isRefreshedRecord())
    return false;   // By default, if this is a brand new record, just delete it.
  return m_fldDeleteFlag.getState();
}
/**

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

/**
 * Is this record soft deleted?
 * Override this to decide whether to soft delete or physically delete the record.
 */
public boolean isRecordSoftDeleted()
{
  if (m_fldDeleteFlag == null)
    return false;
  if (this.getOwner().isRefreshedRecord())
    return false;   // By default, if this is a brand new record, just delete it.
  return m_fldDeleteFlag.getState();
}
/**

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

/**
 * Add this record (Always called from the record class).
 * @exception DBException File exception.
 */
public void add(Rec fieldList) throws DBException
{
  Record record = (Record)fieldList;
  if (((this.getRecord().getOpenMode() & DBConstants.OPEN_REFRESH_AND_LOCK_ON_CHANGE_STRATEGY) != DBConstants.OPEN_REFRESH_AND_LOCK_ON_CHANGE_STRATEGY)
    || (record.isRefreshedRecord()))
      this.restoreMainRecord(record, true);
  super.add(record);
}
/**

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

/**
 * Add this record (Always called from the record class).
 * @exception DBException File exception.
 */
public void add(Rec fieldList) throws DBException
{
  Record record = (Record)fieldList;
  if (((this.getRecord().getOpenMode() & DBConstants.OPEN_REFRESH_AND_LOCK_ON_CHANGE_STRATEGY) != DBConstants.OPEN_REFRESH_AND_LOCK_ON_CHANGE_STRATEGY)
    || (record.isRefreshedRecord()))
      this.restoreMainRecord(record, true);
  super.add(record);
}
/**

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

/**
 * Add this record (Always called from the record class).
 * @exception DBException File exception.
 */
public void add(Rec fieldList) throws DBException
{
  Record record = (Record)fieldList;
  if (((this.getRecord().getOpenMode() & DBConstants.OPEN_REFRESH_AND_LOCK_ON_CHANGE_STRATEGY) != DBConstants.OPEN_REFRESH_AND_LOCK_ON_CHANGE_STRATEGY)
    || (record.isRefreshedRecord()))
      this.restoreMainRecord(record, true);
  super.add(record);
}
/**

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

boolean bRefreshed = true;
if ((this.getRecord().getOpenMode() & DBConstants.OPEN_REFRESH_AND_LOCK_ON_CHANGE_STRATEGY) == DBConstants.OPEN_REFRESH_AND_LOCK_ON_CHANGE_STRATEGY)
  bRefreshed = record.isRefreshedRecord();    // Only do this on the second write
super.add(record);
if (bRefreshed)

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

boolean bRefreshed = true;
if ((this.getRecord().getOpenMode() & DBConstants.OPEN_REFRESH_AND_LOCK_ON_CHANGE_STRATEGY) == DBConstants.OPEN_REFRESH_AND_LOCK_ON_CHANGE_STRATEGY)
  bRefreshed = record.isRefreshedRecord();    // Only do this on the second write
super.add(record);
if (bRefreshed)

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

boolean bRefreshed = true;
if ((this.getRecord().getOpenMode() & DBConstants.OPEN_REFRESH_AND_LOCK_ON_CHANGE_STRATEGY) == DBConstants.OPEN_REFRESH_AND_LOCK_ON_CHANGE_STRATEGY)
  bRefreshed = record.isRefreshedRecord();    // Only do this on the second write
super.add(record);
if (bRefreshed)

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

/**
 * Process the Refresh Command.
 * @return true if successful.
 */
public boolean onRefresh()
{
  Record record = this.getMainRecord();
  if (record == null)
    return false;
  try
  {
    if (record.getEditMode() == Constants.EDIT_IN_PROGRESS)
    {   // If they're adding, can't delete nothing!
      if (record.isRefreshedRecord())
        return this.onDelete();
      Object bookmark = record.getHandle(DBConstants.BOOKMARK_HANDLE);
      record.setHandle(bookmark, DBConstants.BOOKMARK_HANDLE);
    }
    if (record.getEditMode() == Constants.EDIT_ADD)
      record.addNew();
    this.clearStatusText();
  } catch (DBException ex) {
    this.displayError(ex);
    return false;
  }
  return true;
}
/**

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

/**
 * Process the Refresh Command.
 * @return true if successful.
 */
public boolean onRefresh()
{
  Record record = this.getMainRecord();
  if (record == null)
    return false;
  try
  {
    if (record.getEditMode() == Constants.EDIT_IN_PROGRESS)
    {   // If they're adding, can't delete nothing!
      if (record.isRefreshedRecord())
        return this.onDelete();
      Object bookmark = record.getHandle(DBConstants.BOOKMARK_HANDLE);
      record.setHandle(bookmark, DBConstants.BOOKMARK_HANDLE);
    }
    if (record.getEditMode() == Constants.EDIT_ADD)
      record.addNew();
    this.clearStatusText();
  } catch (DBException ex) {
    this.displayError(ex);
    return false;
  }
  return true;
}
/**

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

if (!this.getOwner().isRefreshedRecord())
  break;  // No first add
bSetIfModified = false;

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

if (!this.getOwner().isRefreshedRecord())
  break;  // No first add
bSetIfModified = false;

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

|| ((iChangeType == DBConstants.FIELD_CHANGED_TYPE) && m_bNoModify))
if (((this.getOwner().getEditMode() & DBConstants.EDIT_ADD) != DBConstants.EDIT_ADD)
  && (!this.getOwner().isRefreshedRecord()))

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

if (!this.getOwner().isRefreshedRecord())
  break;  // No first add
bSetIfModified = false;

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

|| ((iChangeType == DBConstants.FIELD_CHANGED_TYPE) && m_bNoModify))
if (((this.getOwner().getEditMode() & DBConstants.EDIT_ADD) != DBConstants.EDIT_ADD)
  && (!this.getOwner().isRefreshedRecord()))

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

|| ((iChangeType == DBConstants.FIELD_CHANGED_TYPE) && m_bNoModify))
if (((this.getOwner().getEditMode() & DBConstants.EDIT_ADD) != DBConstants.EDIT_ADD)
  && (!this.getOwner().isRefreshedRecord()))

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

if (!this.getOwner().isRefreshedRecord())
    break;  // No first add
case DBConstants.ADD_TYPE:

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

if (!this.getOwner().isRefreshedRecord())
    break;  // No first add
case DBConstants.ADD_TYPE:

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

m_bIsRefreshedRecord = record.isRefreshedRecord();

相关文章

微信公众号

最新文章

更多

Record类方法