当前位置: 首页>>代码示例>>Java>>正文


Java PersistentXmlImpl类代码示例

本文整理汇总了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());
}
 
开发者ID:roundrop,项目名称:ermasterr,代码行数:24,代码来源:DBUnitFlatXmlTestDataCreator.java

示例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());
}
 
开发者ID:roundrop,项目名称:ermasterr,代码行数:24,代码来源:DBUnitTestDataCreator.java

示例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());
}
 
开发者ID:kozake,项目名称:ermaster-k,代码行数:25,代码来源:DBUnitFlatXmlTestDataCreator.java

示例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());
}
 
开发者ID:kozake,项目名称:ermaster-k,代码行数:25,代码来源:DBUnitTestDataCreator.java

示例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());
}
 
开发者ID:roundrop,项目名称:ermasterr,代码行数:29,代码来源:DBUnitFlatXmlTestDataCreator.java

示例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());
}
 
开发者ID:roundrop,项目名称:ermasterr,代码行数:30,代码来源:DBUnitTestDataCreator.java

示例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());
}
 
开发者ID:kozake,项目名称:ermaster-k,代码行数:32,代码来源:DBUnitFlatXmlTestDataCreator.java

示例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());
}
 
开发者ID:kozake,项目名称:ermaster-k,代码行数:33,代码来源:DBUnitTestDataCreator.java


注:本文中的org.insightech.er.editor.persistent.impl.PersistentXmlImpl类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。