mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-28 11:31:53 +01:00
some renaming and clean-up
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
//
|
||||
// SessionInstantiator.h
|
||||
// Connector.h
|
||||
//
|
||||
// $Id: //poco/Main/Data/SQLite/include/Poco/Data/SQLite/SessionInstantiator.h#2 $
|
||||
// $Id: //poco/Main/Data/SQLite/include/Poco/Data/SQLite/Connector.h#2 $
|
||||
//
|
||||
// Library: SQLite
|
||||
// Package: SQLite
|
||||
// Module: SessionInstantiator
|
||||
// Module: Connector
|
||||
//
|
||||
// Definition of the SessionInstantiator class.
|
||||
// Definition of the Connector class.
|
||||
//
|
||||
// Copyright (c) 2006, Applied Informatics Software Engineering GmbH.
|
||||
// and Contributors.
|
||||
@@ -36,12 +36,12 @@
|
||||
//
|
||||
|
||||
|
||||
#ifndef DataConnectors_SQLite_SessionInstantiator_INCLUDED
|
||||
#define DataConnectors_SQLite_SessionInstantiator_INCLUDED
|
||||
#ifndef DataConnectors_SQLite_Connector_INCLUDED
|
||||
#define DataConnectors_SQLite_Connector_INCLUDED
|
||||
|
||||
|
||||
#include "Poco/Data/SQLite/SQLite.h"
|
||||
#include "Poco/Data/SessionInstantiator.h"
|
||||
#include "Poco/Data/Connector.h"
|
||||
|
||||
|
||||
namespace Poco {
|
||||
@@ -49,31 +49,31 @@ namespace Data {
|
||||
namespace SQLite {
|
||||
|
||||
|
||||
class SQLite_API SessionInstantiator: public Poco::Data::SessionInstantiator
|
||||
/// SessionInstantiator instantiates SqLite SessionImpl objects.
|
||||
class SQLite_API Connector: public Poco::Data::Connector
|
||||
/// Connector instantiates SqLite SessionImpl objects.
|
||||
{
|
||||
public:
|
||||
static const std::string KEY;
|
||||
/// Keyword for creating SQLite sessions.
|
||||
/// Keyword for creating SQLite sessions ("SQLite").
|
||||
|
||||
SessionInstantiator();
|
||||
/// Creates the SessionInstantiator.
|
||||
Connector();
|
||||
/// Creates the Connector.
|
||||
|
||||
~SessionInstantiator();
|
||||
/// Destroys the SessionInstantiator.
|
||||
~Connector();
|
||||
/// Destroys the Connector.
|
||||
|
||||
Poco::AutoPtr<Poco::Data::SessionImpl> create(const std::string& initString);
|
||||
/// Creates a SQLite SessionImpl object and initializes it with the given initString.
|
||||
Poco::AutoPtr<Poco::Data::SessionImpl> createSession(const std::string& connectionString);
|
||||
/// Creates a SQLite SessionImpl object and initializes it with the given connectionString.
|
||||
|
||||
static void addToFactory();
|
||||
/// Registers the SessionInstantiator under the Keyword SessionInstantiator::KEY at the Poco::Data::SessionFactory.
|
||||
static void registerConnector();
|
||||
/// Registers the Connector under the Keyword Connector::KEY at the Poco::Data::SessionFactory.
|
||||
|
||||
static void removeFromFactory();
|
||||
/// Unregisters the SessionInstantiator under the Keyword SessionInstantiator::KEY at the Poco::Data::SessionFactory.
|
||||
static void unregisterConnector();
|
||||
/// Unregisters the Connector under the Keyword Connector::KEY at the Poco::Data::SessionFactory.
|
||||
};
|
||||
|
||||
|
||||
} } } // namespace Poco::Data::SQLite
|
||||
|
||||
|
||||
#endif // DataConnectors_SQLite_SessionInstantiator_INCLUDED
|
||||
#endif // DataConnectors_SQLite_Connector_INCLUDED
|
||||
Reference in New Issue
Block a user