Adaptable data source connection strings
First Claim
1. A method for converting a first connection string configured to use a first application programming interface (API) to connect to a data source of a first data source type to a second connection string configured to use a second, different API to connect to the data source of the first data source type comprising:
- parsing the first connection string into connection information used by the first API to connect to the data source;
storing the connection information into a key-value dictionary;
identifying the first data source type is associated with the first connection string based on the connection information;
in response to identifying the first data source type, instantiating an object for a derived subclass designed for the first data source type, the derived subclass inheriting from a base class comprising an abstract version of a method defined for the second, different API and the derived subclass comprising a non-abstract version of the method defined for the second, different API; and
generating the second connection string by calling the method associated with the object, wherein the non-abstract version of the method in the derived subclass is executed as a result of calling the method and the non-abstract version of the method is configured to use at least a portion of the connection information stored in the key-value dictionary to generate the second connection string configured to use the second, different API to connect to the data source of the first data source type.
10 Assignments
0 Petitions
Accused Products
Abstract
Various embodiments of the invention provide methods, systems, and computer-program products for converting a connection string configured to use a first API to connect to a data source of a data source type to using a second, different API to connect to the data source. The data source type is identified as being associated with the string and the string is parsed and stored in a key-value dictionary. An object is instantiated for a subclass designed for the data source type. This subclass inherits from a base class that includes an abstract version of a method defined for the second API and the subclass includes a non-abstract version of this method. A string is generated by calling the method associated with the object, causing the non-abstract version to be executed, which uses the dictionary to generate the string configured to use the second API to connect to the data source.
7 Citations
21 Claims
-
1. A method for converting a first connection string configured to use a first application programming interface (API) to connect to a data source of a first data source type to a second connection string configured to use a second, different API to connect to the data source of the first data source type comprising:
-
parsing the first connection string into connection information used by the first API to connect to the data source; storing the connection information into a key-value dictionary; identifying the first data source type is associated with the first connection string based on the connection information; in response to identifying the first data source type, instantiating an object for a derived subclass designed for the first data source type, the derived subclass inheriting from a base class comprising an abstract version of a method defined for the second, different API and the derived subclass comprising a non-abstract version of the method defined for the second, different API; and generating the second connection string by calling the method associated with the object, wherein the non-abstract version of the method in the derived subclass is executed as a result of calling the method and the non-abstract version of the method is configured to use at least a portion of the connection information stored in the key-value dictionary to generate the second connection string configured to use the second, different API to connect to the data source of the first data source type. - View Dependent Claims (2, 3, 4, 5, 6, 7)
-
-
8. A non-transitory, computer-readable medium comprising computer-executable instructions for converting a first connection string configured to use a first application programming interface (API) to connect to a data source of a first data source type to a second connection string configured to use a second, different API to connect to the data source of the first data source type that when executed by at least one computer processor are configured to cause the at least one computer processor to:
-
parse the first connection string into connection information used by the first API to connect to the data source; store the connection information into a key-value dictionary; identify the first data source type is associated with the first connection string based on the connection information; in response to identifying the first data source type, instantiate an object for a derived subclass designed for the first data source type, the derived subclass inheriting from a base class comprising an abstract version of a method defined for the second, different API and the derived subclass comprising a non-abstract version of the method defined for the second, different API; and generate the second connection string by calling the method associated with the object, wherein the non-abstract version of the method in the derived subclass is executed as a result of calling the method and the non-abstract version of the method is configured to use at least a portion of the connection information stored in the key-value dictionary to generate the second connection string configured to use the second, different API to connect to the data source of the first data source type. - View Dependent Claims (9, 10, 11, 12, 13, 14)
-
-
15. A system for converting a first connection string configured to use a first application programming interface (API) to connect to a data source of a first data source type to a second connection string configured to use a second, different API to connect to the data source of the first data source type, the system comprising:
at least one computer processor configured to; parse the first connection string into connection information used by the first API to connect to the data source; store the connection information into a key-value dictionary; identify the first data source type is associated with the first connection string based on the connection information; in response to identifying the first data source type, instantiate an object for a derived subclass designed for the first data source type, the derived subclass inheriting from a base class comprising an abstract version of a method defined for the second, different API and the derived subclass comprising a non-abstract version of the method defined for the second, different API; and generate the second connection string by calling the method associated with the object, wherein the non-abstract version of the method in the derived subclass is executed as a result of calling the method and the non-abstract version of the method is configured to use at least a portion of the connection information stored in the key-value dictionary to generate the second connection string configured to use the second, different API to connect to the data source of the first data source type. - View Dependent Claims (16, 17, 18, 19, 20, 21)
Specification