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

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

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

Record.matchListeners介绍

[英]Clone the record behaviors of this table and add them to newTable.
[中]克隆此表的记录行为并将其添加到newTable。

代码示例

代码示例来源: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.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

/**
 * 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

this.matchListeners(record, true, true, false, true, true);
return record;

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

this.matchListeners(record, true, true, false, true, true);
return record;

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

this.matchListeners(record, true, true, false, true, true);
return record;

代码示例来源: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
{
  if (this.getBaseRecord() == fieldList)    // If so, set the correct record for write
    fieldList = this.moveToCurrentRecord((Record)fieldList);   // Hopefully, they supplied a default record type and this will switch it.
  if (fieldList == null)
    throw new DBException("Unknown shared record type");
  if (fieldList == this.getBaseRecord())
    super.add(fieldList);
  else
  {
    this.getBaseRecord().matchListeners((Record)fieldList, false, true, true, true, true);      // Clone the listeners that are not there already.
    fieldList.getTable().add(fieldList);
  }
}
/**

代码示例来源: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
{
  if (this.getBaseRecord() == fieldList)    // If so, set the correct record for write
    fieldList = this.moveToCurrentRecord((Record)fieldList);   // Hopefully, they supplied a default record type and this will switch it.
  if (fieldList == null)
    throw new DBException("Unknown shared record type");
  if (fieldList == this.getBaseRecord())
    super.add(fieldList);
  else
  {
    this.getBaseRecord().matchListeners((Record)fieldList, false, true, true, true, true);      // Clone the listeners that are not there already.
    fieldList.getTable().add(fieldList);
  }
}
/**

代码示例来源: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
{
  if (this.getBaseRecord() == fieldList)    // If so, set the correct record for write
    fieldList = this.moveToCurrentRecord((Record)fieldList);   // Hopefully, they supplied a default record type and this will switch it.
  if (fieldList == null)
    throw new DBException("Unknown shared record type");
  if (fieldList == this.getBaseRecord())
    super.add(fieldList);
  else
  {
    this.getBaseRecord().matchListeners((Record)fieldList, false, true, true, true, true);      // Clone the listeners that are not there already.
    fieldList.getTable().add(fieldList);
  }
}
/**

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

/**
 * Create/Clear the current object (Always called from the record class).
 * @exception DBException File exception.
 */
public void addNew() throws DBException
{
  super.addNew();
  Record recCurrent = this.moveToCurrentRecord(null);   // Perhaps, they supplied a default record type and this will switch it.
  if ((recCurrent != null) && (this.getBaseRecord() != recCurrent))
    recCurrent.handleNewRecord(); // Display Fields and do Add behaviors on correct record
  else if ((this.getCurrentRecord() != null) && (this.getCurrentRecord() != this.getBaseRecord()))
  {
    this.getBaseRecord().matchListeners(this.getCurrentRecord(), false, true, true, true, true);      // Clone the listeners that are not there already.
    this.getCurrentRecord().addNew();
  }
}
/**

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

/**
 * Create/Clear the current object (Always called from the record class).
 * @exception DBException File exception.
 */
public void addNew() throws DBException
{
  super.addNew();
  Record recCurrent = this.moveToCurrentRecord(null);   // Perhaps, they supplied a default record type and this will switch it.
  if ((recCurrent != null) && (this.getBaseRecord() != recCurrent))
    recCurrent.handleNewRecord(); // Display Fields and do Add behaviors on correct record
  else if ((this.getCurrentRecord() != null) && (this.getCurrentRecord() != this.getBaseRecord()))
  {
    this.getBaseRecord().matchListeners(this.getCurrentRecord(), false, true, true, true, true);      // Clone the listeners that are not there already.
    this.getCurrentRecord().addNew();
  }
}
/**

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

/**
 * Create/Clear the current object (Always called from the record class).
 * @exception DBException File exception.
 */
public void addNew() throws DBException
{
  super.addNew();
  Record recCurrent = this.moveToCurrentRecord(null);   // Perhaps, they supplied a default record type and this will switch it.
  if ((recCurrent != null) && (this.getBaseRecord() != recCurrent))
    recCurrent.handleNewRecord(); // Display Fields and do Add behaviors on correct record
  else if ((this.getCurrentRecord() != null) && (this.getCurrentRecord() != this.getBaseRecord()))
  {
    this.getBaseRecord().matchListeners(this.getCurrentRecord(), false, true, true, true, true);      // Clone the listeners that are not there already.
    this.getCurrentRecord().addNew();
  }
}
/**

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

/**
 * Update this record (Always called from the record class).
 * @exception DBException File exception.
 */
public void set(Rec fieldList) throws DBException
{
  Record recBase = this.getBaseRecord();
  Record recCurrent = this.getCurrentRecord();
  if (fieldList != recBase)
  {
    if (fieldList != recCurrent)
      throw new DBException("Can't change record class then add");
  }
  else
  {
    if (recBase != recCurrent)
      if (recCurrent.isModified())
        this.copyRecordInfo(recBase, recCurrent, false, true);
    fieldList = this.moveToCurrentRecord((Record)fieldList);
  }
  if (fieldList != recBase)
  {
    this.getBaseRecord().matchListeners(this.getCurrentRecord(), false, true, true, true, true);      // Clone the listeners that are not there already.
    fieldList.getTable().set(fieldList);
  }
  else
    super.set(fieldList);   // Never (hopefully)
  // Note, since target record is passed, add listeners are called on the correct record
}
/**

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

/**
 * Update this record (Always called from the record class).
 * @exception DBException File exception.
 */
public void set(Rec fieldList) throws DBException
{
  Record recBase = this.getBaseRecord();
  Record recCurrent = this.getCurrentRecord();
  if (fieldList != recBase)
  {
    if (fieldList != recCurrent)
      throw new DBException("Can't change record class then add");
  }
  else
  {
    if (recBase != recCurrent)
      if (recCurrent.isModified())
        this.copyRecordInfo(recBase, recCurrent, false, true);
    fieldList = this.moveToCurrentRecord((Record)fieldList);
  }
  if (fieldList != recBase)
  {
    this.getBaseRecord().matchListeners(this.getCurrentRecord(), false, true, true, true, true);      // Clone the listeners that are not there already.
    fieldList.getTable().set(fieldList);
  }
  else
    super.set(fieldList);   // Never (hopefully)
  // Note, since target record is passed, add listeners are called on the correct record
}
/**

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

/**
 * Update this record (Always called from the record class).
 * @exception DBException File exception.
 */
public void set(Rec fieldList) throws DBException
{
  Record recBase = this.getBaseRecord();
  Record recCurrent = this.getCurrentRecord();
  if (fieldList != recBase)
  {
    if (fieldList != recCurrent)
      throw new DBException("Can't change record class then add");
  }
  else
  {
    if (recBase != recCurrent)
      if (recCurrent.isModified())
        this.copyRecordInfo(recBase, recCurrent, false, true);
    fieldList = this.moveToCurrentRecord((Record)fieldList);
  }
  if (fieldList != recBase)
  {
    this.getBaseRecord().matchListeners(this.getCurrentRecord(), false, true, true, true, true);      // Clone the listeners that are not there already.
    fieldList.getTable().set(fieldList);
  }
  else
    super.set(fieldList);   // Never (hopefully)
  // Note, since target record is passed, add listeners are called on the correct record
}
/**

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

recBase.matchListeners(recCurrent, true, true, true, true, true);      // Clone the listeners that are not there already.

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

recBase.matchListeners(recCurrent, true, true, true, true, true);      // Clone the listeners that are not there already.

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

boolean bSyncReferenceFields = false;
boolean bMatchSelectedState = true;
this.matchListeners(this.getTable().getCurrentTable().getRecord(), bCloneListeners, bMatchEnabledState, bSyncReferenceFields, bMatchSelectedState, true);

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

recBase.matchListeners(recCurrent, true, true, true, true, true);      // Clone the listeners that are not there already.

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

boolean bSyncReferenceFields = false;
boolean bMatchSelectedState = true;
this.matchListeners(this.getTable().getCurrentTable().getRecord(), bCloneListeners, bMatchEnabledState, bSyncReferenceFields, bMatchSelectedState, true);

相关文章

微信公众号

最新文章

更多

Record类方法