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

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

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

FieldList.getTable介绍

[英]Get the table for this record.
[中]获取此记录的表格。

代码示例

代码示例来源:origin: org.jbundle.thin.base.screen/org.jbundle.thin.base.screen.cal.grid

/**
 * Constructor.
 */
public void init(FieldList record, String strStartDateTimeField, String strEndDateTimeField, String strDescriptionField, String strStatusField)
{
  m_table = record.getTable();
  m_strDescriptionField = strDescriptionField;
  m_strStartDateTimeField = strStartDateTimeField;
  m_strEndDateTimeField = strEndDateTimeField; 
  m_strStatusField = strStatusField;
}
/**

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

/**
 * Build the list of fields that make up the screen.
 * Override this to create a new record.
 * @return The fieldlist for this screen.
 */
public AbstractThinTableModel createGridModel(FieldList record)
{
  return new AirlineGridModel(record.getTable());
}
/**

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

/**
 * Build the list of fields that make up the screen.
 * Override this to create a new record.
 * @return The fieldlist for this screen.
 */
public AbstractThinTableModel createGridModel(FieldList record)
{
  return new BookingPaxGridModel(record.getTable());
}
/**

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

/**
 * Build the list of fields that make up the screen.
 * Override this to create a new record.
 * @return The fieldlist for this screen.
 */
public AbstractThinTableModel createGridModel(FieldList record)
{
  return new BookingLineGridModel(record.getTable());
}
/**

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

/**
 * 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
{
  FieldList fieldList = this.getSharedTable().setHandle(bookmark, iHandleType);
  if (fieldList != null)
    if (fieldList.getTable() != this)  // Must be this type of record
      throw new DBException("Can't set handle in an inherited class");
  return (fieldList != null);
}
/**

代码示例来源:origin: org.jbundle.base.db/org.jbundle.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
{
  FieldList fieldList = this.getSharedTable().setHandle(bookmark, iHandleType);
  if (fieldList != null)
    if (fieldList.getTable() != this)  // Must be this type of record
      throw new DBException("Can't set handle in an inherited class");
  return (fieldList != null);
}
/**

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

/**
 * 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
{
  FieldList fieldList = this.getSharedTable().setHandle(bookmark, iHandleType);
  if (fieldList != null)
    if (fieldList.getTable() != this)  // Must be this type of record
      throw new DBException("Can't set handle in an inherited class");
  return (fieldList != null);
}
/**

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

/**
   * Create the new main record.
   * @return
   */
  public int createNewMainRecord()
  {
    try {
      FieldTable tableMain = m_recMain.getTable();
      tableMain.add(m_recMain);
      Object bookmark = tableMain.getLastModified(0);
      tableMain.setHandle(bookmark, 0);
      return Constants.NORMAL_RETURN;
    } catch (DBException ex) {
      return Constants.ERROR_RETURN;
    }
  }
}

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

/**
 * Do a remote command.
 * This method simplifies the task of calling a remote method.
 * Instead of having to override the session, all you have to do is override
 * doRemoteCommand in your record and handleRemoteCommand will call the remote version of the record.
 * @param strCommand
 * @param properties
 * @return
 */
public Object handleRemoteCommand(String strCommand, Map<String, Object> properties, boolean bWriteAndRefresh, boolean bDontCallIfLocal, boolean bCloneServerRecord)
  throws DBException, RemoteException
{
  RemoteTarget remoteTask = this.getTable().getRemoteTableType(org.jbundle.model.Remote.class);
  if (remoteTask == null)
  {
    if (bDontCallIfLocal)
      return Boolean.FALSE;
    else
      return this.doRemoteCommand(strCommand, properties);
  }
  return remoteTask.doRemoteAction(strCommand, properties);
}
/**

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

/**
 * Get the table for this record.
 * This is the same as getFieldTable, but casts the class up.
 * @return The table for this record.
 */
public BaseTable getTable()
{
  BaseTable table = (BaseTable)super.getTable();
  if (table == null)    // It's possible that m_table was set in an overriding init method.
  {
    DatabaseOwner databaseOwner = null;
    if (this.getRecordOwner() != null)
      databaseOwner = this.getRecordOwner().getDatabaseOwner();
    if (databaseOwner != null)
    {
      BaseDatabase database = (BaseDatabase)databaseOwner.getDatabase(this.getDatabaseName(), this.getDatabaseType(), null);
      m_table = database.makeTable(this);
    }
  }
  return (BaseTable)super.getTable();
}
/**

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

/**
 * Get the table for this record.
 * This is the same as getFieldTable, but casts the class up.
 * @return The table for this record.
 */
public BaseTable getTable()
{
  BaseTable table = (BaseTable)super.getTable();
  if (table == null)    // It's possible that m_table was set in an overriding init method.
  {
    DatabaseOwner databaseOwner = null;
    if (this.getRecordOwner() != null)
      databaseOwner = this.getRecordOwner().getDatabaseOwner();
    if (databaseOwner != null)
    {
      BaseDatabase database = databaseOwner.getDatabase(this.getDatabaseName(), this.getDatabaseType(), null);
      m_table = database.makeTable(this);
    }
  }
  return (BaseTable)super.getTable();
}
/**

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

/**
 * Get the table for this record.
 * This is the same as getFieldTable, but casts the class up.
 * @return The table for this record.
 */
public BaseTable getTable()
{
  BaseTable table = (BaseTable)super.getTable();
  if (table == null)    // It's possible that m_table was set in an overriding init method.
  {
    DatabaseOwner databaseOwner = null;
    if (this.getRecordOwner() != null)
      databaseOwner = this.getRecordOwner().getDatabaseOwner();
    if (databaseOwner != null)
    {
      BaseDatabase database = databaseOwner.getDatabase(this.getDatabaseName(), this.getDatabaseType(), null);
      m_table = database.makeTable(this);
    }
  }
  return (BaseTable)super.getTable();
}
/**

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

if ((recBooking.getEditMode() == Constants.EDIT_NONE) || (recBooking.getEditMode() == Constants.EDIT_ADD))
    recBooking.getTable().addNew();
    return true;
  if (JOptionPane.showConfirmDialog(ScreenUtil.getFrame(this), strMessage, strTitle, JOptionPane.WARNING_MESSAGE) != JOptionPane.OK_OPTION)
    return false;
  recBooking.getTable().addNew();
  Object objSuccess = this.getRemoteSession().doRemoteAction(Constants.DELETE, null);    // Tell the remote session that I'm done with this booking
  if (objSuccess instanceof Boolean)
    bSuccess = ((Boolean)objSuccess).booleanValue();
  recBooking.getTable().addNew();    // Clear the booking record
  this.getTourRecord().getTable().addNew();  // Clear tour record
  bSuccess = true;
} catch (RemoteException ex)  {

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

RemoteSession remoteSession = ((org.jbundle.thin.base.db.client.RemoteFieldTable)this.getFieldList().getTable()).getRemoteTableType(Remote.class);
boolean bCacheTable = true;

代码示例来源:origin: org.jbundle.thin.base.screen/org.jbundle.thin.base.screen.cal.grid

/**
 * Initialize this class.
 */
public void init(Object parent, Object record)
{
  super.init(parent, record);
  record = this.getFieldList();   // Created/set in JBaseScreen.init
  this.setLayout(new BoxLayout(this, BoxLayout.X_AXIS));
  FieldTable table = ((FieldList)record).getTable();
  CalendarModel model = this.getCalendarModel(table);
  ImageIcon backgroundImage = null;
  if (this.getBaseApplet() != null)
    backgroundImage = this.getBaseApplet().getBackgroundImage();	// Calendar panel is transparent, but this helps with rendering see-thru components 
  CalendarPanel panel = new CalendarPanel(model, true, backgroundImage);
  this.add(panel);
}
/**

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

|| (!record.isModified()))
    return;
FieldTable fieldTable = record.getTable();
String strID = record.getField(BookingDetail.ID).toString();
try   {
    String strKeyName = record.getKeyName();
    record.setKeyName(Constants.PRIMARY_KEY);
    boolean bSuccess = record.getTable().seek(null);
    if (bSuccess)
      this.fieldsToControls();

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

FieldTable table = recTour.getTable();
RemoteSession remoteSession = ((org.jbundle.thin.base.db.client.RemoteFieldTable)table).getRemoteTableType(Remote.class);

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

/**
 * Add the screen controls to the second column of the grid.
 * Create a default component for this fieldInfo.
 * @param fieldInfo the field to create a control for.
 * @return The component.
 */
public JComponent createScreenComponent(Converter fieldInfo)
{
  JComponent component = null;
  
  if (TourHeader.TOUR_TYPE.equalsIgnoreCase(fieldInfo.getFieldName()))
  {
    FieldList record = new TourType(this);
    this.addFieldList(record);
    RemoteSession remoteSession = ((org.jbundle.thin.base.db.client.RemoteFieldTable)this.getFieldList().getTable()).getRemoteTableType(Remote.class);
    boolean bCacheTable = false;
    TourGeekScreen screenMain = (TourGeekScreen)this.getTargetScreen(TourGeekScreen.class);
    screenMain.linkRemoteSessionTable(remoteSession, record, bCacheTable);
    fieldInfo = new SecondaryRecordConverter(fieldInfo, remoteSession, record, TourType.DESCRIPTION, bCacheTable, TourType.ID, null, null);
    component = new JFSTextField(fieldInfo);
    fieldInfo.addComponent(component);
    ScreenUtil.setEnabled(component, false);
  }
  if (component == null)
    component = super.createScreenComponent(fieldInfo);
  
  return component;
}
/**

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

recPricingType.getField("ID").setData(intID);
try {
  if (recPricingType.getTable().seek(null))

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

return false;
FieldTable table = fieldList.getTable();
boolean bAutoSequence = fieldList.isAutoSequence();
boolean[] rgListeners = null;

相关文章