|
1 | 1 | // |
2 | | -// SessionInstantiator.h |
| 2 | +// Connector.h |
3 | 3 | // |
4 | | -// $Id: //poco/Main/Data/ODBC/include/Poco/Data/ODBC/SessionInstantiator.h#2 $ |
| 4 | +// $Id: //poco/Main/Data/ODBC/include/Poco/Data/ODBC/Connector.h#2 $ |
5 | 5 | // |
6 | 6 | // Library: ODBC |
7 | 7 | // Package: ODBC |
8 | | -// Module: SessionInstantiator |
| 8 | +// Module: Connector |
9 | 9 | // |
10 | | -// Definition of the SessionInstantiator class. |
| 10 | +// Definition of the Connector class. |
11 | 11 | // |
12 | 12 | // Copyright (c) 2006, Applied Informatics Software Engineering GmbH. |
13 | 13 | // and Contributors. |
|
36 | 36 | // |
37 | 37 |
|
38 | 38 |
|
39 | | -#ifndef DataConnectors_ODBC_SessionInstantiator_INCLUDED |
40 | | -#define DataConnectors_ODBC_SessionInstantiator_INCLUDED |
| 39 | +#ifndef DataConnectors_ODBC_Connector_INCLUDED |
| 40 | +#define DataConnectors_ODBC_Connector_INCLUDED |
41 | 41 |
|
42 | 42 |
|
43 | 43 | #include "Poco/Data/ODBC/ODBC.h" |
44 | | -#include "Poco/Data/SessionInstantiator.h" |
| 44 | +#include "Poco/Data/Connector.h" |
45 | 45 |
|
46 | 46 |
|
47 | 47 | namespace Poco { |
48 | 48 | namespace Data { |
49 | 49 | namespace ODBC { |
50 | 50 |
|
51 | 51 |
|
52 | | -class ODBC_API SessionInstantiator: public Poco::Data::SessionInstantiator |
53 | | - /// SessionInstantiator instantiates SqLite SessionImpl objects. |
| 52 | +class ODBC_API Connector: public Poco::Data::Connector |
| 53 | + /// Connector instantiates SqLite SessionImpl objects. |
54 | 54 | { |
55 | 55 | public: |
56 | 56 | static const std::string KEY; |
57 | 57 | /// Keyword for creating ODBC sessions |
58 | 58 |
|
59 | | - SessionInstantiator(); |
60 | | - /// Creates the SessionInstantiator. |
| 59 | + Connector(); |
| 60 | + /// Creates the Connector. |
61 | 61 |
|
62 | | - ~SessionInstantiator(); |
63 | | - /// Destroys the SessionInstantiator. |
| 62 | + ~Connector(); |
| 63 | + /// Destroys the Connector. |
64 | 64 |
|
65 | | - Poco::AutoPtr<Poco::Data::SessionImpl> create(const std::string& initString); |
66 | | - /// Creates a ODBC SessionImpl object and initializes it with the given initString. |
| 65 | + Poco::AutoPtr<Poco::Data::SessionImpl> createSession(const std::string& connectionString); |
| 66 | + /// Creates a ODBC SessionImpl object and initializes it with the given connectionString. |
67 | 67 |
|
68 | | - static void addToFactory(); |
69 | | - /// Registers the SessionInstantiator under the Keyword SessionInstantiator::KEY at the Poco::Data::SessionFactory |
| 68 | + static void registerConnector(); |
| 69 | + /// Registers the Connector under the Keyword Connector::KEY at the Poco::Data::SessionFactory |
70 | 70 |
|
71 | | - static void removeFromFactory(); |
72 | | - /// Unregisters the SessionInstantiator under the Keyword SessionInstantiator::KEY at the Poco::Data::SessionFactory |
| 71 | + static void unregisterConnector(); |
| 72 | + /// Unregisters the Connector under the Keyword Connector::KEY at the Poco::Data::SessionFactory |
73 | 73 | }; |
74 | 74 |
|
75 | 75 |
|
76 | 76 | } } } // namespace Poco::Data::ODBC |
77 | 77 |
|
78 | 78 |
|
79 | | -#endif // DataConnectors_ODBC_SessionInstantiator_INCLUDED |
| 79 | +#endif // DataConnectors_ODBC_Connector_INCLUDED |
0 commit comments