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

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

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

FieldList.getKeyName介绍

[英]Get the name of the current key. Note: This is a convience method, the current KeyArea's name is returned.
[中]获取当前密钥的名称。注意:这是一种方便的方法,返回当前KeyArea的名称。

代码示例

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

/**
 * Reposition to this record using this bookmark.
 * @param bookmark The handle to use to position the record.
 * @param iHandleType The type of handle (DATA_SOURCE/OBJECT_ID,OBJECT_SOURCE,BOOKMARK).
 * @return  - true - record found/false - record not found
 * @exception FILE_NOT_OPEN.
 * @exception DBException File exception.
 */
public boolean doSetHandle(Object bookmark, int iHandleType) throws DBException
{
  String strCurrentOrder = this.getRecord().getKeyName();
  this.getRecord().setKeyArea(Constants.PRIMARY_KEY);
  this.getRecord().getCounterField().setData(bookmark);
  boolean bSuccess = this.seek(Constants.EQUALS);
  this.getRecord().setKeyArea(strCurrentOrder);
  return bSuccess;
}
/**

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

String strKeyName = record.getKeyName();
record.setKeyName(Constants.PRIMARY_KEY);
boolean bSuccess = record.getTable().seek(null);

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

String strOldKeyArea = recBooking.getKeyName();
recBooking.setKeyArea(strKeyField);
bSuccess = recBooking.getTable().seek(Constants.EQUALS);

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

String strOldKey = this.getKeyName();
this.setKeyName(Constants.PRIMARY_KEY);
this.getCounterField().setData(bookmark);
if (iChangeType != Constants.AFTER_DELETE_TYPE)
  String strOldKey = this.getKeyName();
  this.setKeyName(Constants.PRIMARY_KEY);
  this.getCounterField().setData(bookmark);

相关文章