WO2011091727A1 - 一种数据动态处理的方法及装置 - Google Patents

一种数据动态处理的方法及装置 Download PDF

Info

Publication number
WO2011091727A1
WO2011091727A1 PCT/CN2011/070248 CN2011070248W WO2011091727A1 WO 2011091727 A1 WO2011091727 A1 WO 2011091727A1 CN 2011070248 W CN2011070248 W CN 2011070248W WO 2011091727 A1 WO2011091727 A1 WO 2011091727A1
Authority
WO
WIPO (PCT)
Prior art keywords
field
data
carrier
database
view
Prior art date
Application number
PCT/CN2011/070248
Other languages
English (en)
French (fr)
Inventor
涂华江
Original Assignee
深圳市同洲电子股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳市同洲电子股份有限公司 filed Critical 深圳市同洲电子股份有限公司
Publication of WO2011091727A1 publication Critical patent/WO2011091727A1/zh

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2457Query processing with adaptation to user needs
    • G06F16/24573Query processing with adaptation to user needs using data annotations, e.g. user-defined metadata
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/904Browsing; Visualisation therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/907Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually

Definitions

  • the present invention relates to the field of database technologies, and in particular, to a method and an apparatus for dynamic data processing. Background technique
  • the three-layer network structure refers to dividing the data processing process into three parts:
  • the first layer is a presentation layer (also called a client, a user interface layer), which provides a friendly access interface between the user and the system;
  • the layer is the middle layer (also called the application service layer), which is dedicated to the implementation of business logic;
  • the third layer is the database (also called the data service layer, data source layer), responsible for the storage, access and optimization of data information.
  • the existing presentation layer plays a role in displaying (displaying) data.
  • the existing data dynamic processing scheme based on the presentation layer is: Retrieving multiple tables or views of the same database, extracting associated table fields, in the database Or the middle layer organizes or processes the table fields, determines the data in the fields to be presented by the presentation layer, and then displays the determined data by the presentation layer.
  • the source of the data is single.
  • the data to be presented in the existing programs are all from the same database, and the source is too singular.
  • the data presented by the presentation layer cannot be changed. Since the organization and processing of data relationships are determined in the database or middle layer between presentations, the presentation layer is only responsible for presenting its data, and the data it exhibits cannot be changed.
  • an embodiment of the present invention discloses a method for dynamically processing data, including: Loading at least one database and loading at least one of the at least one database or view;
  • the data in the fields on the second carrier is processed in an application.
  • the embodiment of the present invention further provides an apparatus for dynamically processing data, including: a first loading module, configured to load at least one database, and load at least one of the at least one database;
  • a query module for all fields of the at least one table or view loaded from the first loading module
  • a second loading module configured to load the field queried by the query module onto the first carrier
  • a dynamic relationship establishing module configured to select any one or more fields from the first carrier, and drag the selected field to a second carrier, so that the second carrier establishes data with the selected field Relationship
  • a processing module configured to process data in a field on the second carrier in an application.
  • the present invention can first make the data source richer. Secondly, in the present invention, the method of dragging in the presentation layer can intuitively and dynamically establish data relationships and be in the presentation layer. Corresponding processing of data, including display, modification, deletion, etc., makes the presentation layer more flexible in processing data.
  • FIG. 1 is a schematic structural diagram of an embodiment of a data dynamic processing apparatus according to the present invention.
  • FIG. 2 is a data flow diagram of data processing of the data dynamic processing apparatus of the present invention.
  • FIG. 3 is a schematic structural diagram of an embodiment of a dynamic relationship establishing module of a data dynamic processing apparatus according to the present invention
  • FIG. 4 is a schematic structural diagram of an embodiment of a loading unit of a dynamic relationship establishing module according to the present invention
  • 5 is a schematic structural diagram of an embodiment of a processing module of a data dynamic processing apparatus according to the present invention
  • FIG. 6 is a flowchart of a first embodiment of a data dynamic processing method according to the present invention
  • FIG. 7 is a flowchart of a second embodiment of a data dynamic processing method according to the present invention.
  • Figure 8 is a schematic diagram of mouse drag implementation
  • FIG. 9 is a flowchart of a third embodiment of a data dynamic processing method according to the present invention.
  • FIG. 10 is a schematic diagram of database loading of a fourth embodiment of the data dynamic processing method of the present invention.
  • FIG. 11 is a schematic diagram of a table or view loading in a database in a fourth embodiment of the data dynamic processing method of the present invention.
  • FIG. 12 is a schematic diagram of field loading of a table or a view of a fourth embodiment of the data dynamic processing method of the present invention.
  • FIG. 13 is a schematic diagram of a first state in a data relationship establishment process of a fourth embodiment of the data dynamic processing method of the present invention.
  • FIG. 14 is a schematic diagram of a second state in a data relationship establishment process according to a fourth embodiment of the data dynamic processing method of the present invention.
  • FIG. 15 is a schematic diagram of a third state in a data relationship establishment process of a fourth embodiment of the data dynamic processing method of the present invention.
  • 16 is a fourth state diagram of a data relationship establishment process in a fourth embodiment of the data dynamic processing method according to the present invention.
  • FIG. 17 is a schematic diagram of application processing of a fourth embodiment of a data dynamic processing method according to the present invention. detailed description
  • FIG. 1 is a schematic structural diagram of an embodiment of a data dynamic processing apparatus according to the present invention.
  • the apparatus includes: a first loading module 10, a query module 20, a second loading module 30, and a dynamic relationship establishing module. 40 and processing module 50.
  • the first loading module 10 is configured to load at least one database, and load at least one table or view in the database;
  • the configuration management interface of the database by entering the configuration management interface of the database, inputting the IP or machine name where the database server is located, inputting or selecting one or more databases, inputting or selecting at least one database, and loading by the first loading module 10.
  • the data table or the data view included in the loaded database is queried, and at least one of the tables or views is selected to be loaded by the first loading module 10, specifically, the data table or the data view is also It can be loaded on a carrier (such as a tree structure).
  • the specific loading process is the same as the loading process of the existing data source configuration process.
  • the configuration of the data source includes but is not limited to loading the database, and can also load XML (Extensible Markup Language) data files, or XSD (XML Schemas Definition) data files, etc. This will not be repeated.
  • the query module 20 is configured to query all fields of the table or view loaded from the first loading module 10;
  • the second loading module 30 is configured to load the field queried by the query module 20 onto the first carrier;
  • the first carrier is located in the presentation layer for accommodating or loading data.
  • the first carrier is an entity in an application, and may include, but is not limited to, any one or more of a tree structure, a window, and a control.
  • the dynamic relationship establishing module 40 is configured to select any one or more fields from the first carrier, and drag the selected field to the second carrier, so that the second carrier and the selected field Establish data relationships;
  • the second carrier is located in the presentation layer for accommodating or loading data.
  • the second carrier is an entity in the application, and may include, but is not limited to, any one or more of a tree structure, a window, and a control.
  • the processing module 50 is configured to process data in a field on the second carrier in an application.
  • the processing of the processing module 50 in the application is different according to each application, and the processing manner is different.
  • the processing module 50 processes the data in the field on the second carrier in the application. Including but not limited to: Display the data in this field, delete the number in the field According to and modify any one or more of the data in the field.
  • the apparatus may further include: a transmitting module 60.
  • the sending module 60 is configured to send data in a field processed by the processing module 50 to a database in which the field is located;
  • the processing module 50 may further send the data in the processed field to another database.
  • the sending module 60 may resend the processed data to the database. , so that subsequent applications can use the data in the database.
  • the sending module 60 configured to send data in the processed field of the processing module 50 to a new application
  • the data access can have multiple applications at the same time.
  • the sending module 60 can also send the processed data to other applications to use the data, so that , can handle other applications in one application.
  • FIG. 2 is a data flow diagram of data processing of the device for data dynamic processing according to the present invention.
  • the invention enriches the data source by extracting data in one or more databases; the method of dragging in the presentation layer, intuitively and dynamically establishing data relationships, and correspondingly processing the data in the presentation layer, including Display, modify, delete, etc., make the presentation layer more flexible in processing data.
  • FIG. 3 is a schematic structural diagram of an embodiment of a dynamic relationship establishing module of a data dynamic processing apparatus according to the present invention.
  • the dynamic relationship establishing module 40 may specifically include: a selecting unit 401, a dragging unit 402, a storage unit 403, and a loading unit. 404 and acquisition unit 405.
  • the selecting unit 401 is configured to select any one or more fields from the first carrier.
  • the data may be selected from the first carrier according to some data that needs to be used in the current application.
  • One or more fields, in the specific implementation, can be selected by mouse click.
  • the dragging unit 402 is configured to drag the selected field to the second carrier
  • the dragging unit 402 can drag the field by using a mouse, for example: use the left mouse button (or right button) to click the selected field, and then drag the field to the second carrier, and then release the mouse.
  • the left button (or right button) realizes the dragging process of the field, and the dragging process more intuitively shows the dynamic establishment of the data relationship.
  • the storage unit 403 is configured to record, during the dragging by the dragging unit 402, the dragged field, the table or view where the dragged field is located, and the database where the dragged field is located
  • the loading unit 404 is configured to load the dragged field to the second carrier;
  • FIG. 4 is a schematic structural diagram of an embodiment of the loading unit 404 of the dynamic relationship establishing module of the present invention.
  • the unit 404 may specifically include: a determining unit 411, a first loading unit 412, and a second loading unit 413.
  • the determining unit 411 is configured to determine whether there is a field on the second carrier
  • the first loading unit 412 is configured to: when the determining unit 411 determines YES, load the dragged field to the second carrier to replace the original field;
  • the second loading unit 413 is configured to directly load the dragged field to the second carrier when the determining unit 411 determines to be no.
  • the data relationship between the second carrier and the field thereon is established.
  • the data in the extracted field in the database can be connected according to the data relationship to perform corresponding processing.
  • the invention enriches the data source by extracting data in one or more databases; the method of dragging in the presentation layer, intuitively and dynamically establishing data relationships, and correspondingly processing the data in the presentation layer, including Display, modify, delete, etc., make the presentation layer more flexible in processing data.
  • a processing module 50 of the data dynamics processing apparatus of the present invention will be described in detail below.
  • FIG. 5 is a schematic structural diagram of an embodiment of a processing module 50 of the data dynamic processing apparatus of the present invention.
  • the processing module 50 may specifically include: a data connection unit 501 and a data reading unit 502.
  • the data connection unit 501 is configured to acquire the database and the table according to the obtaining unit 405. Or a view, connected to the acquired database, and querying the obtained table or view; the data reading unit 502, configured to find the first in the table or view queried from the data connection unit 501 Two fields on the carrier, and read the data in the field.
  • the processing module 50 may further include: a display unit 503, a modification unit 504, and a deletion unit 505.
  • the display unit 503 is configured to display data read by the data reading unit in an application; the modifying unit 504 is configured to modify data read by the data reading unit in an application; the deleting unit 505, The data read by the data reading unit is deleted in the application.
  • the processing module 50 may include any one or more of the foregoing display unit 503, modification unit 504, and deletion unit 505, which is mainly determined by the processing manner of each application, because each There are different applications and different processing methods. Therefore, the processing module 50 is not limited to the units corresponding to the above three processing modes. Specifically, the foregoing three processing manners of the processing module 50 may exist at the same time, and the simultaneous processing only needs to read the data to be processed through the data connecting unit 501 and the data reading unit 502, and then perform corresponding processing. This technical drawback is overcome by overcoming the need to pre-establish a specific database and data table connection for each processing in the prior art.
  • the invention enriches the data source by extracting data in one or more databases; the method of dragging in the presentation layer, intuitively and dynamically establishing data relationships, and correspondingly processing the data in the presentation layer, including Display, modify, delete, etc., make the presentation layer more flexible in processing data.
  • FIG. 6 is a flowchart of a first embodiment of a data dynamic processing method according to the present invention. As shown in FIG. 6, the method includes:
  • S101 loading at least one database, and loading at least one table or view in the database
  • S102 querying all fields of the loaded table or view, and loading the field onto the first carrier
  • Process data in a field on the second carrier in an application is different according to the difference of each application, for example, the processing manner of the S104 processing the field on the second carrier in the application may include, but is not limited to, displaying data in the field, deleting Any one or more of the data in the field and the data in the modified field.
  • the invention enriches the data source by extracting data in one or more databases; the method of dragging in the presentation layer, intuitively and dynamically establishing data relationships, and correspondingly processing the data in the presentation layer, including Display, modify, delete, etc., make the presentation layer more flexible in processing data.
  • FIG. 7 a flowchart of a second embodiment of a data dynamic processing method according to the present invention. specifically, the embodiment shown in FIG. 7 embodies a process for dynamically establishing a data relationship; as shown in FIG. 7, the method includes:
  • S201 selecting any one or more fields from the first carrier.
  • one or more of the data may be selected from the first carrier according to some data that needs to be used in the current application. Fields, in the specific implementation, can be selected by mouse click.
  • the mouse drags the selected field to the second carrier; in the specific implementation, for example: use the left mouse button (or right button) to click on the selected field, and then drag the field to the second carrier, then release the left mouse button
  • the key (or right button) realizes the dragging process of the field, and the dragging process more intuitively shows the dynamic establishment of the data relationship.
  • Figure 8 is a schematic diagram of mouse dragging; as shown in Figure 8:
  • Left mouse button selects a table field on the carrier, hold down the mouse and drag the field; during the dragging process, record the dragged table field to the memory, and then call the system API (Application Programming Interface, application programming interface) starts listening to the mouse state; the mouse dragged field enters the second carrier, the second carrier captures the mouse cursor, changes the display style of the cursor; releases the mouse on the second carrier, API monitors the mouse button Release, then assign the data of the memory stored field to the second carrier, release the API, stop the mouse monitoring, and set the mouse state to the initial state.
  • the process of mouse dragging is similar to the existing use of the mouse and is not mentioned here. It is more intuitive to use the mouse to drag to create a data relationship.
  • step S205 it is determined whether there is a field on the second carrier, if the determination result is yes, proceed to step S205; if the determination result is no, proceed to step S206;
  • replacing the original field is implemented by loading the dragged field to the second carrier.
  • the invention enriches the data source by extracting data in one or more databases; the method of dragging in the presentation layer, intuitively and dynamically establishing data relationships, and correspondingly processing the data in the presentation layer, including Display, modify, delete, etc., make the presentation layer more flexible in processing data.
  • FIG. 9 is a flowchart of a third embodiment of a data dynamic processing method according to the present invention, the method includes:
  • the invention enriches the data source by extracting data in one or more databases; the method of dragging in the presentation layer, intuitively and dynamically establishing data relationships, and correspondingly processing the data in the presentation layer, including Display, modify, delete, etc., make the presentation layer more flexible in processing data.
  • FIGS. 10-17 are schematic diagrams showing a fourth embodiment of a data dynamic processing method according to the present invention. See Figure 10 for a schematic diagram of database loading, as shown in Figure 10:
  • FIG. 11 is a schematic diagram of loading of any table or view in the database, as shown in FIG. 11 : Select a database from the available list above, and when the user clicks OK, the data table included in the database can be queried. Or data view. These tables or views can then be loaded by the tree structure (carrier). Further, as shown in FIG. 11, the tree structure takes the database name as the root node, the table and the view as the child nodes, and the table name and the view name as leaves.
  • Figure 13-16 is a schematic diagram of each state in the process of establishing a data relationship between a field and a second carrier (control in the web page: display field).
  • FIG. 13 it is a schematic diagram of a first state in a process of establishing a data relationship according to the present invention. As shown in FIG.
  • FIG. 14 is a schematic diagram of a second state in the process of establishing a data relationship according to the present invention, as shown in FIG.
  • FIG. 15 a third state diagram of the data relationship establishment process of the present invention is shown in FIG.
  • FIG. 16 is a fourth state diagram of the data relationship establishment process of the present invention, as shown in FIG.
  • the display domain gets the dragged leaf node data (field) and establishes a data relationship with the field.
  • the application processing of the fourth embodiment of the data dynamic processing method of the present invention is provided.
  • the application in this embodiment is to open a news webpage, and the application processing is data of a display field, as shown in FIG.
  • the present invention enriches the data source by extracting data in one or more databases; the method of dragging in the presentation layer, intuitively and dynamically establishing data relationships, and at the presentation layer
  • the data is processed accordingly, including display, modification, deletion, etc., to make the presentation layer more flexible in processing data.

Description

一种数据动态处理的方法及装置
技术领域
本发明涉及数据库技术领域, 尤其涉及一种数据动态处理的方法及装置。 背景技术
在网络技术中, 三层网络结构应用较为广泛。 所述三层网络结构, 指的是 将数据处理过程分为三部分: 第一层是表现层(也叫客户端, 用户界面层), 其提供用户与系统之间的友好访问界面; 第二层是中间层(也叫应用服务层), 其专司业务逻辑的实现; 第三层是数据库(也叫数据服务层、 数据源层), 负 责数据信息的存储、 访问及其优化。
现有的表现层对数据主要起到展现 (显示)的作用, 基于该表现层现有的 数据动态处理的方案为: 检索同一数据库的多个表或视图,提取相关联的表字 段,在数据库或者中间层组织或处理这些表字段,确定表现层要展现的字段中 的数据, 然后由表现层显示这些确定的数据。
发明人发现, 现有的技术方案存在以下缺陷:
首先, 数据的来源单一。 现有的方案所要展现的数据均来自同一数据库, 其来源太过单一。
其次,表现层所展现的数据不能变动。 由于数据关系的组织和处理在数据 库或者中间层, 其在表现层展现之间即提前确定, 因此, 表现层仅负责展现其 数据, 其展现的数据不能变动。
再次, 数据的组织处理不够直观。 由于表现层对数据仅为展现, 不进行数 据关系的处理, 其数据关系建立在数据库或中间层, 整个数据关系的处理不够 直观。 发明内容
本发明的目的在于,提供一种数据动态处理的方法及装置, 其数据来源更 为丰富, 同时, 在表现层动态建立数据关系, 使表现层对数据的处理更为直观 和灵活。
为了实现上述目的,本发明实施例公开了一种数据动态处理的方法,包括: 加载至少一个数据库、以及加载所述至少一个数据库中的至少一个表或视 图;
查询所述加载的至少一个表或视图的所有字段,并将查询到的字段加载到 第一载体上;
从所述第一载体上选择任一个或多个字段,将所述选择的字段拖移至第二 载体, 使所述第二载体与所述选择的字段建立数据关系;
在应用中处理所述第二载体上的字段中的数据。
相应地, 本发明实施例还提供了一种数据动态处理的装置, 包括: 第一加载模块, 用于加载至少一个数据库、 以及加载所述至少一个数据库 中的至少一个表或视图;
查询模块,用于从所述第一加载模块加载的所述至少一个表或视图的所有 字段;
第二加载模块, 用于将所述查询模块查询到的所述字段加载到第一载体 上;
动态关系建立模块, 用于从所述第一载体上选择任一个或多个字段,将所 述选择的字段拖移至第二载体上,使所述第二载体与所述选择的字段建立数据 关系;
处理模块, 用于在应用中处理所述第二载体上的字段中的数据。
本发明通过在一个或多个数据库中提取数据,首先可以使数据来源更为丰 富; 其次, 本发明中在表现层进行拖移的方式, 可以直观的、 动态的建立数据 关系, 并在表现层对数据进行相应的处理, 包括显示、 修改、 删除等等, 使表 现层对数据的处理更为灵活。 附图说明
图 1为本发明的数据动态处理装置的实施例的结构示意图;
图 2为本发明的数据动态处理装置的数据处理的数据流图;
图 3 为本发明的数据动态处理装置的动态关系建立模块的实施例的结构 示意图;
图 4为本发明的动态关系建立模块的加载单元的实施例的结构示意图; 图 5为本发明的数据动态处理装置的处理模块的实施例的结构示意图; 图 6为本发明的数据动态处理方法的第一实施例的流程图;
图 7为本发明的数据动态处理方法的第二实施例的流程图;
图 8为鼠标拖移实现的示意图;
图 9为本发明的数据动态处理方法的第三实施例的流程图;
图 10 为本发明的数据动态处理方法的第四实施例的数据库加载的示意 图;
图 11为本发明的数据动态处理方法的第四实施例的数据库中表或视图加 载的示意图;
图 12为本发明的数据动态处理方法的第四实施例的表或视图的字段加载 的示意图;
图 13为本发明的数据动态处理方法的第四实施例的数据关系建立过程中 的第一状态示意图;
图 14为本发明的数据动态处理方法的第四实施例的数据关系建立过程中 的第二状态示意图;
图 15为本发明的数据动态处理方法的第四实施例的数据关系建立过程中 的第三状态示意图;
图 16为本发明的数据动态处理方法的第四实施例的数据关系建立过程中 的第四状态示意图;
图 17为本发明的数据动态处理方法的第四实施例的应用处理的示意图。 具体实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清 楚、 完整地描述, 显然, 所描述的实施例仅仅是本发明一部分实施例, 而不是 全部的实施例。基于本发明中的实施例, 本领域普通技术人员在没有作出创造 性劳动前提下所获得的所有其他实施例, 都属于本发明保护的范围。
请参见图 1 , 为本发明的数据动态处理装置的实施例的结构示意图; 如图 1所示, 该装置包括: 第一加载模块 10, 查询模块 20, 第二加载模块 30, 动 态关系建立模块 40和处理模块 50。 该第一加载模块 10, 用于加载至少一个数据库、 以及加载所述数据库中 的至少一个表或视图;
在具体实现中, 可通过进入数据库的配置管理界面,输入数据库服务器所 在的 IP或机器名, 输入或选择一个或多个数据库, 输入或选择至少一个数据 库, 通过该第一加载模块 10进行加载, 数据库加载成功后, 查询出所述加载 的数据库中所包含的数据表或数据视图,并从中选择至少一个这些表或视图通 过该第一加载模块 10进行加载, 具体地, 数据表或数据视图也可以加载在载 体(比如: 树结构)上, 具体的加载过程与现有的数据源的配置过程的加载相 同, 当选择一个数据库进行加载时, 与现有技术兼容。 另外, 对数据源的配置 包括但并不限于加载数据库, 还可加载 XML ( Extensible Markup Language, 可扩展标记语言 )数据文件, 或是 XSD ( XML Schemas Definition, XML结构 定义)数据文件等等, 在此不进行赘述。
该查询模块 20, 用于从所述第一加载模块 10加载的所述表或视图查询所 有字段;
该第二加载模块 30, 用于将所述查询模块 20查询到的所述字段加载到第 一载体上;
具体实现中, 该第一载体位于表现层, 用于容置或装载数据。 具体地, 该 第一载体为应用程序中的实体, 可以包括但不限于: 树结构、 窗口和控件中的 任一种或多种。
该动态关系建立模块 40, 用于从所述第一载体上选择任一个或多个字段, 将所述选择的字段拖移至第二载体上,使所述第二载体与所述选择的字段建立 数据关系;
在具体实现中,该第二载体为位于表现层,用于容置或装载数据。具体地, 该第二载体为应用程序中的实体, 可以包括但不限于: 树结构、 窗口和控件中 的任一种或多种。
该处理模块 50, 用于在应用中处理所述第二载体上的字段中的数据。 具体实现中, 处理模块 50在应用中的处理根据每个应用的不同, 其处理 方式也不同, 比如: 该处理模块 50在应用中处理所述第二载体上的字段中的 数据的处理方式可以包括但不限于: 显示该字段中的数据,删除该字段中的数 据和修改该字段中的数据中的任一种或多种。
再请参见图 1 , 该装置还可以包括: 发送模块 60。
该发送模块 60, 用于将所述处理模块 50处理后的字段中的数据发送至所 述字段所在的数据库;
所述处理模块 50还可以将处理后的字段中的数据发送至其他数据库, 具 体实现中, 该处理模块 50对字段的数据进行处理后, 该发送模块 60可以将处 理后的数据重新发送至数据库, 以便于后续的应用使用数据库中的数据。
或: 该发送模块 60, 用于将所述处理模块 50处理后的字段中的数据发送 至新的应用;
具体实现中, 数据访问可以同时存在多个应用, 那么, 该处理模块 50对 字段的数据进行相应的处理后, 该发送模块 60还可以将处理后的数据发送给 其他的应用使用该数据, 这样, 可以实现在一个应用程序中处理其他应用。
本实施例的数据动态处理的数据流具体可参见图 2, 为本发明的数据动态 处理的装置对数据处理的数据流图。
本发明通过在一个或多个数据库中提取数据,使数据来源更为丰富; 在表 现层进行拖移的方式, 直观的、 动态的建立数据关系, 并在表现层对数据进行 相应的处理, 包括显示、 修改、 删除等等, 使表现层对数据的处理更为灵活。
为了更清楚的说明本发明,下面将对本发明的数据动态处理装置的动态关 系建立模块作详细的介绍。
请参见图 3 , 为本发明的数据动态处理装置的动态关系建立模块的实施例 的结构示意图; 该动态关系建立模块 40具体可以包括: 选择单元 401 , 拖移 单元 402, 存储单元 403 , 加载单元 404和获取单元 405。
该选择单元 401 , 用于从所述第一载体上选择任一个或多个字段; 具体实现中, 可以根据在本次应用中需要使用某些数据,从所述第一载体 上选择这些数据所在的一个或多个字段, 具体实现中, 可以通过鼠标点击实现 选择。
该拖移单元 402, 用于拖移所述选择的字段至第二载体;
具体实现中, 该拖移单元 402可通过鼠标进行字段的拖移, 比如: 用鼠标 左键(或右键)点住所选择的字段, 然后拖动该字段至第二载体后, 松开鼠标 左键(或右键), 即实现了字段的拖移过程, 该拖移的过程较为直观的展示了 数据关系的动态建立。
该存储单元 403 , 用于在所述拖移单元 402拖移的过程中, 记录所述拖移 的字段、所述拖移的字段所在的表或视图,以及所述拖移的字段所在的数据库; 该加载单元 404, 用于加载所述拖移的字段至所述第二载体;
经过该加载单元 404加载后, 第二载体即装载了该拖移的字段; 具体实现中, 请参见图 4, 为本发明的动态关系建立模块的加载单元 404 的实施例的结构示意图; 该加载单元 404具体可以包括: 判断单元 411 , 第一 加载单元 412和第二加载单元 413。
该判断单元 411 , 用于判断所述第二载体上是否有字段;
该第一加载单元 412, 用于当所述判断单元 411判断为是时, 加载所述拖 移的字段至所述第二载体以替换原有字段;
该第二加载单元 413 , 用于当所述判断单元 411判断为否时, 直接加载所 述拖移的字段至所述第二载体。
再请参见图 3: 表或视图和所在的数据库;
该获取单元 405进行相应获取后,即建立了第二载体与其上的字段的数据 关系, 在应用中, 即可以根据数据关系, 连接到数据库中提取字段中的数据进 行相应的处理。
本发明通过在一个或多个数据库中提取数据,使数据来源更为丰富; 在表 现层进行拖移的方式, 直观的、 动态的建立数据关系, 并在表现层对数据进行 相应的处理, 包括显示、 修改、 删除等等, 使表现层对数据的处理更为灵活。
为了更清楚的说明本发明,下面将对本发明的数据动态处理装置的处理模 块 50作详细的介绍。
请参见图 5 , 为本发明的数据动态处理装置的处理模块 50的实施例的结 构示意图; 该处理模块 50具体可以包括: 数据连接单元 501和数据读取单元 502。
该数据连接单元 501 , 用于根据所述获取单元 405获取的所述数据库、 表 或视图, 连接到所述获取的数据库, 并查询出所述获取的表或视图; 该数据读取单元 502, 用于从所述数据连接单元 501查询到的表或视图中 查找到所述第二载体上的字段, 并读取所述字段中的数据。
再请参见图 5 , 该处理模块 50还可以包括: 显示单元 503 , 修改单元 504 和删除单元 505。
该显示单元 503 , 用于在应用中显示所述数据读取单元读取的数据; 该修改单元 504, 用于在应用中修改所述数据读取单元读取的数据; 该删除单元 505 , 用于在应用中删除所述数据读取单元读取的数据。
具体实现中, 该处理模块 50可以包括上述的显示单元 503 ,修改单元 504 和删除单元 505中的任一种或多种,这主要是由对每个应用的处理方式所决定 的, 由于每个应用存在不同, 其处理方式也不同, 因此, 该处理模块 50并不 限于上述三种处理方式所对应的单元。 具体地, 该处理模块 50的上述三种处 理方式可以同时存在,其同时处理只需要通过上述的数据连接单元 501和数据 读取单元 502读取到要处理的数据, 然后进行相应的处理, 这样就克服了现有 技术中每次进行处理都需要预先建立特定的数据库和数据表连接这个技术缺 陷。
本发明通过在一个或多个数据库中提取数据,使数据来源更为丰富; 在表 现层进行拖移的方式, 直观的、 动态的建立数据关系, 并在表现层对数据进行 相应的处理, 包括显示、 修改、 删除等等, 使表现层对数据的处理更为灵活。
为了更清楚的说明本发明,下面将对本发明的数据动态处理方法作详细的 介绍。
请参见图 6, 为本发明的数据动态处理方法的第一实施例的流程图; 如图 6所示, 该方法包括:
S101 ,加载至少一个数据库、以及加载所述数据库中的至少一个表或视图; S102,查询所述加载的表或视图的所有字段,将所述字段加载到第一载体 上;
5103 ,从所述第一载体上选择任一个或多个字段,将所述选择的字段拖移 至第二载体, 使所述第二载体与所述选择的字段建立数据关系;
5104, 在应用中处理所述第二载体上的字段中的数据。 具体实现中,根据每个应用的不同, S104的处理方式也不同, 比如: S104 在应用中处理所述第二载体上的字段的处理方式可以包括但不限于:显示该字 段中的数据, 删除该字段中的数据和修改该字段中的数据中的任一种或多种。
本发明通过在一个或多个数据库中提取数据,使数据来源更为丰富; 在表 现层进行拖移的方式, 直观的、 动态的建立数据关系, 并在表现层对数据进行 相应的处理, 包括显示、 修改、 删除等等, 使表现层对数据的处理更为灵活。
请参见图 7, 为本发明的数据动态处理方法的第二实施例的流程图; 具体 地, 图 7所示实施例体现了数据关系动态建立的流程; 如图 7所示, 该方法包 括:
S201 , 从所述第一载体上选择任一个或多个字段; 具体实现中, 可以根据 在本次应用中需要使用某些数据,从所述第一载体上选择这些数据所在的一个 或多个字段, 具体实现中, 可以通过鼠标点击实现选择。
5202, 鼠标拖移所述选择的字段至第二载体; 具体实现中, 比如: 用鼠标 左键(或右键)点住所选择的字段, 然后拖动该字段至第二载体后, 松开鼠标 左键(或右键), 即实现了字段的拖移过程, 该拖移的过程较为直观的展示了 数据关系的动态建立。
具体实现中, 鼠标拖移实现过程可参见图 8, 为鼠标拖移实现的示意图; 如图 8所示:
鼠标左键(右键)选择载体上的一个表字段, 按住鼠标不放, 拖移字段; 在拖移过程中, 记录拖移的表字段到内存有存储单元, 然后可以调用系统 API ( Application Programming Interface, 应用程序编程接口)开始监听鼠标状态; 鼠标拖移的字段进入第二载体中, 第二载体捕获鼠标的光标, 改变光标的显示 样式; 在第二载体上松开鼠标, API监听鼠标按键松开, 然后把内存存储的字 段的数据赋给第二载体, 释放 API, 停止鼠标监听, 设置鼠标状态为初态。 鼠 标拖移的过程与现有对鼠标的利用相类似,在此不进行赞述。使用鼠标拖移来 实现数据关系的建立, 更为直观。
再请参见图 7:
5203 , 记录所述拖移的字段、 所述拖移的字段所在的表或视图, 以及所述 拖移的字段所在的数据库; 5204,判断第二载体上是否有字段,如果判断结果为是,则进行步骤 S205; 如果判断结果为否, 则进行步骤 S206;
5205 , 替换原有字段; 具体实现中, 对原有字段进行替换通过加载所述拖 移的字段至所述第二载体来实现。
S206, 直接加载所述拖移的字段至所述第二载体;
S207,获取所述拖移的字段所在表或视图, 以及所述拖移的字段所在的数 据库。
本发明通过在一个或多个数据库中提取数据,使数据来源更为丰富; 在表 现层进行拖移的方式, 直观的、 动态的建立数据关系, 并在表现层对数据进行 相应的处理, 包括显示、 修改、 删除等等, 使表现层对数据的处理更为灵活。
请参见图 9, 为本发明的数据动态处理方法的第三实施例的流程图, 该方 法包括:
S301 , 根据获取的数据库、 表或视图, 连接到所述获取的数据库, 并查询 出所述获取的表或视图;
S302,从所述查询到的表或视图中查找到所述第二载体上的字段,并读取 所述字段上的数据;
5303 , 在应用中显示 S302中读取的数据;
5304, 在应用中修改 S302中读取的数据;
5305 , 在应用中删除 S302中读取的数据;
S306, 发送经 S303、 S304和 S305处理后的数据至所述数据所在的数据 库, 或发送经 S303、 S304和 S305处理后的数据至新的应用。
本发明通过在一个或多个数据库中提取数据,使数据来源更为丰富; 在表 现层进行拖移的方式, 直观的、 动态的建立数据关系, 并在表现层对数据进行 相应的处理, 包括显示、 修改、 删除等等, 使表现层对数据的处理更为灵活。
为了更清楚的说明本发明, 下面将以一个具体实例,对本发明的数据动态 处理方法作详细的介绍。
图 10-17为本发明的数据动态处理方法的第四实施例的示意图。请参见图 10, 为数据库加载的示意图, 如图 10所示:
通过数据库配置管理的界面, 输入数据库服务器所在的 IP或机器名; 输 入或选择数据库; 输入用户名和密码; 输入数据库的描述(主要是为了方便管 理)。 然后点击保存, 用用户名和密码尝试连接数据库所在的服务器, 如果连 接成功则添加到可用列表, 否则提示出错。 当成功连接后, 则完成了数据库的 加载。
请参见图 11 ,为数据库中任一个表或视图的加载的示意图,如图 11所示: 从上述的可用列表中选择一个数据库, 用户点击确定时, 即可查询出该数 据库所包含的数据表或数据视图。 然后, 可以树结构(载体)加载这些表或视 图。 进一步如图 11所示, 该树结构是以数据库名作根节点, 表和视图做子节 点, 表名和视图名做叶子。
请参见图 12, 为表或视图的字段加载的示意图, 如图 12所示:
选择任一个表或视图,点击确定的时候即可查询出该表或视图所的所有字 段, 把这些字段添加到树结构(第一载体)上。 其中, 数据库名作根节点, 表 或视图做子节点, 字段做叶子。
图 13-16为字段与第二载体(网页中的控件: 显示域)建立数据关系的过 程中的各状态下的示意图。 请参见图 13 , 为本发明数据关系建立过程中的第 一状态示意图; 如图 13所示:
如上述, 已经有了数据库, 数据表(视图 )和字段;
请参见图 14, 为本发明数据关系建立过程中的第二状态示意图, 如图 14 所示:
点击数据表树的叶节点, 选中其中的一个字段;
请参见图 15 , 为本发明数据关系建立过程中的第三状态示意图, 如图 15 所示:
按下鼠标左键(右键) 不放, 把鼠标移动到应用网页中, 在拖移过程中, 记录该叶节点并监听鼠标状态, 在显示域的地方松开鼠标, 停止监听, 恢复鼠 标至初始^ 态;
请参见图 16, 为本发明数据关系建立过程中的第四状态示意图, 如图 16 所示:
显示域即获取拖移的叶节点数据(字段), 与该字段建立数据关系。
请参见图 17, 为本发明的数据动态处理方法的第四实施例的应用处理的 示意图, 本实施例中的应用为打开新闻网页, 应用处理是显示字段的数据, 如 图 17所示:
通过上述操作, 连接到数据库服务器,从数据库的数据表或视图中提取相 应字段的数据, 然后在网页的显示域的位置显示相应的数据。
通过上述实施例的描述, 本发明通过在一个或多个数据库中提取数据,使 数据来源更为丰富;在表现层进行拖移的方式,直观的、动态的建立数据关系, 并在表现层对数据进行相应的处理, 包括显示、 修改、 删除等等, 使表现层对 数据的处理更为灵活。
以上所揭露的仅为本发明一种较佳实施例而已,当然不能以此来限定本发明之 权利范围, 本领域普通技术人员可以理解实现上述实施例的全部或部分流程, 并依本发明权利要求所作的等同变化, 仍属于发明所涵盖的范围。

Claims

权 利 要 求
1、 一种数据动态处理的方法, 其特征在于, 包括:
加载至少一个数据库、以及加载所述至少一个数据库中的至少一个表或视 图;
查询所述加载的至少一个表或视图的所有字段,并将查询到的字段加载到 第一载体上;
从所述第一载体上选择任一个或多个字段,将所述选择的字段拖移至第二 载体, 使所述第二载体与所述选择的字段建立数据关系;
在应用中处理所述第二载体上的字段中的数据。
2、 如权利要求 1所述的方法, 其特征在于, 所述从所述第一载体上选择 任一个或多个字段,将所述选择的字段拖移至第二载体,使所述第二载体与所 述选择的字段建立数据关系, 包括:
从所述第一载体上选择任一个或多个字段;
拖移所述选择的字段至第二载体, 并在所述拖移过程中,在内存中记录所 述拖移的字段、所述拖移的字段所在的表或视图, 以及所述拖移的字段所在的 数据库;
加载所述拖移的字段至所述第二载体,并从所述内存中获取所述拖移的字 段所在的表或视图和所在的数据库。
3、 如权利要求 2所述的方法, 其特征在于, 所述加载所述拖移的字段至 所述第二载体, 包括:
判断所述第二载体上是否有字段,如果是, 则加载所述拖移的字段至所述 第二载体以替换所述第二载体上的原有字段;
如果否, 则直接加载所述拖移的字段至所述第二载体。
4、 如权利要求 3所述的方法, 其特征在于, 所述在应用中处理所述第二 载体上的字段中的数据, 包括:
根据所述获取的所述数据库、 表或视图, 连接到所述获取的数据库, 并查 询出所述获取的表或视图;
从所述查询到的表或视图中查找到所述第二载体上的字段,并读取所述查 找到的字段中的数据;
在应用中显示所述读取的数据。
5、 如权利要求 3所述的方法, 其特征在于, 所述在应用中处理所述第二 载体上的字段中的数据, 包括:
根据所述获取的所述数据库、 表或视图, 连接到所述获取的数据库, 并查 询出所述获取的表或视图;
从所述查询到的表或视图中查找到所述第二载体上的字段,并读取所述查 找到的字段中的数据;
在应用中修改所述读取的数据。
6、 如权利要求 3所述的方法, 其特征在于, 所述在应用中处理所述第二 载体上的字段中的数据, 包括:
根据所述获取的所述数据库、 表或视图, 连接到所述获取的数据库, 并查 询出所述获取的表或视图;
从所述查询到的表或视图中查找到所述第二载体上的字段,并读取所述查 找到的字段中的数据;
在应用中删除所述读取的数据。
7、 如权利要求 4-6任一项所述的方法, 其特征在于, 所述在应用中处理 所述第二载体上的字段之后, 还包括:
将所述处理后的字段中的数据发送至所述字段所在的数据库; 或: 将所述处理后的字段中的数据发送至所述应用以外的其他应用。
8、 如权利要求 7所述的方法, 其特征在于:
所述第一载体或所述第二载体包括: 树结构、 窗口和控件中的任一种或
9、 一种数据动态处理的装置, 其特征在于, 包括:
第一加载模块, 用于加载至少一个数据库、 以及加载所述至少一个数据库 中的至少一个表或视图;
查询模块,用于从所述第一加载模块加载的所述至少一个表或视图的所有 字段;
第二加载模块, 用于将所述查询模块查询到的所述字段加载到第一载体 上;
动态关系建立模块, 用于从所述第一载体上选择任一个或多个字段,将所 述选择的字段拖移至第二载体上,使所述第二载体与所述选择的字段建立数据 关系;
处理模块, 用于在应用中处理所述第二载体上的字段中的数据。
10、如权利要求 9所述的装置,其特征在于,所述动态关系建立模块包括: 选择单元, 用于从所述第一载体上选择任一个或多个字段;
拖移单元, 用于拖移所述选择单元选择的字段至第二载体;
存储单元, 用于在所述拖移单元拖移的过程中, 记录所述拖移的字段、 所 述拖移的字段所在的表或视图, 以及所述拖移的字段所在的数据库;
加载单元, 用于加载所述拖移的字段至所述第二载体; 所在的数据库。
11、 如权利要求 10所述的装置, 其特征在于, 所述加载单元包括: 判断单元, 用于判断所述第二载体上是否有字段;
第一加载单元, 用于当所述判断单元的结果为是时,加载所述拖移的字段 至所述第二载体以替换所述第二载体上的原有字段;
第二加载单元, 用于当所述判断单元的结果为否时, 直接加载所述拖移的 字段至所述第二载体。
12、 如权利要求 11所述的装置, 其特征在于, 所述处理模块包括: 数据连接单元, 用于根据所述获取单元获取的所述数据库、 表或视图, 连 接到所述获取的数据库, 并查询出所述获取的表或视图;
数据读取单元,用于从所述数据连接单元查询到的表或视图中查找到所述 第二载体上的字段, 并读取所述查找到的字段中的数据。
13、 如权利要求 12所述的装置, 其特征在于, 所述处理模块还包括: 显示单元, 用于在应用中显示所述数据读取单元读取的数据; 和 /或: 修改单元, 用于在应用中修改所述数据读取单元读取的数据; 和 /或 删除单元, 用于在应用中删除所述数据读取单元读取的数据。
14、 如权利要求 13所述的装置, 其特征在于, 还包括:
发送模块,用于将所述处理模块处理后的字段中的数据发送至所述字段所 在的数据库; 或:
用于将所述处理模块处理后的字段中的数据发送至所述应用以外的其他 应用。
PCT/CN2011/070248 2010-01-27 2011-01-14 一种数据动态处理的方法及装置 WO2011091727A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201010103488.2 2010-01-27
CN2010101034882A CN101847153B (zh) 2010-01-27 2010-01-27 一种数据动态处理的方法及装置

Publications (1)

Publication Number Publication Date
WO2011091727A1 true WO2011091727A1 (zh) 2011-08-04

Family

ID=42771775

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2011/070248 WO2011091727A1 (zh) 2010-01-27 2011-01-14 一种数据动态处理的方法及装置

Country Status (2)

Country Link
CN (1) CN101847153B (zh)
WO (1) WO2011091727A1 (zh)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101847153B (zh) * 2010-01-27 2012-08-22 深圳市龙视传媒有限公司 一种数据动态处理的方法及装置
CN106506661A (zh) * 2016-11-18 2017-03-15 浪潮软件集团有限公司 一种动态返回数据的方法、服务端及系统
CN111079192B (zh) * 2018-10-18 2022-03-01 宏碁股份有限公司 网页内容自我保护方法以及服务器

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101359290A (zh) * 2008-09-11 2009-02-04 中兴通讯股份有限公司 一种基于元数据的定制业务单据的方法及装置
WO2009074494A1 (en) * 2007-12-12 2009-06-18 International Business Machines Corporation Method, system and computer program for searching digital contents based on metadata of sample elements
CN101847153A (zh) * 2010-01-27 2010-09-29 深圳市同洲电子股份有限公司 一种数据动态处理的方法及装置

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6076108A (en) * 1998-03-06 2000-06-13 I2 Technologies, Inc. System and method for maintaining a state for a user session using a web system having a global session server
CN100342377C (zh) * 2003-04-16 2007-10-10 华为技术有限公司 一种提高数据处理效率的方法
US8468125B2 (en) * 2005-04-12 2013-06-18 International Business Machines Corporation Automatically moving multidimensional data between live datacubes of enterprise software systems

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009074494A1 (en) * 2007-12-12 2009-06-18 International Business Machines Corporation Method, system and computer program for searching digital contents based on metadata of sample elements
CN101359290A (zh) * 2008-09-11 2009-02-04 中兴通讯股份有限公司 一种基于元数据的定制业务单据的方法及装置
CN101847153A (zh) * 2010-01-27 2010-09-29 深圳市同洲电子股份有限公司 一种数据动态处理的方法及装置

Also Published As

Publication number Publication date
CN101847153A (zh) 2010-09-29
CN101847153B (zh) 2012-08-22

Similar Documents

Publication Publication Date Title
US11748366B2 (en) Shared folder backed integrated workspaces
US11405468B2 (en) Forming activity streams across heterogeneous applications
US10805389B2 (en) System, method, and computer program for enabling a user to access and edit via a virtual drive objects synchronized to a plurality of synchronization clients
AU2022201538B2 (en) Control transfer of shared content
JP6220338B2 (ja) フォールトトレラント外部アプリケーションサーバ
AU2014284461B2 (en) Syncing content clipboard
US10831776B2 (en) On-demand file synchronization
JP2005259138A (ja) 非統合ツールの統合アーキテクチャ
JP2009296578A (ja) 複数のソースから利用可能なメディアファイルの同期
US11368538B2 (en) Platform-agnostic drag-and-drop operations
CA2943128A1 (en) Computer system to support failover in an event stream processing system
JP2012058799A (ja) 画像表示システム、画像表示方法およびプログラム
US20150326620A1 (en) Media presentation in a virtual shared space
WO2011091727A1 (zh) 一种数据动态处理的方法及装置
CN109614271A (zh) 多个集群数据一致性的控制方法、装置、设备及存储介质
TWI627541B (zh) 將與活動相關的資訊從源電子裝置轉遞至伴隨電子裝置
WO2023020328A1 (zh) 一种对象操控方法、装置及电子设备
WO2023147425A1 (en) Automatic canvas creation associated with a group-based communication channel
US11962280B2 (en) Synchronized controller
JP2004220318A (ja) 情報処理装置及びこれに用いるプログラム
US20080243903A1 (en) Data driven media interaction

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 11736609

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205 DATED 04.10.2012)

122 Ep: pct application non-entry in european phase

Ref document number: 11736609

Country of ref document: EP

Kind code of ref document: A1