|
@@ -43,7 +43,7 @@ namespace datasrc {
|
|
|
* allows having multiple open queries at one connection, the connection
|
|
|
* class may share it.
|
|
|
*/
|
|
|
-class DatabaseAbstraction : boost::noncopyable {
|
|
|
+class DatabaseAccessor : boost::noncopyable {
|
|
|
public:
|
|
|
/**
|
|
|
* \brief Destructor
|
|
@@ -51,7 +51,7 @@ public:
|
|
|
* It is empty, but needs a virtual one, since we will use the derived
|
|
|
* classes in polymorphic way.
|
|
|
*/
|
|
|
- virtual ~DatabaseAbstraction() { }
|
|
|
+ virtual ~DatabaseAccessor() { }
|
|
|
/**
|
|
|
* \brief Retrieve a zone identifier
|
|
|
*
|
|
@@ -79,14 +79,14 @@ public:
|
|
|
*
|
|
|
* This class (together with corresponding versions of ZoneFinder,
|
|
|
* ZoneIterator, etc.) translates high-level data source queries to
|
|
|
- * low-level calls on DatabaseAbstraction. It calls multiple queries
|
|
|
+ * low-level calls on DatabaseAccessor. It calls multiple queries
|
|
|
* if necessary and validates data from the database, allowing the
|
|
|
- * DatabaseAbstraction to be just simple translation to SQL/other
|
|
|
+ * DatabaseAccessor to be just simple translation to SQL/other
|
|
|
* queries to database.
|
|
|
*
|
|
|
* While it is possible to subclass it for specific database in case
|
|
|
* of special needs, it is not expected to be needed. This should just
|
|
|
- * work as it is with whatever DatabaseAbstraction.
|
|
|
+ * work as it is with whatever DatabaseAccessor.
|
|
|
*/
|
|
|
class DatabaseClient : public DataSourceClient {
|
|
|
public:
|
|
@@ -102,7 +102,7 @@ public:
|
|
|
* suggests, the client takes ownership of the database and will
|
|
|
* delete it when itself deleted.
|
|
|
*/
|
|
|
- DatabaseClient(boost::shared_ptr<DatabaseAbstraction> database);
|
|
|
+ DatabaseClient(boost::shared_ptr<DatabaseAccessor> database);
|
|
|
/**
|
|
|
* \brief Corresponding ZoneFinder implementation
|
|
|
*
|
|
@@ -126,10 +126,10 @@ public:
|
|
|
* \param database The database (shared with DatabaseClient) to
|
|
|
* be used for queries (the one asked for ID before).
|
|
|
* \param zone_id The zone ID which was returned from
|
|
|
- * DatabaseAbstraction::getZone and which will be passed to further
|
|
|
+ * DatabaseAccessor::getZone and which will be passed to further
|
|
|
* calls to the database.
|
|
|
*/
|
|
|
- Finder(boost::shared_ptr<DatabaseAbstraction> database, int zone_id);
|
|
|
+ Finder(boost::shared_ptr<DatabaseAccessor> database, int zone_id);
|
|
|
// The following three methods are just implementations of inherited
|
|
|
// ZoneFinder's pure virtual methods.
|
|
|
virtual isc::dns::Name getOrigin() const;
|
|
@@ -154,11 +154,11 @@ public:
|
|
|
* passed to the constructor. This is meant for testing purposes and
|
|
|
* normal applications shouldn't need it.
|
|
|
*/
|
|
|
- const DatabaseAbstraction& database() const {
|
|
|
+ const DatabaseAccessor& database() const {
|
|
|
return (*database_);
|
|
|
}
|
|
|
private:
|
|
|
- boost::shared_ptr<DatabaseAbstraction> database_;
|
|
|
+ boost::shared_ptr<DatabaseAccessor> database_;
|
|
|
const int zone_id_;
|
|
|
};
|
|
|
/**
|
|
@@ -178,7 +178,7 @@ public:
|
|
|
virtual FindResult findZone(const isc::dns::Name& name) const;
|
|
|
private:
|
|
|
/// \brief Our database.
|
|
|
- const boost::shared_ptr<DatabaseAbstraction> database_;
|
|
|
+ const boost::shared_ptr<DatabaseAccessor> database_;
|
|
|
};
|
|
|
|
|
|
}
|