net.sourceforge.sqlunit
Class ThreadIdentifier

java.lang.Object
  extended by net.sourceforge.sqlunit.ThreadIdentifier

public final class ThreadIdentifier
extends java.lang.Object

Assigns and returns an identifier for a thread. This is used to tie back the vendor name for the connection, regardless of whether it is operating in single-threaded or multi-threaded mode. Each thread holds an implicit reference to the copy of this thread-local instance of ThreadIdentifier as long as it is alive.

Version:
$Revision: 1.2 $
Author:
Sujit Pal (spal@users.sourceforge.net)

Method Summary
static java.lang.String getIdentifier()
          Returns the identifier for this thread.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getIdentifier

public static java.lang.String getIdentifier()
Returns the identifier for this thread.

Returns:
the identifier for this thread.