1 | // |
---|---|
2 | // StatementCreator.cpp |
3 | // |
4 | // Library: Data |
5 | // Package: DataCore |
6 | // Module: StatementCreator |
7 | // |
8 | // Copyright (c) 2006, Applied Informatics Software Engineering GmbH. |
9 | // and Contributors. |
10 | // |
11 | // SPDX-License-Identifier: BSL-1.0 |
12 | // |
13 | |
14 | |
15 | #include "Poco/Data/StatementCreator.h" |
16 | #include <algorithm> |
17 | |
18 | |
19 | namespace Poco { |
20 | namespace Data { |
21 | |
22 | |
23 | StatementCreator::StatementCreator() |
24 | { |
25 | } |
26 | |
27 | |
28 | StatementCreator::StatementCreator(Poco::AutoPtr<SessionImpl> ptrImpl): |
29 | _ptrImpl(ptrImpl) |
30 | { |
31 | } |
32 | |
33 | |
34 | StatementCreator::StatementCreator(const StatementCreator& other): |
35 | _ptrImpl(other._ptrImpl) |
36 | { |
37 | } |
38 | |
39 | |
40 | StatementCreator& StatementCreator::operator = (const StatementCreator& other) |
41 | { |
42 | StatementCreator tmp(other); |
43 | swap(tmp); |
44 | return *this; |
45 | } |
46 | |
47 | |
48 | void StatementCreator::swap(StatementCreator& other) |
49 | { |
50 | using std::swap; |
51 | swap(_ptrImpl, other._ptrImpl); |
52 | } |
53 | |
54 | |
55 | StatementCreator::~StatementCreator() |
56 | { |
57 | } |
58 | |
59 | |
60 | } } // namespace Poco::Data |
61 |