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

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

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

Record.getTable介绍

[英]Get the table for this record. This is the same as getFieldTable, but casts the class up.
[中]把这张唱片拿到桌子上去。这与getFieldTable相同,但会将类向上转换。

代码示例

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

/**
 * Get the table.
 * @return The table for this key area's parent record.
 */
public BaseTable getTable()
{
  return ((Record)m_record).getTable();
}
/**

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

/**
 * Add a (merge) record to this multi-record.
 */
public void addTable(Record record)
{
  this.getTable().addTable(record.getTable());
}
/**

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

/**
 * Add a (merge) record to this multi-record.
 */
public void addTable(Record record)
{
  this.getTable().addTable(record.getTable());
}
/**

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

/**
 * Get the record count.
 * @return The records in this table (For querys and multi-tables).
 */
public int getRecordCount()
{
  return this.getTable().getRecordCount();
}
/**

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

/**
 * Close this table.
 * <p />NOTE: This is a table method, it is included here in Record for convience!!!
 */
public void close()
{
  if (m_table != null)    // Do not use getTable() as it will build a new table!
    this.getTable().close();
}
/**

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

/**
 * Is there another record (is this not the last one)?
 * @return true If there is a next record.
 */
public boolean hasNext() throws DBException
{
  return this.getTable().hasNext();
}
/**

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

/**
 * Read the record that matches this record's current key.
 * <p />NOTE: This is a table method, it is included here in Record for convience!!!
 * @exception DBException FILE_NOT_OPEN;
 * @exception DBException KEY_NOT_FOUND - The key was not found on read.
 */
public boolean seek(String strSeekSign) throws DBException
{
  return this.getTable().seek(strSeekSign);
}
/**

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

/**
 * Get a unique key that can be used to reposition to this record.
 * <p />NOTE: This is a table method, it is included here in Record for convience!!!
 * @param iHandleType The type of handle to retrieve.
 * @return The handle to the current record.
 * @exception DBException File exception.
 */
public Object getHandle(int iHandleType) throws DBException
{
  return this.getTable().getHandle(iHandleType);
}
/**

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

/**
 * Close this table.
 * <p />NOTE: This is a table method, it is included here in Record for convience!!!
 */
public void close()
{
  if (m_table != null)    // Do not use getTable() as it will build a new table!
    this.getTable().close();
}
/**

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

/**
 * Create a new empty record.
 * <p />Leave the current position unchanged, and
 * clear this record's fields to their initial values.
 * @exception DBException FILE_NOT_OPEN.
 */
public void addNew() throws DBException
{
  this.getTable().addNew();           // Clear the fields
}
/**

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

/**
 * Move the position of the record relative to the current position.
 * @param iRelPosition - Relative position positive or negative or FIRST_RECORD/LAST_RECORD.
 * @exception DBException FILE_NOT_OPEN File is not open.
 * @exception DBException INVALID_RECORD - Record position is not current or move past EOF or BOF.
 * NOTE: This is a table method, it is included here in Record for convience!!!
 */
public FieldList move(int iRelPosition) throws DBException
{
  return this.getTable().move(iRelPosition);
}
public final Record moveFirst() throws DBException      {

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

/**
 * Create a new empty record.
 * <p />Leave the current position unchanged, and
 * clear this record's fields to their initial values.
 * @exception DBException FILE_NOT_OPEN.
 */
public void addNew() throws DBException
{
  this.getTable().addNew();           // Clear the fields
}
/**

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

/**
 * Is there another record before this one (is this not the first one)?
 * @return true If there is a previous record.
 */
public boolean hasPrevious() throws DBException
{
  return this.getTable().hasPrevious();
}
/**

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

/**
 * Move the position of the record relative to the current position.
 * @param iRelPosition - Relative position positive or negative or FIRST_RECORD/LAST_RECORD.
 * @exception DBException FILE_NOT_OPEN File is not open.
 * @exception DBException INVALID_RECORD - Record position is not current or move past EOF or BOF.
 * NOTE: This is a table method, it is included here in Record for convience!!!
 */
public FieldList move(int iRelPosition) throws DBException
{
  return this.getTable().move(iRelPosition);
}
public final Record moveFirst() throws DBException      {

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

/**
 * Is there another record before this one (is this not the first one)?
 * @return true If there is a previous record.
 */
public boolean hasPrevious() throws DBException
{
  return this.getTable().hasPrevious();
}
/**

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

/**
 * Set the field that owns this listener.
 * @owner The field that this listener is being added to (if null, this listener is being removed).
 */
public void setOwner(ListenerOwner owner)
{
  super.setOwner(owner);
  if (owner != null) if (this.getOwner().getState() == false)
    m_mergeRecord.getTable().removeTable(m_subRecord.getTable()); // If this is off initially, take the table out of the loop
}
/**

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

/**
 * Set the field that owns this listener.
 * @owner The field that this listener is being added to (if null, this listener is being removed).
 */
public void setOwner(ListenerOwner owner)
{
  super.setOwner(owner);
  if (owner != null) if (this.getOwner().getState() == false)
    m_mergeRecord.getTable().removeTable(m_subRecord.getTable()); // If this is off initially, take the table out of the loop
}
/**

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

/**
 * Set the field that owns this listener.
 * @owner The field that this listener is being added to (if null, this listener is being removed).
 */
public void setOwner(ListenerOwner owner)
{
  super.setOwner(owner);
  if (owner != null) if (this.getOwner().getState() == false)
    m_mergeRecord.getTable().removeTable(m_subRecord.getTable()); // If this is off initially, take the table out of the loop
}
/**

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

/**
 * QueryTable Constructor.
 * @param database The database for this table.
 * @param record The queryRecord for this table.
 */
public void init(BaseDatabase database, Record record)
{
  super.init(database, record);
  if (((QueryRecord)record).getBaseRecord() != null)
    m_tableNext = ((QueryRecord)record).getBaseRecord().getTable();   // Pass most commands thru to the main record's table
}
/**

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

/**
 * QueryTable Constructor.
 * @param database The database for this table.
 * @param record The queryRecord for this table.
 */
public void init(BaseDatabase database, Record record)
{
  super.init(database, record);
  if (((QueryRecord)record).getBaseRecord() != null)
    m_tableNext = ((QueryRecord)record).getBaseRecord().getTable();   // Pass most commands thru to the main record's table
}
/**

相关文章

微信公众号

最新文章

更多

Record类方法