本文整理汇总了Java中org.insightech.er.editor.persistent.impl.PersistentXmlImpl类的典型用法代码示例。如果您正苦于以下问题:Java PersistentXmlImpl类的具体用法?Java PersistentXmlImpl怎么用?Java PersistentXmlImpl使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
PersistentXmlImpl类属于org.insightech.er.editor.persistent.impl包,在下文中一共展示了PersistentXmlImpl类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: writeDirectTestData
import org.insightech.er.editor.persistent.impl.PersistentXmlImpl; //导入依赖的package包/类
@Override
protected void writeDirectTestData(final ERTable table, final Map<NormalColumn, String> data, final String database) {
final StringBuilder sb = new StringBuilder();
sb.append("\t<");
sb.append(table.getNameWithSchema(database));
for (final NormalColumn column : table.getExpandedColumns()) {
final String value = Format.null2blank(data.get(column));
if (value != null && !"null".equals(value.toLowerCase())) {
sb.append(" ");
sb.append(column.getPhysicalName());
sb.append("=\"");
sb.append(PersistentXmlImpl.escape(value));
sb.append("\"");
}
}
sb.append("/>\r\n");
out.print(sb.toString());
}
示例2: writeDirectTestData
import org.insightech.er.editor.persistent.impl.PersistentXmlImpl; //导入依赖的package包/类
@Override
protected void writeDirectTestData(final ERTable table, final Map<NormalColumn, String> data, final String database) {
final StringBuilder sb = new StringBuilder();
sb.append("\t\t<row>\r\n");
for (final NormalColumn column : table.getExpandedColumns()) {
final String value = Format.null2blank(data.get(column));
if (value == null || "null".equals(value.toLowerCase())) {
sb.append("\t\t\t<null/>\r\n");
} else {
sb.append("\t\t\t<value>");
sb.append(PersistentXmlImpl.escape(value));
sb.append("</value>\r\n");
}
}
sb.append("\t\t</row>\r\n");
out.print(sb.toString());
}
示例3: writeDirectTestData
import org.insightech.er.editor.persistent.impl.PersistentXmlImpl; //导入依赖的package包/类
@Override
protected void writeDirectTestData(ERTable table,
Map<NormalColumn, String> data, String database) {
StringBuilder sb = new StringBuilder();
sb.append("\t<");
sb.append(table.getNameWithSchema(database));
for (NormalColumn column : table.getExpandedColumns()) {
String value = Format.null2blank(data.get(column));
if (value != null && !"null".equals(value.toLowerCase())) {
sb.append(" ");
sb.append(column.getPhysicalName());
sb.append("=\"");
sb.append(PersistentXmlImpl.escape(value));
sb.append("\"");
}
}
sb.append("/>\r\n");
out.print(sb.toString());
}
示例4: writeDirectTestData
import org.insightech.er.editor.persistent.impl.PersistentXmlImpl; //导入依赖的package包/类
@Override
protected void writeDirectTestData(ERTable table,
Map<NormalColumn, String> data, String database) {
StringBuilder sb = new StringBuilder();
sb.append("\t\t<row>\r\n");
for (NormalColumn column : table.getExpandedColumns()) {
String value = Format.null2blank(data.get(column));
if (value == null || "null".equals(value.toLowerCase())) {
sb.append("\t\t\t<null/>\r\n");
} else {
sb.append("\t\t\t<value>");
sb.append(PersistentXmlImpl.escape(value));
sb.append("</value>\r\n");
}
}
sb.append("\t\t</row>\r\n");
out.print(sb.toString());
}
示例5: writeRepeatTestData
import org.insightech.er.editor.persistent.impl.PersistentXmlImpl; //导入依赖的package包/类
@Override
protected void writeRepeatTestData(final ERTable table, final RepeatTestData repeatTestData, final String database) {
final StringBuilder sb = new StringBuilder();
for (int i = 0; i < repeatTestData.getTestDataNum(); i++) {
sb.append("\t<");
sb.append(table.getNameWithSchema(database));
for (final NormalColumn column : table.getExpandedColumns()) {
final RepeatTestDataDef repeatTestDataDef = repeatTestData.getDataDef(column);
final String value = getMergedRepeatTestDataValue(i, repeatTestDataDef, column);
if (value != null && !"null".equals(value.toLowerCase())) {
sb.append(" ");
sb.append(column.getPhysicalName());
sb.append("=\"");
sb.append(PersistentXmlImpl.escape(value));
sb.append("\"");
}
}
sb.append("/>\r\n");
}
out.print(sb.toString());
}
示例6: writeRepeatTestData
import org.insightech.er.editor.persistent.impl.PersistentXmlImpl; //导入依赖的package包/类
@Override
protected void writeRepeatTestData(final ERTable table, final RepeatTestData repeatTestData, final String database) {
final StringBuilder sb = new StringBuilder();
for (int i = 0; i < repeatTestData.getTestDataNum(); i++) {
sb.append("\t\t<row>\r\n");
for (final NormalColumn column : table.getExpandedColumns()) {
final RepeatTestDataDef repeatTestDataDef = repeatTestData.getDataDef(column);
final String value = getMergedRepeatTestDataValue(i, repeatTestDataDef, column);
if (value == null || "null".equals(value.toLowerCase())) {
sb.append("\t\t\t<null/>\r\n");
} else {
sb.append("\t\t\t<value>");
sb.append(PersistentXmlImpl.escape(value));
sb.append("</value>\r\n");
}
}
sb.append("\t\t</row>\r\n");
}
out.print(sb.toString());
}
示例7: writeRepeatTestData
import org.insightech.er.editor.persistent.impl.PersistentXmlImpl; //导入依赖的package包/类
@Override
protected void writeRepeatTestData(ERTable table,
RepeatTestData repeatTestData, String database) {
StringBuilder sb = new StringBuilder();
for (int i = 0; i < repeatTestData.getTestDataNum(); i++) {
sb.append("\t<");
sb.append(table.getNameWithSchema(database));
for (NormalColumn column : table.getExpandedColumns()) {
RepeatTestDataDef repeatTestDataDef = repeatTestData
.getDataDef(column);
String value = this.getMergedRepeatTestDataValue(i,
repeatTestDataDef, column);
if (value != null && !"null".equals(value.toLowerCase())) {
sb.append(" ");
sb.append(column.getPhysicalName());
sb.append("=\"");
sb.append(PersistentXmlImpl.escape(value));
sb.append("\"");
}
}
sb.append("/>\r\n");
}
out.print(sb.toString());
}
示例8: writeRepeatTestData
import org.insightech.er.editor.persistent.impl.PersistentXmlImpl; //导入依赖的package包/类
@Override
protected void writeRepeatTestData(ERTable table,
RepeatTestData repeatTestData, String database) {
StringBuilder sb = new StringBuilder();
for (int i = 0; i < repeatTestData.getTestDataNum(); i++) {
sb.append("\t\t<row>\r\n");
for (NormalColumn column : table.getExpandedColumns()) {
RepeatTestDataDef repeatTestDataDef = repeatTestData
.getDataDef(column);
String value = this.getMergedRepeatTestDataValue(i,
repeatTestDataDef, column);
if (value == null || "null".equals(value.toLowerCase())) {
sb.append("\t\t\t<null/>\r\n");
} else {
sb.append("\t\t\t<value>");
sb.append(PersistentXmlImpl.escape(value));
sb.append("</value>\r\n");
}
}
sb.append("\t\t</row>\r\n");
}
out.print(sb.toString());
}