org.jbundle.base.db.Record.getRecordName()方法的使用及代码示例

x33g5p2x  于2022-01-28 转载在 其他  
字(10.3k)|赞(0)|评价(0)|浏览(96)

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

Record.getRecordName介绍

[英]What a record is called.

(ie., for the AgencyTypeTable, one record is called an "Agency Type")
[中]这就是所谓的记录。
(即,对于AgencyTypeTable,一条记录称为“Agency Type”)

代码示例

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

/**
 * The title for this screen.
 * @return The title.
 */
public String getTitle()    // Standard file maint for this record (returns new record)
{ // This is almost always overidden!
  Record record = this.getMainRecord();
  return record.getRecordName() + " menu";
}
/**

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

/**
 * The title for this screen.
 * @return The title
 */
public String getTitle()    // Standard file maint for this record (returns new record)
{
  String strTitle = "Query"; // Default
  Record record = this.getMainRecord();
  if (record != null)
    strTitle = record.getRecordName() + ' ' + strTitle;
  return strTitle;
}
/**

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

/**
 * The title for this screen.
 * @return This screen's title.
 */
public String getTitle()    // Standard file maint for this record (returns new record)
{
  String windowName = "Maintenance"; // Default
  Record query = this.getMainRecord();
  if (query != null)
    windowName = query.getRecordName() + ' ' + windowName;  // xxx Maintenance.
  return windowName;
}
/**

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

/**
 * The title for this screen.
 * @return The title.
 */
public String getTitle()    // Standard file maint for this record (returns new record)
{ // This is almost always overidden!
  String windowName = "Tree"; // Default
  Record query = this.getMainRecord();
  if (query != null)
    windowName = query.getRecordName() + ' ' + windowName;
  return windowName;
}
/**

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

/**
 * The title for this screen.
 * @return The title.
 */
public String getTitle()    // Standard file maint for this record (returns new record)
{ // This is almost always overidden!
  Record record = this.getMainRecord();
  return record.getRecordName() + " menu";
}
/**

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

/**
 * The title for this screen.
 * @return The title for this screen.
 */
public String getTitle()    // Standard file maint for this record (returns new record)
{ // This is almost always overidden!
  String windowName = "Display"; // Default
  Record query = this.getMainRecord();
  if (query != null)
    windowName = query.getRecordName() + ' ' + windowName;
  return windowName;
}
/**

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

/**
 * The title for this screen.
 * @return This screen's title.
 */
public String getTitle()    // Standard file maint for this record (returns new record)
{
  String windowName = "Maintenance"; // Default
  Record query = this.getMainRecord();
  if (query != null)
    windowName = query.getRecordName() + ' ' + windowName;  // xxx Maintenance.
  return windowName;
}
/**

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

/**
 * The title for this screen.
 * @return The title for this screen.
 */
public String getTitle()    // Standard file maint for this record (returns new record)
{ // This is almost always overidden!
  String windowName = "Display"; // Default
  Record query = this.getMainRecord();
  if (query != null)
    windowName = query.getRecordName() + ' ' + windowName;
  return windowName;
}
/**

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

/**
 * The title for this screen.
 * @return The title for this screen.
 */
public String getTitle()    // Standard file maint for this record (returns new record)
{ // This is almost always overidden!
  String windowName = "Calendar"; // Default
  Record query = this.getMainRecord();
  if (query != null)
    windowName = query.getRecordName() + " Calendar";
  return windowName;
}
/**

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

/**
 * The title for this screen.
 * @return The title for this screen.
 */
public String getTitle()    // Standard file maint for this record (returns new record)
{ // This is almost always overidden!
  String windowName = "Calendar"; // Default
  Record query = this.getMainRecord();
  if (query != null)
    windowName = query.getRecordName() + " Calendar";
  return windowName;
}
/**

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

/**
 * The title for this screen.
 * @return The title.
 */
public String getTitle()    // Standard file maint for this record (returns new record)
{ // This is almost always overidden!
  String windowName = "Tree"; // Default
  Record query = this.getMainRecord();
  if (query != null)
    windowName = query.getRecordName() + ' ' + windowName;
  return windowName;
}
/**

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

/**
 * The title for this screen.
 * @return The title
 */
public String getTitle()    // Standard file maint for this record (returns new record)
{
  String strTitle = "Query"; // Default
  Record record = this.getMainRecord();
  if (record != null)
    strTitle = record.getRecordName() + ' ' + strTitle;
  return strTitle;
}
/**

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

&& (mainRecord.getRecordName().equals(m_recHeader.getRecordName())))

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

/**
 * Initialize.
 * @param itsLocation The location of this component within the parent.
 * @param parentScreen The parent screen.
 * @param fieldConverter The field this screen field is linked to.
 * @param iDisplayFieldDesc Do I display the field desc?
 * @param strValue The value to set the field on button press.
 * @param strDesc The description of this button.
 * @param strImage The image filename for this button.
 * @param strCommand The command to send on button press.
 * @param strToolTip The tooltip for this button.
 * @param record The (optional) record.
 * @param field The (optional) field.
 */
public void init(ScreenLocation itsLocation, BasePanel parentScreen, Converter fieldConverter, int iDisplayFieldDesc, String strValue, String strDesc, String strImage, String strCommand, String strToolTip, Record record, BaseField field)
{
  m_record = record;
  m_field = field;
  m_strValue = strValue;
  m_iDisplayFieldDesc = iDisplayFieldDesc;

  if (record != null) if (fieldConverter == null) if (this.getDisplayFieldDesc(this))
  {   // Use the record name as the desc
    fieldConverter = new FieldDescConverter(null, record.getRecordName());
    record.addListener(new RemoveConverterOnCloseHandler(fieldConverter));  // Remove on close
  }
  super.init(itsLocation, parentScreen, fieldConverter, iDisplayFieldDesc, strValue, strDesc, strImage, strCommand, strToolTip);
}
/**

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

/**
 * Initialize.
 * @param itsLocation The location of this component within the parent.
 * @param parentScreen The parent screen.
 * @param fieldConverter The field this screen field is linked to.
 * @param iDisplayFieldDesc Do I display the field desc?
 * @param strValue The value to set the field on button press.
 * @param strDesc The description of this button.
 * @param strImage The image filename for this button.
 * @param strCommand The command to send on button press.
 * @param strToolTip The tooltip for this button.
 * @param record The (optional) record.
 * @param field The (optional) field.
 */
public void init(ScreenLocation itsLocation, BasePanel parentScreen, Converter fieldConverter, int iDisplayFieldDesc, String strValue, String strDesc, String strImage, String strCommand, String strToolTip, Record record, BaseField field)
{
  m_record = record;
  m_field = field;
  m_strValue = strValue;
  m_iDisplayFieldDesc = iDisplayFieldDesc;

  if (record != null) if (fieldConverter == null) if (this.getDisplayFieldDesc(this))
  {   // Use the record name as the desc
    fieldConverter = new FieldDescConverter(null, record.getRecordName());
    record.addListener(new RemoveConverterOnCloseHandler(fieldConverter));  // Remove on close
  }
  super.init(itsLocation, parentScreen, fieldConverter, iDisplayFieldDesc, strValue, strDesc, strImage, strCommand, strToolTip);
}
/**

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

/**
 * Get the product type of this detail record.
 * This is used to fill in the virtual ProductType field in BookingDetail.
 */
public Object doGetData()
{
  String strDesc = DBConstants.BLANK;
  Record recBookingDetail = (BookingSub)this.getOwner().getRecord();
  Record recProductType = ((ReferenceField)recBookingDetail.getField(BookingDetail.PRODUCT_TYPE_ID)).getReference();
  if ((recProductType == null)
    || (recProductType.getEditMode() == DBConstants.EDIT_ADD)
    || (recProductType.getEditMode() == DBConstants.EDIT_NONE))
  {
    strDesc = recBookingDetail.getRecordName();
    if (strDesc.indexOf(Booking.BOOKING_FILE) == 0)
      strDesc = strDesc.substring(Booking.BOOKING_FILE.length());
  }
  else
    strDesc = recProductType.getField(ProductType.DESCRIPTION).toString();
  if (this.getOwner().getRecord().isModified())
    this.getOwner().setData(strDesc);
  else
  { // Make sure you don't trigger any field or file changes by setting this here
    boolean[] listenersState = this.getOwner().setEnableListeners(false);
    this.getOwner().setData(strDesc, Constants.DISPLAY, Constants.INIT_MOVE);
    this.getOwner().setModified(false);
    this.getOwner().setEnableListeners(listenersState);
  }
  return super.doGetData();
}

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

/**
 * Get the product type of this detail record.
 * This is used to fill in the virtual ProductType field in BookingDetail.
 */
public Object doGetData()
{
  String strDesc = DBConstants.BLANK;
  Record recBookingDetail = (BookingSub)this.getOwner().getRecord();
  Record recProductType = ((ReferenceField)recBookingDetail.getField(BookingDetail.PRODUCT_TYPE_ID)).getReference();
  if ((recProductType == null)
    || (recProductType.getEditMode() == DBConstants.EDIT_ADD)
    || (recProductType.getEditMode() == DBConstants.EDIT_NONE))
  {
    strDesc = recBookingDetail.getRecordName();
    if (strDesc.indexOf(Booking.BOOKING_FILE) == 0)
      strDesc = strDesc.substring(Booking.BOOKING_FILE.length());
  }
  else
    strDesc = recProductType.getField(ProductType.DESCRIPTION).toString();
  if (this.getOwner().getRecord().isModified())
    this.getOwner().setData(strDesc);
  else
  { // Make sure you don't trigger any field or file changes by setting this here
    boolean[] listenersState = this.getOwner().setEnableListeners(false);
    this.getOwner().setData(strDesc, Constants.DISPLAY, Constants.INIT_MOVE);
    this.getOwner().setModified(false);
    this.getOwner().setEnableListeners(listenersState);
  }
  return super.doGetData();
}

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

if (m_iErrorCount >= MAX_WRITE_ATTEMPTS)
  Utility.getLogger().warning("Max rewrites reached: " + this.getOwner().getRecordName());
  m_iErrorCount = 0;  // Reset (since this will error out)
  return DBConstants.DUPLICATE_KEY; // VERY VERY Rare

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

bSuccess = xml.importXML(record, strFilename, inputStream);
} catch (Exception ex) {
  Utility.getLogger().warning("Could not load initial data - " + record.getRecordName());
} finally {
  xml.free();

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

bSuccess = xml.importXML(record, strFilename, inputStream);
} catch (Exception ex) {
  Utility.getLogger().warning("Could not load initial data - " + record.getRecordName());
} finally {
  xml.free();

相关文章

微信公众号

最新文章

更多

Record类方法