Method and apparatus for caching multiple Java-database connectivity
First Claim
1. A method of caching multiple Java-database connectivity in a cache management method for a multi-layer Java-database connectivity unification system having a Java-database connectivity driver and a database server, the method comprising the steps of:
- if a database query statement is received from the Java-database connectivity driver, judging a kind of the query statement by analyzing the received query statement; and
a) if data corresponding to the query statement exists in a cache as a result of judging the kind of the query statement, transferring the corresponding data to the Java-database connectivity driver, while b) if the data corresponding to the query statement does not exist in the cache, requesting the corresponding data to the database server and providing the data to the Java-database connectivity driver.
1 Assignment
0 Petitions
Accused Products
Abstract
A system and method of caching multiple Java-database connectivity is disclosed. A cache manager for cache management is provided between an intermediate server and a database server in the multi-layer Java-database connectivity system having the intermediate server. If the intermediate server provides a query statement for accessing a database, the caching of the intermediate server is operated in a different manner according to the kind of the query statement. Thus, a response time of the system can be reduced from the viewpoint of a user, and the load of the network can be reduced through reduction of the network traffic from the viewpoint of a network. Also, the load of the database server for service requests can be reduced, and a database management system can process more requests from users.
14 Citations
11 Claims
-
1. A method of caching multiple Java-database connectivity in a cache management method for a multi-layer Java-database connectivity unification system having a Java-database connectivity driver and a database server, the method comprising the steps of:
-
if a database query statement is received from the Java-database connectivity driver, judging a kind of the query statement by analyzing the received query statement; and
a) if data corresponding to the query statement exists in a cache as a result of judging the kind of the query statement, transferring the corresponding data to the Java-database connectivity driver, while b) if the data corresponding to the query statement does not exist in the cache, requesting the corresponding data to the database server and providing the data to the Java-database connectivity driver. - View Dependent Claims (2, 3, 4, 5)
-
-
6. A system for caching multiple Java-database connectivity in a cache management apparatus of a multi-layer Java-database connectivity unification system having a Java-database connectivity driver and a database server, the system comprising:
-
a cache storage section for storing a plurality of cache data and information; and
a cache management section for a) if a database query statement is received from the Java-database connectivity driver, judging a kind of the query statement by analyzing the received query statement, and if data corresponding to the query statement exists in the cache storage section according to the kind of the query statement, transferring the corresponding data to the Java-database connectivity driver, while b) if the data corresponding to the query statement does not exist in the cache storage section, requesting the corresponding data to the database server and providing the data to the Java-database connectivity driver. - View Dependent Claims (7, 8, 9, 10)
-
-
11. A recording medium that implements by types a program of commands executable by a digital processing apparatus to perform a cache management method in a multi-layer Java-database connectivity unification system having a Java-database connectivity driver and a database server, and that is readable by the digital processing apparatus, the recording medium performing the steps of:
-
if a database query statement is received from the Java-database connectivity driver, judging a kind of the query statement by analyzing the received query statement;
a) if the kind of the query statement is a data change statement and data changed according to the data change statement is stored in a cache, setting the corresponding data to be in a “
changed”
state, and b) if the changed data does not exist in the cache, transferring the data change statement to the database server so that the database server changes the data according to the data change statement; and
a) if the kind of the query statement is a data search statement, and if the data to be searched according to the data search statement exists in the cache and the data is in an “
updated”
state, transferring the data to the Java-database connectivity driver, and b) if the data to be searched exists in the cache and the data is not in the “
updated’
state, transferring the search statement to the database server to have the database server process the data search statement, checking if it is necessary to store a search result in the cache, and adding the searched data in the cache.
-
Specification