SourcePro® API Reference Guide

 
List of all members | Public Member Functions
RWQEAsyncQueryLock< T > Class Template Reference

#include <rw/test/dbcore/RWQEAsyncQueryLock.h>

Inherits RWQEThread.

Public Member Functions

 RWQEAsyncQueryLock (const T &op, const RWDBConnection &conn, size_t releaseAfterMS)
 
virtual ~RWQEAsyncQueryLock ()
 
bool isComplete ()
 

Detailed Description

template<typename T>
class RWQEAsyncQueryLock< T >

Execute a query under a transaction, effectively locking the resource modified by the query. The query is executed under a separate thread and control is returned to the caller.

Constructor & Destructor Documentation

template<typename T >
RWQEAsyncQueryLock< T >::RWQEAsyncQueryLock ( const T &  op,
const RWDBConnection conn,
size_t  releaseAfterMS 
)

Spawns a thread which begins a transaction and executes op using conn. The transaction will be committed after releaseAfterMS milliseconds, assuming it has not already been committed.

template<typename T >
virtual RWQEAsyncQueryLock< T >::~RWQEAsyncQueryLock ( )
virtual

Commits the transaction and joins the underlying thread.

Member Function Documentation

template<typename T >
bool RWQEAsyncQueryLock< T >::isComplete ( )

Check to see if the query has completed

Copyright © 2023 Rogue Wave Software, Inc., a Perforce company. All Rights Reserved.