本文整理汇总了Java中org.insightech.er.editor.model.dbexport.testdata.impl.SQLTestDataCreator类的典型用法代码示例。如果您正苦于以下问题:Java SQLTestDataCreator类的具体用法?Java SQLTestDataCreator怎么用?Java SQLTestDataCreator使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
SQLTestDataCreator类属于org.insightech.er.editor.model.dbexport.testdata.impl包,在下文中一共展示了SQLTestDataCreator类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: initTableData
import org.insightech.er.editor.model.dbexport.testdata.impl.SQLTestDataCreator; //导入依赖的package包/类
public void initTableData() {
if (table != null) {
editColumnTable.setVisible(false);
final TestDataCreator testDataCreator = new SQLTestDataCreator();
testDataCreator.init(dialog.getTestData(), null);
editColumnTable.removeAllRow();
int num = getTestDataNum();
if (num > MAX_REPEAT_PREVIEW_NUM) {
num = MAX_REPEAT_PREVIEW_NUM;
}
for (int i = 0; i < num; i++) {
final Object[] values = new Object[table.getExpandedColumns().size()];
int columnIndex = 0;
for (final NormalColumn column : table.getExpandedColumns()) {
values[columnIndex++] = testDataCreator.getMergedRepeatTestDataValue(i, repeatTestData.getDataDef(column), column);
}
editColumnTable.addRow(String.valueOf(editColumnTable.getItemCount() + 1), values);
}
editColumnTable.setVisible(true);
}
}
示例2: initTableData
import org.insightech.er.editor.model.dbexport.testdata.impl.SQLTestDataCreator; //导入依赖的package包/类
public void initTableData() {
if (this.table != null) {
this.editColumnTable.setVisible(false);
TestDataCreator testDataCreator = new SQLTestDataCreator();
testDataCreator.init(dialog.getTestData(), null);
this.editColumnTable.removeAllRow();
int num = this.getTestDataNum();
if (num > MAX_REPEAT_PREVIEW_NUM) {
num = MAX_REPEAT_PREVIEW_NUM;
}
for (int i = 0; i < num; i++) {
Object[] values = new Object[this.table.getExpandedColumns()
.size()];
int columnIndex = 0;
for (NormalColumn column : this.table.getExpandedColumns()) {
values[columnIndex++] = testDataCreator
.getMergedRepeatTestDataValue(i,
repeatTestData.getDataDef(column), column);
}
this.editColumnTable
.addRow(String.valueOf(this.editColumnTable
.getItemCount() + 1), values);
}
this.editColumnTable.setVisible(true);
}
}