本文整理了Java中org.jbundle.model.db.Field.isVirtual()
方法的一些代码示例,展示了Field.isVirtual()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Field.isVirtual()
方法的具体详情如下:
包路径:org.jbundle.model.db.Field
类名称:Field
方法名:isVirtual
暂无
代码示例来源:origin: org.jbundle.thin.base.db/org.jbundle.thin.base.db
/**
* Move all the fields to the output buffer.
* @exception Exception File exception.
*/
public void fieldsToData(Rec record) throws DBException
{
this.setupNewDataSource();
int fieldCount = record.getFieldCount(); // Number of fields to write out
for (int iFieldSeq = Constants.MAIN_FIELD; iFieldSeq < fieldCount + Constants.MAIN_FIELD; iFieldSeq++)
{
Field field = record.getField(iFieldSeq);
if (field.isVirtual()) //x || (!field.isSelected()))
continue; // This field is never moved to a buffer
this.fieldToData(field);
}
}
/**
代码示例来源:origin: org.jbundle.thin.base.db/org.jbundle.thin.base.db
/**
* Move the data source buffer to all the fields.
* <p /><pre>
* Make sure you do the following steps:
* 1) Move the data fields to the correct record data fields, with mode Constants.READ_MOVE.
* 2) Set the data source or set to null, so I can cache the source if necessary.
* 3) Save the objectID if it is not an Integer type, so I can serialize the source of this object.
* </pre>
* @exception Exception File exception.
* @return Any error encountered moving the data.
*/
public int dataToFields(Rec record) throws DBException
{
int iFieldCount = record.getFieldCount(); // Number of fields to read in
for (int iFieldSeq = Constants.MAIN_FIELD; iFieldSeq < iFieldCount + Constants.MAIN_FIELD; iFieldSeq++)
{
Field field = record.getField(iFieldSeq);
if (field.isVirtual()) //x|| (!field.isSelected()))
field.initField(Constants.DONT_DISPLAY);
else
this.dataToField(field);
}
return Constants.NORMAL_RETURN;
}
/**
代码示例来源:origin: org.jbundle.base/org.jbundle.base.mixed
&& (field.isVirtual()))
return DBConstants.NORMAL_RETURN; // Don't acknowledge a virtual field change
if ((field instanceof CounterField)
代码示例来源:origin: org.jbundle.base/org.jbundle.base
&& (field.isVirtual()))
return DBConstants.NORMAL_RETURN; // Don't acknowledge a virtual field change
if ((field instanceof CounterField)
代码示例来源:origin: org.jbundle.base.db/org.jbundle.base.db
&& (field.isVirtual()))
return DBConstants.NORMAL_RETURN; // Don't acknowledge a virtual field change
if ((field instanceof CounterField)
内容来源于网络,如有侵权,请联系作者删除!