diff options
author | randomdan <randomdan@localhost> | 2012-03-28 00:45:18 +0000 |
---|---|---|
committer | randomdan <randomdan@localhost> | 2012-03-28 00:45:18 +0000 |
commit | 92a59b6138ec870ba17108a0cf29ba1199414fd5 (patch) | |
tree | fab37e5dbbfcf23c69b85b4b4151d14e1b87447e /project2/sql/rdbmsDataSource.cpp | |
parent | A generic variadic template loader (diff) | |
download | project2-92a59b6138ec870ba17108a0cf29ba1199414fd5.tar.bz2 project2-92a59b6138ec870ba17108a0cf29ba1199414fd5.tar.xz project2-92a59b6138ec870ba17108a0cf29ba1199414fd5.zip |
Remove lots of specific implementations and replace them with our new generic loader
Diffstat (limited to 'project2/sql/rdbmsDataSource.cpp')
-rw-r--r-- | project2/sql/rdbmsDataSource.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/project2/sql/rdbmsDataSource.cpp b/project2/sql/rdbmsDataSource.cpp index 6f3cedb..8bdacdf 100644 --- a/project2/sql/rdbmsDataSource.cpp +++ b/project2/sql/rdbmsDataSource.cpp @@ -9,7 +9,7 @@ SimpleMessageException(UnknownConnectionProvider); /// Specialized ElementLoader for instances of RdbmsDataSource; handles persistent DB connections -class RdbmsDataSourceLoader : public ElementLoaderImpl<RdbmsDataSource> { +class RdbmsDataSourceLoader : public ElementLoader::For<RdbmsDataSource> { public: void onIdle() { @@ -201,7 +201,7 @@ RdbmsDataSource::ConnectionInfo::ConnectionInfo(ScriptNodePtr node) : DB::Connection * RdbmsDataSource::ConnectionInfo::connect() const { - return typeId->connect(dsn); + return typeId->create(dsn); } bool |