|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.farrago.db.FarragoDbSessionInfo
public class FarragoDbSessionInfo
Implements the FarragoSessionInfo
interface in the context of a
FarragoDbSession
.
Field Summary | |
---|---|
private FarragoDatabase |
database
|
private long |
id
|
private FarragoSession |
session
|
private Map<Long,FarragoSessionExecutingStmtInfo> |
statements
|
Constructor Summary | |
---|---|
FarragoDbSessionInfo(FarragoSession session,
FarragoDatabase database)
|
Method Summary | |
---|---|
void |
addExecutingStmtInfo(FarragoSessionExecutingStmtInfo info)
Adds a running statement. |
(package private) FarragoDatabase |
getDatabase()
|
List<Long> |
getExecutingStmtIds()
Returns a list of identifiers of currently running statements. |
FarragoSessionExecutingStmtInfo |
getExecutingStmtInfo(Long id)
Given a statement identifier, return an object containing its details. |
long |
getId()
Returns unique identifier for this session. |
FarragoSession |
getSession()
|
void |
removeExecutingStmtInfo(long id)
Removes a running statement. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private long id
private FarragoSession session
private FarragoDatabase database
private Map<Long,FarragoSessionExecutingStmtInfo> statements
Constructor Detail |
---|
FarragoDbSessionInfo(FarragoSession session, FarragoDatabase database)
Method Detail |
---|
public FarragoSession getSession()
getSession
in interface FarragoSessionInfo
FarragoDatabase getDatabase()
public long getId()
FarragoSessionInfo
getId
in interface FarragoSessionInfo
public List<Long> getExecutingStmtIds()
FarragoSessionInfo
getExecutingStmtIds
in interface FarragoSessionInfo
public FarragoSessionExecutingStmtInfo getExecutingStmtInfo(Long id)
FarragoSessionInfo
getExecutingStmtInfo
in interface FarragoSessionInfo
id
- Unique identifier of a statement
public void addExecutingStmtInfo(FarragoSessionExecutingStmtInfo info)
info
- Info object for the running statementpublic void removeExecutingStmtInfo(long id)
id
- Unique identifier of a running statement
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |