Main Table of Contents


Table of Contents

class PtObjStateMaxLock
PtObjStateMaxLock: class summary
PtObjStateMaxLock::PtObjStateMaxLock()
PtObjStateMaxLock::~PtObjStateMaxLock()
PtObjStateMaxLock::GetClientId()
PtObjStateMaxLock::GetClientName()
PtObjStateMaxLock::GetLockMode()
PtObjStateMaxLock::GetLockType()
PtObjStateMaxLock::GetUserId()

class PtObjStateMaxLock


Intro
PtObjStateMaxLock: class summary
PtObjStateMaxLock::PtObjStateMaxLock()
PtObjStateMaxLock::~PtObjStateMaxLock()
PtObjStateMaxLock::GetClientId()
PtObjStateMaxLock::GetClientName()
PtObjStateMaxLock::GetLockMode()
PtObjStateMaxLock::GetLockType()
PtObjStateMaxLock::GetUserId()

PtObjStateMaxLock is a class that you can use to get information about the strongest lock that has been applied to an object. First, create a PtObjStateMaxLock, then pass it as a parameter to the object using PtObject::GetObjectInfo(). Once you have done this, the PtObjStateMaxLock contains information on the strongest lock that is active for the object.


PtObjStateMaxLock: class summary


Intro

Files to include Class declaration Base class
poet.hxx ptinfo.hxx PtObjState

Member functions:

constructor PtObjStateMaxLock();
destructor virtual ~PtObjStateMaxLock();
GetClientId inline const PtClientId& GetClientId() const;
GetClientName inline const PtString& GetClientName() const;
GetLockMode inline PtLockMode GetLockMode() const;
GetLockType inline PtLockType GetLockType() const;
GetUserId inline short GetUserId() const;
GetUserName inline const PtString& GetUserName() const;

PtObjStateMaxLock::PtObjStateMaxLock()


Intro

Declaration:

PtObjStateMaxLock::PtObjStateMaxLock()

Description:

Constructor.


PtObjStateMaxLock::~PtObjStateMaxLock()


Intro

Declaration:

virtual PtObjStateMaxLock::~PtObjStateMaxLock()

Description:

Destructor.


PtObjStateMaxLock::GetClientId()


Intro

Declaration:

inline const PtClientId& PtObjStateMaxLock::GetClientId() const

Description:

Returns the client Id of the process which owns the lock. This contains information about the client.


PtObjStateMaxLock::GetClientName()


Intro

Declaration:

inline const PtString& PtObjStateMaxLock::GetClientName() const

Description:

Returns the client name of the process which owns the lock. This is the same name which is displayed by the POET Administrator's Workbench when you list the processes. These names are set as a parameter to InitPOET(), or using configuration files on the client.


PtObjStateMaxLock::GetLockMode()


Intro

Declaration:

inline PtLockMode PtObjStateMaxLock::GetLockMode() const

Description:

Returns the lock mode for the strongest lock that is active for the object.


PtObjStateMaxLock::GetLockType()


Intro

Declaration:

inline PtLockType PtObjStateMaxLock::GetLockType() const

Description:

Returns the lock type for the maximum lock. Lock types may be either of the following:

PtLK_NONPERS The lock is not persistent.
PtLK_PERS The lock is persistent.

Persistent locks are used internally for CheckIn/CheckOut.


PtObjStateMaxLock::GetUserId()


Intro

Declaration:

inline const PtString& PtObjStateMaxLock::GetUserId() const

Description:

Returns the user Id of the process which owns the lock. This is the same Id which is displayed by the POET Administrator's Workbench when you list the processes.

Copyright (c) 1996 POET Software, Inc. All rights reserved. Reproduction in whole or in part in any form or medium without the express permission of POET Software, Inc. is prohibited.