mirror of
https://github.com/pocoproject/poco.git
synced 2024-12-14 11:06:57 +01:00
61 lines
897 B
C++
61 lines
897 B
C++
//
|
|
// StatementCreator.cpp
|
|
//
|
|
// Library: Data
|
|
// Package: DataCore
|
|
// Module: StatementCreator
|
|
//
|
|
// Copyright (c) 2006, Applied Informatics Software Engineering GmbH.
|
|
// and Contributors.
|
|
//
|
|
// SPDX-License-Identifier: BSL-1.0
|
|
//
|
|
|
|
|
|
#include "Poco/Data/StatementCreator.h"
|
|
#include <algorithm>
|
|
|
|
|
|
namespace Poco {
|
|
namespace Data {
|
|
|
|
|
|
StatementCreator::StatementCreator()
|
|
{
|
|
}
|
|
|
|
|
|
StatementCreator::StatementCreator(Poco::AutoPtr<SessionImpl> ptrImpl):
|
|
_ptrImpl(ptrImpl)
|
|
{
|
|
}
|
|
|
|
|
|
StatementCreator::StatementCreator(const StatementCreator& other):
|
|
_ptrImpl(other._ptrImpl)
|
|
{
|
|
}
|
|
|
|
|
|
StatementCreator& StatementCreator::operator = (const StatementCreator& other)
|
|
{
|
|
StatementCreator tmp(other);
|
|
swap(tmp);
|
|
return *this;
|
|
}
|
|
|
|
|
|
void StatementCreator::swap(StatementCreator& other)
|
|
{
|
|
using std::swap;
|
|
swap(_ptrImpl, other._ptrImpl);
|
|
}
|
|
|
|
|
|
StatementCreator::~StatementCreator()
|
|
{
|
|
}
|
|
|
|
|
|
} } // namespace Poco::Data
|