org.jbundle.model.db.Field.initField()方法的使用及代码示例

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

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

Field.initField介绍

暂无

代码示例

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

/**
 * Move the data source buffer to all the fields.
 *  <p /><pre>
 *  Make sure you do the following steps:
 *  1) Move the data fields to the correct record data fields, with mode Constants.READ_MOVE.
 *  2) Set the data source or set to null, so I can cache the source if necessary.
 *  3) Save the objectID if it is not an Integer type, so I can serialize the source of this object.
 *  </pre>
 * @exception Exception File exception.
 * @return Any error encountered moving the data.
 */
public int dataToFields(Rec record) throws DBException
{
  int iFieldCount = record.getFieldCount();      // Number of fields to read in
  for (int iFieldSeq = Constants.MAIN_FIELD; iFieldSeq < iFieldCount + Constants.MAIN_FIELD; iFieldSeq++)
  {
    Field field = record.getField(iFieldSeq);
    if (field.isVirtual()) //x|| (!field.isSelected()))
      field.initField(Constants.DONT_DISPLAY);
    else
      this.dataToField(field);
  }
  return Constants.NORMAL_RETURN;
}
/**

代码示例来源:origin: com.tourapp.tour/com.tourapp.tour.booking.entry

if (field != null)
  if (field.getField() != null)
    field.getField().initField(true);

代码示例来源:origin: com.tourgeek.tour/com.tourgeek.tour.product.db

m_recBooking.getField(BookingModel.TOUR_ID).initField(DBConstants.DISPLAY);
  m_recBooking.getField(BookingModel.FINAL_PAYMENT_DUE_DATE).initField(DBConstants.DISPLAY);
  m_recBooking.getField(BookingModel.DEPOSIT_DUE_DATE).initField(DBConstants.DISPLAY);
  m_recBooking.getField(BookingModel.BOOKING_STATUS_ID).initField(DBConstants.DISPLAY);
} catch (DBException e)   {
  System.out.println(e.getMessage());

代码示例来源:origin: com.tourapp.tour/com.tourapp.tour.product.db

m_recBooking.getField(BookingModel.TOUR_ID).initField(DBConstants.DISPLAY);
  m_recBooking.getField(BookingModel.FINAL_PAYMENT_DUE_DATE).initField(DBConstants.DISPLAY);
  m_recBooking.getField(BookingModel.DEPOSIT_DUE_DATE).initField(DBConstants.DISPLAY);
  m_recBooking.getField(BookingModel.BOOKING_STATUS_ID).initField(DBConstants.DISPLAY);
} catch (DBException e)   {
  System.out.println(e.getMessage());

相关文章