本文整理了Java中org.jbundle.thin.base.db.FieldList.addKeyArea()
方法的一些代码示例,展示了FieldList.addKeyArea()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。FieldList.addKeyArea()
方法的具体详情如下:
包路径:org.jbundle.thin.base.db.FieldList
类名称: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) {
内容来源于网络,如有侵权,请联系作者删除!