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

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

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

Field.isNull介绍

暂无

代码示例

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

if ((recProduct != null) && (!recProduct.getField(Product.ETD).isNull()))

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

if ((recProduct != null) && (!recProduct.getField(Product.ETD).isNull()))

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

if (recProfile == null)
  if (recBooking.getField(BookingModel.EMAIL).isNull())
    return this.getTask().setLastError(this.getTask().getString("No email address in booking"));
  else

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

if (recProfile == null)
  if (recBooking.getField(BookingModel.EMAIL).isNull())
    return this.getTask().setLastError(this.getTask().getString("No email address in booking"));
  else

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

if (!recUserInfo.getField(UserInfoModel.USER_NAME).isNull())
  this.setProperty(DBParams.USER_NAME, recUserInfo.getField(UserInfoModel.USER_NAME).toString());
if (properties != null)
  if (!recUserInfo.getField(UserInfoModel.USER_NAME).isNull())
    properties.put(DBParams.USER_NAME, recUserInfo.getField(UserInfoModel.USER_NAME).toString());
  if (this.getProperty(DBParams.AUTH_TOKEN) != null)

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

if (this.getScreenField().getConverter() != null)
  if (this.getScreenField().getConverter().getField() != null)
    if (!this.getScreenField().getConverter().getField().isNull())

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

/**
 * Move from the target field to this field
 * If this field is unmodified and the target is not null.
 * @param recTarget The source record
 * @param iDetailField The destinatation field in BookingDetail
 * @param iTargetField The source field.
 * @return true If the field was changed.
 */
public boolean moveTargetField(Rec recTarget, String iDetailField, String iTargetField)
{
  if (!this.getField(iDetailField).isModified()) if (!recTarget.getField(iTargetField).isNull())
  {
    FieldListener listener = this.getField(iDetailField).getListener(InitOnceFieldHandler.class);
    boolean bOldState = false;
    if (listener != null)
      bOldState = listener.setEnabledListener(false);
    this.getField(iDetailField).moveFieldToThis((BaseField)recTarget.getField(iTargetField), DBConstants.DISPLAY, DBConstants.INIT_MOVE);
    if (listener != null)
      listener.setEnabledListener(bOldState);
    return true;
  }
  return false;
}
/**

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

/**
 * Move from the target field to this field
 * If this field is unmodified and the target is not null.
 * @param recTarget The source record
 * @param iDetailField The destinatation field in BookingDetail
 * @param iTargetField The source field.
 * @return true If the field was changed.
 */
public boolean moveTargetField(Rec recTarget, String iDetailField, String iTargetField)
{
  if (!this.getField(iDetailField).isModified()) if (!recTarget.getField(iTargetField).isNull())
  {
    FieldListener listener = this.getField(iDetailField).getListener(InitOnceFieldHandler.class);
    boolean bOldState = false;
    if (listener != null)
      bOldState = listener.setEnabledListener(false);
    this.getField(iDetailField).moveFieldToThis((BaseField)recTarget.getField(iTargetField), DBConstants.DISPLAY, DBConstants.INIT_MOVE);
    if (listener != null)
      listener.setEnabledListener(bOldState);
    return true;
  }
  return false;
}
/**

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

/**
 * When a new record is set up and you have the booking and tour
 * records, init the detail fields.
 */
public int initBookingDetailFields(BookingModel recBooking, TourModel recTour, boolean bOnlyIfTargetIsNull)
{
  int iErrorCode = super.initBookingDetailFields(recBooking, recTour, bOnlyIfTargetIsNull);
  int iNights = 1;
  if (this.getRecordOwner() != null)
    if (this.getRecordOwner().getRecord(BookingControl.BOOKING_CONTROL_FILE) != null)
      if (!this.getRecordOwner().getRecord(BookingControl.BOOKING_CONTROL_FILE).getField(BookingControl.NIGHTS).isNull())
        iNights = (int)this.getRecordOwner().getRecord(BookingControl.BOOKING_CONTROL_FILE).getField(BookingControl.NIGHTS).getValue();
  if ((!bOnlyIfTargetIsNull) || (this.getField(BookingHotel.NIGHTS).isNull()))
    this.getField(BookingHotel.NIGHTS).setValue(iNights, DBConstants.DISPLAY, DBConstants.INIT_MOVE);
  if ((!bOnlyIfTargetIsNull) || (this.getField(BookingHotel.RATE_ID).isNull()))
    this.getField(BookingHotel.RATE_ID).moveFieldToThis((BaseField)recTour.getField(Tour.HOTEL_RATE_ID), DBConstants.DISPLAY, DBConstants.INIT_MOVE);
  if ((!bOnlyIfTargetIsNull) || (this.getField(BookingHotel.CLASS_ID).isNull()))
    this.getField(BookingHotel.CLASS_ID).moveFieldToThis((BaseField)recTour.getField(Tour.HOTEL_CLASS_ID), DBConstants.DISPLAY, DBConstants.INIT_MOVE);
  return iErrorCode;
}
/**

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

/**
 * When a new record is set up and you have the booking and tour
 * records, init the detail fields.
 */
public int initBookingDetailFields(BookingModel recBooking, TourModel recTour, boolean bOnlyIfTargetIsNull)
{
  int iErrorCode = super.initBookingDetailFields(recBooking, recTour, bOnlyIfTargetIsNull);
  int iNights = 1;
  if (this.getRecordOwner() != null)
    if (this.getRecordOwner().getRecord(BookingControl.BOOKING_CONTROL_FILE) != null)
      if (!this.getRecordOwner().getRecord(BookingControl.BOOKING_CONTROL_FILE).getField(BookingControl.NIGHTS).isNull())
        iNights = (int)this.getRecordOwner().getRecord(BookingControl.BOOKING_CONTROL_FILE).getField(BookingControl.NIGHTS).getValue();
  if ((!bOnlyIfTargetIsNull) || (this.getField(BookingHotel.NIGHTS).isNull()))
    this.getField(BookingHotel.NIGHTS).setValue(iNights, DBConstants.DISPLAY, DBConstants.INIT_MOVE);
  if ((!bOnlyIfTargetIsNull) || (this.getField(BookingHotel.RATE_ID).isNull()))
    this.getField(BookingHotel.RATE_ID).moveFieldToThis((BaseField)recTour.getField(Tour.HOTEL_RATE_ID), DBConstants.DISPLAY, DBConstants.INIT_MOVE);
  if ((!bOnlyIfTargetIsNull) || (this.getField(BookingHotel.CLASS_ID).isNull()))
    this.getField(BookingHotel.CLASS_ID).moveFieldToThis((BaseField)recTour.getField(Tour.HOTEL_CLASS_ID), DBConstants.DISPLAY, DBConstants.INIT_MOVE);
  return iErrorCode;
}
/**

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

|| (recBookingDetail.getEditMode() == DBConstants.EDIT_ADD)
|| (recBookingDetail.getEditMode() == DBConstants.EDIT_NONE)
|| (!recBookingDetail.getField(BookingDetailModel.AP_TRX_ID).isNull()))
  return DBConstants.ERROR_RETURN;

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

recBookingPaxNew = (BookingPax)recBookingPax;
if (recBookingPax.getField(BookingPax.ID).isNull())
  recBookingPax.getField(BookingPax.ID).setValue(0);

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

recBookingPaxNew = (BookingPax)recBookingPax;
if (recBookingPax.getField(BookingPax.ID).isNull())
  recBookingPax.getField(BookingPax.ID).setValue(0);

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

if (!recBookingDetail.getField(BookingDetailModel.AP_TRX_ID).isNull())
  if (!recBookingDetail.getField(BookingDetailModel.AP_TRX_ID).equals(this.getField(ApTrx.ID)))
    bProcessThisRecord = false;   // If this is already tacked to another ApTrx, skip it.

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

if (m_recBooking.getField(BookingModel.DESCRIPTION).isNull())    // Usually Series Tours since they don't set up booking desc.
  m_recBooking.setupDefaultDesc(m_recTourHeader, m_fldDepDate);
((BookingModel)m_recBooking).calcBookingDates(m_recTour, m_recTourHeader);

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

if (m_recBooking.getField(BookingModel.DESCRIPTION).isNull())    // Usually Series Tours since they don't set up booking desc.
  m_recBooking.setupDefaultDesc(m_recTourHeader, m_fldDepDate);
((BookingModel)m_recBooking).calcBookingDates(m_recTour, m_recTourHeader);

相关文章