org.jbundle.thin.base.db.FieldList.addKeyArea()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(1.1k)|赞(0)|评价(0)|浏览(117)

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

FieldList.addKeyArea介绍

[英]Add this key area to this record.
[中]将此关键区域添加到此记录。

代码示例

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

/**
 * Initialize the class.
 * @param record The parent record.
 * @param iKeyDup The type of key (UNIQUE/NOT_UNIQUE/SECONDARY).
 * @param strKeyName The name of this key (default to first fieldnameKEY).
 */
public void init(Rec record, int iKeyDup, String strKeyName)
{
  m_vKeyFieldList = new Vector<Object>();
  m_record = (FieldList)record;
  m_iKeyDup = iKeyDup;
  m_strKeyName = strKeyName;
  if (m_record != null)
    m_record.addKeyArea(this);
  if (strKeyName != null)
    m_strKeyName = strKeyName;
  else
  {
    if (m_record != null) if (m_record.getKeyAreaCount() == 1)
      m_strKeyName = Constants.PRIMARY_KEY; // Default Primary key name
  }
}
/**

代码示例来源:origin: com.tourgeek.thin.app/com.tourgeek.thin.app.booking

recBooking.addKeyArea(keyArea);
  this.addFieldList(recBooking);  // This gives me the virtual fields also.
} catch (Exception ex)    {

相关文章