本文整理了Java中org.jbundle.base.db.Record.getKeyArea
方法的一些代码示例,展示了Record.getKeyArea
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Record.getKeyArea
方法的具体详情如下:
包路径:org.jbundle.base.db.Record
类名称:Record
方法名:getKeyArea
[英]Get the default key index.
[中]获取默认键索引。
代码示例来源:origin: org.jbundle.base/org.jbundle.base
/**
* Get the default key index.
* @return The current default key area.
*/
public KeyArea getKeyArea()
{
return this.getKeyArea(-1);
}
/**
代码示例来源:origin: org.jbundle.base.db/org.jbundle.base.db
/**
* Get the default key index.
* @return The current default key area.
*/
public KeyArea getKeyArea()
{
return this.getKeyArea(-1);
}
/**
代码示例来源:origin: org.jbundle.base/org.jbundle.base.mixed
/**
* Get the default key index.
* @return The current default key area.
*/
public KeyArea getKeyArea()
{
return this.getKeyArea(-1);
}
/**
代码示例来源:origin: org.jbundle.base/org.jbundle.base.mixed
/**
* The end key position is in this record... Save it!
*/
public void doEndKey()
{ // Save the current key values in the param buffers
KeyArea keyArea = this.getKeyArea(-1);
keyArea.setupKeyBuffer(null, DBConstants.END_SELECT_KEY);
}
/**
代码示例来源:origin: org.jbundle.base.db/org.jbundle.base.db
/**
* The initial key position is in this record... Save it!
*/
public void doInitialKey() // init this field override for other value
{ // Save the current key values in the param buffers
KeyArea keyArea = this.getKeyArea(-1);
keyArea.setupKeyBuffer(null, DBConstants.START_SELECT_KEY);
}
/**
代码示例来源:origin: org.jbundle.base.db/org.jbundle.base.db
/**
* The end key position is in this record... Save it!
*/
public void doEndKey()
{ // Save the current key values in the param buffers
KeyArea keyArea = this.getKeyArea(-1);
keyArea.setupKeyBuffer(null, DBConstants.END_SELECT_KEY);
}
/**
代码示例来源:origin: org.jbundle.base/org.jbundle.base
/**
* The initial key position is in this record... Save it!
*/
public void doInitialKey() // init this field override for other value
{ // Save the current key values in the param buffers
KeyArea keyArea = this.getKeyArea(-1);
keyArea.setupKeyBuffer(null, DBConstants.START_SELECT_KEY);
}
/**
代码示例来源:origin: org.jbundle.base/org.jbundle.base.mixed
/**
* The initial key position is in this record... Save it!
*/
public void doInitialKey() // init this field override for other value
{ // Save the current key values in the param buffers
KeyArea keyArea = this.getKeyArea(-1);
keyArea.setupKeyBuffer(null, DBConstants.START_SELECT_KEY);
}
/**
代码示例来源:origin: org.jbundle.base/org.jbundle.base
/**
* The end key position is in this record... Save it!
*/
public void doEndKey()
{ // Save the current key values in the param buffers
KeyArea keyArea = this.getKeyArea(-1);
keyArea.setupKeyBuffer(null, DBConstants.END_SELECT_KEY);
}
/**
代码示例来源:origin: org.jbundle.base.screen/org.jbundle.base.screen.model
/**
* Code to display a Menu.
*/
public void preSetupGrid(String strMenu)
{
Record record = m_recDetail;
if (record != null) if (record.getKeyArea().getKeyName().equals(DBConstants.PRIMARY_KEY))
record.setKeyArea(record.getDefaultScreenKeyArea());
}
/**
代码示例来源:origin: org.jbundle.base/org.jbundle.base.mixed
/**
* Code to display a Menu.
*/
public void preSetupGrid(String strMenu)
{
Record record = m_recDetail;
if (record != null) if (record.getKeyArea().getKeyName().equals(DBConstants.PRIMARY_KEY))
record.setKeyArea(record.getDefaultScreenKeyArea());
}
/**
代码示例来源:origin: org.jbundle.base/org.jbundle.base
/**
* Remove the temporary key field.
*/
public void clearTemporaryKeyField()
{
Record record = this.getOwner();
KeyArea keyArea = record.getKeyArea(0);
if (keyArea.getKeyFields(false, true) == 2)
if (m_fakeKeyField != null) // Always
keyArea.removeKeyField(m_fakeKeyField);
}
/**
代码示例来源:origin: org.jbundle.base/org.jbundle.base.mixed
/**
* Remove the temporary key field.
*/
public void clearTemporaryKeyField()
{
Record record = this.getOwner();
KeyArea keyArea = record.getKeyArea(0);
if (keyArea.getKeyFields(false, true) == 2)
if (m_fakeKeyField != null) // Always
keyArea.removeKeyField(m_fakeKeyField);
}
/**
代码示例来源:origin: org.jbundle.base.db/org.jbundle.base.db
/**
* Remove the temporary key field.
*/
public void clearTemporaryKeyField()
{
Record record = this.getOwner();
KeyArea keyArea = record.getKeyArea(0);
if (keyArea.getKeyFields(false, true) == 2)
if (m_fakeKeyField != null) // Always
keyArea.removeKeyField(m_fakeKeyField);
}
/**
代码示例来源:origin: org.jbundle.base/org.jbundle.base
/**
* Get this key area.
* @param iKeySeq The key area to set.
* @return The key area.
*/
public KeyArea getKeyArea(int iKeySeq)
{
KeyArea keyArea = (KeyArea)super.getKeyArea(iKeySeq);
if (keyArea == null)
if (this != this.getRecordlistAt(0))
return this.getRecordlistAt(0).getKeyArea(iKeySeq);
return keyArea;
}
/**
代码示例来源:origin: org.jbundle.base/org.jbundle.base
/**
* Default call; gridTable=mainRecord, index=next.
* @param iKeyArea The key area to set to the next key.
*/
public void setGridTable(int iKeyArea)
{
String keyAreaName = null;
if (iKeyArea != -1)
keyAreaName = this.getOwner().getRecord().getKeyArea(iKeyArea).getKeyName();
this.setGridTable(keyAreaName, null, -1);
}
/**
代码示例来源:origin: org.jbundle.base/org.jbundle.base.mixed
/**
* Get the code field.
* @return The code field (or the index field if not found)
*/
public BaseField getCodeField()
{
Record record = this.getOwner();
if (m_iCodeField != -1)
return record.getField(m_iCodeField);
else
return record.getKeyArea(record.getCodeKeyArea()).getField(DBConstants.MAIN_KEY_FIELD);
}
/**
代码示例来源:origin: org.jbundle.base.db/org.jbundle.base.db
/**
* Get the code field.
* @return The code field (or the index field if not found)
*/
public BaseField getCodeField()
{
Record record = this.getOwner();
if (m_iCodeField != -1)
return record.getField(m_iCodeField);
else
return record.getKeyArea(record.getCodeKeyArea()).getField(DBConstants.MAIN_KEY_FIELD);
}
/**
代码示例来源:origin: com.tourapp.tour/com.tourapp.tour.request.screen
/**
* Add all the screen listeners.
*/
public void addListeners()
{
super.addListeners();
this.setAppending(false);
this.setEnabled(false);
this.getMainRecord().getField(RequestHistory.HIST_REPRINT).setEnabled(true);
this.getMainRecord().setKeyArea(RequestHistory.HIST_REPRINT_KEY);
this.getMainRecord().getKeyArea(RequestHistory.HIST_REPRINT_KEY).getKeyField(DBConstants.MAIN_KEY_FIELD).setKeyOrder(DBConstants.DESCENDING);
this.getMainRecord().getKeyArea(RequestHistory.HIST_REPRINT_KEY).getKeyField(DBConstants.MAIN_KEY_FIELD+1).setKeyOrder(DBConstants.DESCENDING);
}
/**
代码示例来源:origin: org.jbundle.base.screen/org.jbundle.base.screen.model
/**
* AddSubFileFilter Method.
*/
public void addSubFileFilter()
{
// Override this if it is not correct.
SubFileFilter listener = null;
this.getMainRecord().addListener(listener = new SubFileFilter(this.getHeaderRecord()));
if (!this.getMainRecord().getKeyArea().getField(DBConstants.MAIN_KEY_FIELD).isNullable())
listener.setFilterIfNull(true); // If the header record's key can't be null, don't display any detail if new record
}
内容来源于网络,如有侵权,请联系作者删除!