|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Thread | +--jora.SessionThread
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 |
public SessionThread(Session session)
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.
session
- user database session associated with this threadThread.Thread(java.lang.ThreadGroup,
java.lang.Runnable, java.lang.String)
public SessionThread(Session session, java.lang.Runnable target)
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.
session
- user database session associated with this threadtarget
- the object whose run
method is called.Thread.Thread(java.lang.ThreadGroup,
java.lang.Runnable, java.lang.String)
public SessionThread(Session session, java.lang.ThreadGroup group, java.lang.Runnable target)
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.
session
- user database session associated with this threadgroup
- the thread group.target
- the object whose run
method is called.Thread.Thread(java.lang.ThreadGroup,
java.lang.Runnable, java.lang.String)
public SessionThread(Session session, java.lang.String name)
SessionThread
object. This constructor has
the same effect as SessionThread(session, null, null, name)
.session
- user database session associated with this threadname
- the name of the new thread.Thread.Thread(java.lang.ThreadGroup,
java.lang.Runnable, java.lang.String)
public SessionThread(Session session, java.lang.ThreadGroup group, java.lang.String name)
SessionThread
object. This constructor has
the same effect as SessionThread(session, group, null, name)
.session
- user database session associated with this threadgroup
- the thread group.name
- the name of the new thread.Thread.Thread(java.lang.ThreadGroup,
java.lang.Runnable, java.lang.String)
public SessionThread(Session session, java.lang.Runnable target, java.lang.String name)
SessionThread
object. This constructor has
the same effect as SessionThread(session, null, target, name)
*session
- user database session associated with this threadtarget
- the object whose run
method is called.name
- the name of the new thread.Thread.Thread(java.lang.ThreadGroup,
java.lang.Runnable, java.lang.String)
public SessionThread(Session session, java.lang.ThreadGroup group, java.lang.Runnable target, java.lang.String name)
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
.
session
- user database session associated with this threadgroup
- the thread group.target
- the object whose run
method is called.name
- the name of the new thread.Thread.Thread(java.lang.ThreadGroup,
java.lang.Runnable, java.lang.String)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |