SmartGWT idea where the realization of dynamic DataSource

The idea is to solve the problem when the Chinese title found. And thought, I will not do it myself

A DataSource definition. SmartGWT Lane, DataSource is the core of its metadata.

Here, DataSource actually two,

One is the client com.smartgwt.client.data.DataSource, this part is open source, you can freely create their own.

The other is server-side com.isomorphic.datasource.DataSource, this is inside the SmartGwtEE

Content, non-open source, but only in the Server-side use, not clients.

And I want to do dynamic DataSource, refers to the client to define a DataSource, where java classes can be used to describe the

Various Field, including the type or something. While in the service side, according to the client-defined DataSource automatically generate a service-side

DataSource, so can the need for a flexible definition, and all definitions are carried out through the java code, but also the

To compile-time checking, you can also bypass the issue of Chinese garbage.

Of course, now the Chinese garbage issue is resolved, this requirement becomes less urgent. The idea of recording what the future when the need arises again

To use this idea to achieve dynamic DataSource.

1. Server.properties inside the definition of the default datasource repo:

datasources.repo.default: org.simon.xxx.server.MyDSRepo

2. MyDSRepo inherited from FileSystemDSRepo, this is actually SmartGWT default DSRepo

3. In the public DataSource loadDS (String dsName) methods among the judging is not dynamic DataSource,

If so, then according to the client DataSource Class whether there is change, to decide whether to generate a new ds.xml file,

And then to the super to load.

How to determine whether the client DataSource Class has changed, is a problem. Of course, may not generate ds.xml file, but this

DSRepo will not be able to use the cache mechanism. The specific implementation, such as when required to say, at present did not come across such a demand, but have to say,

SmartGwtEE or for the expansion has left a variety of mechanisms.

分类:Web 时间:2009-01-08 人气:780
分享到:
blog comments powered by Disqus

相关文章

  • java code review checklist 2010-06-30

    java code review checklist Source: 21tx.com Importance of the activation level of inspection items naming a total of 20 named important whether the norms adopted in line? Whether the minimum length of 20 followed the principle of maximum information?

  • java commons cookbook book source code 2010-04-24

    java commons cookbook book source code

  • Response implementation of the java code files to download 2010-08-27

    // This is to achieve download class (servlet), Specific ideas the code below : // Can also connect to the database package com.message; import javax.servlet.*; import javax.servlet.http.*; import java.io.*; import java.util.*; public class FileDownS

  • Agile Development of Java code to write high-quality 2009-12-24

    Agile development concept has been popular for a very long time, the development of agile development iteration stage, we can through the five steps to effectively improve the quality of the entire project code. Java project development process, due

  • [Change] agile development of high-quality Java code to write 2009-09-29

    Agile development concept has been popular for a very long time, the development of agile development iteration stage, we can through the five steps to effectively improve the quality of the entire project code. Java project development process, due

  • Agile Java code to write high-quality 2010-03-10

    Source: IBM dW / Wang Yongkui | De idea of agile development has been popular for a long time in Agile Development Kaifa iteration stage, we can through the five steps to effectively improve the entire project code quality. Java project development p

  • Agile developers to write Java code quality 2010-07-20

    The concept of agile development has been popular for a very long time, in the agile development iterations in the development stage, we can through the five steps to effectively improve the quality of the entire project code. Java project developmen

  • I used Linux command of the swig - to C / C + + code for embedded development tools for Java and other languages 2010-12-01

    I used Linux command of the swig - to C / C + + code for embedded development tools for Java and other languages This link: http://codingstandards.javaeye.com/blog/830342 (Reprinted please specify link) Use Description SWIG Simplified Wrapper and Int

  • java code optimization and analysis tools 2011-08-04

    Original Address: http://www.iteye.com/news/22285 1. PMD from http://pmd.sourceforge.net/ PMD scans Java source code, look for potential problems like the following: Possible bug--try/catch/finally/switch statement returns a null value. Dead code - u

  • Java language coding standards (Java Code Conventions 2009-01-05

    At the beginning of Notes ") http://www.huihoo.org/code/java_code_conventions.html - Package and the introduction of statements (see "package and the introduction of statements") - Class and interface declarations (see "classes and int

iOS 开发

Android 开发

Python 开发

JAVA 开发

开发语言

PHP 开发

Ruby 开发

搜索

前端开发

数据库

开发工具

开放平台

Javascript 开发

.NET 开发

云计算

服务器

Copyright (C) codeweblog.com, All Rights Reserved.

CodeWeblog.com 版权所有 黔ICP备15002463号-1

processed in 0.418 (s). 12 q(s)