jora
Class SessionThread

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--jora.SessionThread

public class SessionThread
extends java.lang.Thread

Class representing thread associated with users database session. If there is single database session opened by application, that it is possible to associate it with Table object statically. Otherwise it is needed either to explicitly specify session object in each insert,select or update statement or associate session with thread by means of SessionThread class.


Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
SessionThread(Session session)
          Allocates a new SessionThread object and associate it with the specified session.
SessionThread(Session session, java.lang.Runnable target)
          Allocates a new SessionThread object and associate it with the specified session.
SessionThread(Session session, java.lang.Runnable target, java.lang.String name)
          Allocates a new SessionThread object.
SessionThread(Session session, java.lang.String name)
          Allocates a new SessionThread object.
SessionThread(Session session, java.lang.ThreadGroup group, java.lang.Runnable target)
          Allocates a new SessionThread object and associate it with the specified session.
SessionThread(Session session, java.lang.ThreadGroup group, java.lang.Runnable target, java.lang.String name)
          Allocates a new SessionThread object so that it has target as its run object, has the specified name as its name, and belongs to the thread group referred to by group.
SessionThread(Session session, java.lang.ThreadGroup group, java.lang.String name)
          Allocates a new SessionThread object.
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, run, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SessionThread

public SessionThread(Session session)
Allocates a new SessionThread object and associate it with the specified session. This constructor has the same effect as SessionThread(session, null, null, gname), where gname is a newly generated name. Automatically generated names are of the form "Thread-"+n, where n is an integer.

Threads created this way must have overridden their run() method to actually do anything.

Parameters:
session - user database session associated with this thread
See Also:
Thread.Thread(java.lang.ThreadGroup, java.lang.Runnable, java.lang.String)

SessionThread

public SessionThread(Session session,
                     java.lang.Runnable target)
Allocates a new SessionThread object and associate it with the specified session. This constructor has the same effect as SessionThread(session, target, null, gname), where gname is a newly generated name. Automatically generated names are of the form "Thread-"+n, where n is an integer.

Threads created this way must have overridden their run() method to actually do anything.

Parameters:
session - user database session associated with this thread
target - the object whose run method is called.
See Also:
Thread.Thread(java.lang.ThreadGroup, java.lang.Runnable, java.lang.String)

SessionThread

public SessionThread(Session session,
                     java.lang.ThreadGroup group,
                     java.lang.Runnable target)
Allocates a new SessionThread object and associate it with the specified session. This constructor has the same effect as SessionThread(session, target, group, gname), where gname is a newly generated name. Automatically generated names are of the form "Thread-"+n, where n is an integer.

Threads created this way must have overridden their run() method to actually do anything.

Parameters:
session - user database session associated with this thread
group - the thread group.
target - the object whose run method is called.
See Also:
Thread.Thread(java.lang.ThreadGroup, java.lang.Runnable, java.lang.String)

SessionThread

public SessionThread(Session session,
                     java.lang.String name)
Allocates a new SessionThread object. This constructor has the same effect as SessionThread(session, null, null, name).
Parameters:
session - user database session associated with this thread
name - the name of the new thread.
See Also:
Thread.Thread(java.lang.ThreadGroup, java.lang.Runnable, java.lang.String)

SessionThread

public SessionThread(Session session,
                     java.lang.ThreadGroup group,
                     java.lang.String name)
Allocates a new SessionThread object. This constructor has the same effect as SessionThread(session, group, null, name).
Parameters:
session - user database session associated with this thread
group - the thread group.
name - the name of the new thread.
See Also:
Thread.Thread(java.lang.ThreadGroup, java.lang.Runnable, java.lang.String)

SessionThread

public SessionThread(Session session,
                     java.lang.Runnable target,
                     java.lang.String name)
Allocates a new SessionThread object. This constructor has the same effect as SessionThread(session, null, target, name) *
Parameters:
session - user database session associated with this thread
target - the object whose run method is called.
name - the name of the new thread.
See Also:
Thread.Thread(java.lang.ThreadGroup, java.lang.Runnable, java.lang.String)

SessionThread

public SessionThread(Session session,
                     java.lang.ThreadGroup group,
                     java.lang.Runnable target,
                     java.lang.String name)
Allocates a new SessionThread object so that it has target as its run object, has the specified name as its name, and belongs to the thread group referred to by group.

Parameters:
session - user database session associated with this thread
group - the thread group.
target - the object whose run method is called.
name - the name of the new thread.
See Also:
Thread.Thread(java.lang.ThreadGroup, java.lang.Runnable, java.lang.String)