com.softwareag.tamino.db.api.connection
Class TLockMode

java.lang.Object
  extended by com.softwareag.tamino.db.api.connection.TLockMode

public final class TLockMode
extends java.lang.Object

Class representing Tamino specific lock modes. The class provides type safe constant objects representing the possible settings for the lock mode session parameter available for Tamino. The lock mode correponds to the _lockMode session parameter of Tamino.

Please refer to the description of the Transaction-Related Commands in the Tamino Server documentation for details on the usage of this parameter.

Version:
$Revision: 1.3 $
Author:
Stefan Liebig

Field Summary
static TLockMode PROTECTED
          Constant that represents Taminos _lockMode=protected.
static TLockMode SHARED
          Constant that represents Taminos _lockMode=shared.
static TLockMode UNPROTECTED
          Constant that represents Taminos _lockMode=unprotected.
 
Method Summary
 boolean equals(java.lang.Object obj)
          Indicates whether some other object is "equal to" this one.
 int hashCode()
          Returns a hash code value for the object.
 java.lang.String toString()
          Returns the string representation of a TLockMode object.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

UNPROTECTED

public static final TLockMode UNPROTECTED
Constant that represents Taminos _lockMode=unprotected.


SHARED

public static final TLockMode SHARED
Constant that represents Taminos _lockMode=shared.


PROTECTED

public static final TLockMode PROTECTED
Constant that represents Taminos _lockMode=protected.

Method Detail

toString

public java.lang.String toString()
Returns the string representation of a TLockMode object.

Overrides:
toString in class java.lang.Object
Returns:
the string representation of the lock mode.

equals

public boolean equals(java.lang.Object obj)
Indicates whether some other object is "equal to" this one. Overrides the Object.equals method.

Overrides:
equals in class java.lang.Object
Parameters:
obj - - the reference object with which to compare.
Returns:
true if this object is the same as the obj argument; false otherwise.

hashCode

public int hashCode()
Returns a hash code value for the object. This method is supported for the benefit of hashtables such as those provided by java.util.Hashtable. Overrides the Object.hashCode method.

Overrides:
hashCode in class java.lang.Object
Returns:
a hash code value for this object.


Copyright (c) 2013 Software AG. All Rights Reserved.