English 中文(简体)
包装Sql服务器和XML
原标题:Binding Sql Server and XML

我有一个Sql服务器数据库(2008年版数据库,2000年模式),我希望利用这一系统的数据生成一些XML文档。 我有XML这一图象。

我用三种方法这样做。

  1. SQL Server select FOR EXPLICIT

    问题不会是轻视的,但我很熟悉撰写q言。 问题是,产生XML将需要开展更多的行动,如改变一些 en,以加以扼杀。 因此,它将考虑:

    Sql服务器-(XML)-> Java

    xml Creat -> Postprocess -> Schema Validation -> xml file

    附属公司以案件等形式储存在Klaus。 判例! 标题!

  2. 日本宇宙航空研究开发机构生成了课堂和习俗 s问

    XML是根据应用逻辑I在java创建的,它将人工书写查询,以检索数据,并将其置于正确的标签/指令中。

    附属地储存在java法典中:

    1. in select queries (select number,... from ...)
    2. case.setNumber(rs.getInt("number"));
  3. 日本宇宙航空研究开发机构制作的课堂,询问较少。

    因此,我注意到,在2个地方,我有同样的信息,因此,我要储存这种具有约束力的文件。 然后,我可以提出某些问询和复制件,使用思考。

    储存方式:

    - <条码>hashmap<String,String> field,column

    -annotations to fields genereted from XML Schema using Annotate Plugin, then I get annotiatons for each field in class and generate query.

也许还有另一种方式我尚未考虑。

我要说的是,在一项非常简单的任务中,以专业方式做一些新事情。

问题回答

暂无回答




相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签