This application claims the benefit of Taiwan application Serial No. 102109407, filed Mar. 18, 2013, the subject matter of which is incorporated herein by reference.
1. Field of the Invention
The invention relates in general to an electronic apparatus, and more particularly to a cloud platform and a data exchanging method thereof.
2. Description of the Related Art
Referring to
However, business-to-business (B2B) connection must be established for the purpose of exchanging data between the clients 3A˜3N. To establish conventional B2B connection, the specifications, formats and columns of both parties must firstly be defined and the data of both parties must be periodically synchronized by a program, not only incurring additional establishment cost but also requiring a waiting time for the synchronization of exchange data to be completed
The invention is directed to a cloud platform and a data exchanging method thereof.
According to an embodiment of the present invention, a cloud platform is disclosed. The cloud platform is coupled to a first client and a second client, and comprises a first tenant server, a second tenant server, a first tenant database, a second tenant database, and a cloud data exchanging system. The first tenant server is coupled to the first client. The second tenant server is coupled to the second client. The first tenant database stores the data of the first tenant server. The second tenant database stores the data of the second tenant server. The first tenant database and the second tenant database are respectively coupled to the first tenant server and the second tenant server via the cloud data exchanging system. The cloud data exchanging system, after receiving a query request sent from the second client via the second tenant server, determines whether the data relation table has any data links belonging to the second client. If the data relation table has a data link belonging to the second client, the cloud data exchanging system finds database information from a database connection table according to the data link and enters the first tenant database according to the database information.
According to another embodiment of the present invention, a data exchanging method of a cloud platform is disclosed. The cloud platform is coupled to the first client and the second client. The cloud platform comprises a first tenant server, a second tenant server, a first tenant database, a second tenant database, and a cloud data exchanging system. The first tenant database and the second tenant database are respectively coupled to the first tenant server and the second tenant server via the cloud data exchanging system. The data connection method comprises: determining whether the data relation table has any data links belonging to the second client by the cloud data exchanging system after receiving a query request sent from the second client via the second tenant server; finding the database information from a database connection table according to the data link; entering the first tenant database according to the database information if the data relation table has a data link belonging to the second client.
The above and other aspects of the invention will become better understood with regard to the following detailed description of the preferred but non-limiting embodiment (s). The following description is made with reference to the accompanying drawings.
Referring to
The exchange database 232 stores a database connection table, a partner relation table and a data relation table. The data relation table is generated according to the partner relation table. The exchange server 231, after receiving a query request sent from one of tenant servers 21A˜21N, determines whether the database connection table has any data links belonging to the client. If the data relation table has a data link belonging to the client, then the exchange server 231 finds database information from the database connection table according to the data link and enters the tenant database belonging to another client according to the database information. For example, the exchange server 231, after receiving the query request sent from the client 3B via the tenant server 21B, determines whether the database connection table has the data link belonging to client 3B. If the data relation table has a data link belonging to client 3B, then the exchange server 231 finds database information from the database connection table according to the data link and enters the tenant database 22A according to the database information.
Referring to
The database information is the account number and password used by each client for entering the database. For example, when the client 3A would like to use the order cloud service, the client 3A needs to use the database information X1 for entering the tenant database 22A. Similarly, when the client 3B would like to use the order cloud service, the client 3B needs to use the database information X2 for entering the tenant database 22B. When the client 3C would like to use the order cloud service, the client 3C needs to use the database information X3 for entering the tenant database 22C. When the client 3B would like to use e-sale cloud service, the client 3B needs to use the database information X4 for entering the tenant database 22B. When the client 3C would like to use e-sale cloud service, the client 3C needs to use the database information X5 for entering the tenant database 22C. When the client 3D would like to use auction cloud service, the client 3D needs to use the database information X6 for entering the tenant database 22D.
The method for generating a database connection table comprises steps 41˜44. Firstly, the process begins at step 41, one of the clients 3A˜3N joins the cloud platform 2. Then, the process proceeds to step 42, the client obtains a service identification. Then, the process proceeds to step 43, the client registers a database information on the cloud data exchanging system 23. Then, the process proceeds to step 44, the cloud data exchanging system 23 records the database information in the database connection table. For example, the client 3A, after joining the cloud platform 2, obtains the service identification S01 and registers the database information X1 on the cloud data exchanging system 23, and the cloud data exchanging system 23 records the database information X1 in the database connection table.
Referring to
The method for generating a partner relation table comprises steps 51˜54. Firstly, the process begins at step 51, a data exchange partner is selected. Next, the process proceeds to step 52, an invitation is sent. Then, the process proceeds to step 53, a partner link is established after the invitation is accepted by the data exchange partner. Then, the process proceeds to step 54, the cloud data exchanging system 23 records the partner link in the partner relation table. For example, the client 3A selects the client 3B as a data exchange partner, and sends an invitation to client 3B via the cloud platform 2. After the invitation is accepted client 3B, the cloud data exchanging system 23 establishes a partner link, and further records the partner link in the partner relation table.
Referring to
The method for generating a data relation table comprises steps 61˜64. Firstly, the process begins at step 61, exchange data is selected. Next, the process proceeds to step 62, a data exchange partner is selected. Then, the process proceeds to step 63, whether a partner link exists is determined by the cloud data exchanging system 23. If the partner link does not exist, then the process proceeds to step 62 again and the client is requested to re-select the data exchange partner. Then, the process proceeds to step 64, the cloud data exchanging system 23 stores the data link in the data relation table. For example, the client 3A selects the exchange data corresponding to the record identification R01, and selects the client 3B as the data exchange partner. The cloud data exchanging system 23 determines whether the partner link of the client 3B exists according to the partner relation table. If the partner link does not exist, this implies that there is no partner relationship existing between the client 3A and the client 3B, and the cloud data exchanging system 23 requests the client 3A to re-select the data exchange partner. If the partner link exists, this implies that there is a partner relationship existing between the client 3A and the client 3B, and the cloud data exchanging system 23 records the data link in the data relation table.
Referring to
For example, the cloud data exchanging system 23, after receiving the query request sent by the client 3B via the tenant server 21B, determines whether the data relation table has any data links belonging to the client 3B. As indicated in Table 3, there are 6 data links belonging to the client 3B. Let the first data link of Table 3 be taken for example. The cloud data exchanging system 23 finds the database information X1 from the database connection table according to the data link, and enters the tenant database 22A according to the database information X1. Furthermore, the cloud data exchanging system 23 finds the corresponding source user identification A from the first data link of the data relation table according to the service identification S01 and the target user identification B of the client 3B. The cloud data exchanging system 23 again finds the corresponding database information X1 from the database connection table according to the service identification S01 and the source user identification A of the client 3B. The cloud data exchanging system 23, after finding the database information X1, enters the tenant database 22A to read the exchange data.
To establish a conventional business-to-business (B2B) connection, the specifications, formats and columns of both parties must firstly be defined and the data of both parties must be periodically synchronized by a program. In comparison to the conventional B2B connection, the cloud platform and the data exchanging method thereof disclosed in above embodiments can possess B2B function without additionally establishing a B2B connection. Moreover, the target client can instantly inquire the exchange data of the source client without requiring a waiting time for the synchronization of exchange data to be completed.
While the invention has been described by way of example and in terms of the preferred embodiment(s), it is to be understood that the invention is not limited thereto. On the contrary, it is intended to cover various modifications and similar arrangements and procedures, and the scope of the appended claims therefore should be accorded the broadest interpretation so as to encompass all such modifications and similar arrangements and procedures.
Number | Date | Country | Kind |
---|---|---|---|
102109407 | Mar 2013 | TW | national |