mirror of
https://github.com/pocoproject/poco.git
synced 2025-05-01 23:31:01 +02:00
Rename methods
resetConnection() -> reset()
This commit is contained in:
parent
6e6ad28a1f
commit
8f2fef23e4
@ -65,7 +65,7 @@ public:
|
|||||||
void rollback();
|
void rollback();
|
||||||
/// Rollback transaction
|
/// Rollback transaction
|
||||||
|
|
||||||
void resetConnection();
|
void reset();
|
||||||
/// Reset connection with dababase and clears session state, but without disconnecting
|
/// Reset connection with dababase and clears session state, but without disconnecting
|
||||||
|
|
||||||
operator MYSQL* ();
|
operator MYSQL* ();
|
||||||
|
@ -67,7 +67,7 @@ public:
|
|||||||
void close();
|
void close();
|
||||||
/// Closes the connection.
|
/// Closes the connection.
|
||||||
|
|
||||||
void resetConnection();
|
void reset();
|
||||||
/// Reset connection with dababase and clears session state, but without disconnecting
|
/// Reset connection with dababase and clears session state, but without disconnecting
|
||||||
|
|
||||||
bool isConnected() const;
|
bool isConnected() const;
|
||||||
|
@ -176,7 +176,7 @@ void SessionHandle::rollback()
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void SessionHandle::resetConnection()
|
void SessionHandle::reset()
|
||||||
{
|
{
|
||||||
if (mysql_reset_connection(_pHandle) != 0)
|
if (mysql_reset_connection(_pHandle) != 0)
|
||||||
throw TransactionException("Reset connection failed.", _pHandle);
|
throw TransactionException("Reset connection failed.", _pHandle);
|
||||||
|
@ -257,10 +257,10 @@ bool SessionImpl::hasTransactionIsolation(Poco::UInt32 ti) const
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void SessionImpl::resetConnection()
|
void SessionImpl::reset()
|
||||||
{
|
{
|
||||||
if (_connected)
|
if (_connected)
|
||||||
_handle.resetConnection();
|
_handle.reset();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -68,7 +68,7 @@ public:
|
|||||||
void close();
|
void close();
|
||||||
/// Closes the session.
|
/// Closes the session.
|
||||||
|
|
||||||
void resetConnection();
|
void reset();
|
||||||
/// Do nothing
|
/// Do nothing
|
||||||
|
|
||||||
bool isConnected() const;
|
bool isConnected() const;
|
||||||
|
@ -190,7 +190,7 @@ void SessionImpl::close()
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void SessionImpl::resetConnection()
|
void SessionImpl::reset()
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -50,7 +50,7 @@ public:
|
|||||||
void rollback();
|
void rollback();
|
||||||
void open(const std::string& connect = "");
|
void open(const std::string& connect = "");
|
||||||
void close();
|
void close();
|
||||||
void resetConnection();
|
void reset();
|
||||||
bool isConnected() const;
|
bool isConnected() const;
|
||||||
void setConnectionTimeout(std::size_t timeout);
|
void setConnectionTimeout(std::size_t timeout);
|
||||||
std::size_t getConnectionTimeout() const;
|
std::size_t getConnectionTimeout() const;
|
||||||
|
@ -92,7 +92,7 @@ public:
|
|||||||
void reconnect();
|
void reconnect();
|
||||||
/// Closes the connection and opens it again.
|
/// Closes the connection and opens it again.
|
||||||
|
|
||||||
virtual void resetConnection() = 0;
|
virtual void reset() = 0;
|
||||||
/// Reset connection with dababase and clears session state, but without disconnecting
|
/// Reset connection with dababase and clears session state, but without disconnecting
|
||||||
|
|
||||||
virtual void begin() = 0;
|
virtual void begin() = 0;
|
||||||
|
@ -148,9 +148,9 @@ void PooledSessionImpl::close()
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void PooledSessionImpl::resetConnection()
|
void PooledSessionImpl::reset()
|
||||||
{
|
{
|
||||||
access()->resetConnection();
|
access()->reset();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -235,7 +235,7 @@ void SessionPool::putBack(PooledSessionHolderPtr pHolder)
|
|||||||
{
|
{
|
||||||
if (pHolder->session()->isConnected())
|
if (pHolder->session()->isConnected())
|
||||||
{
|
{
|
||||||
pHolder->session()->resetConnection();
|
pHolder->session()->reset();
|
||||||
|
|
||||||
// reverse settings applied at acquisition time, if any
|
// reverse settings applied at acquisition time, if any
|
||||||
AddPropertyMap::iterator pIt = _addPropertyMap.find(pHolder->session());
|
AddPropertyMap::iterator pIt = _addPropertyMap.find(pHolder->session());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user