|
Agentflow V3.1 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectpe.pase.SessionConnection
public class SessionConnection
Session connection provides objects to access database.
| Field Summary | |
|---|---|
protected DBService |
dBService
|
protected int |
m_sequence
|
protected java.lang.String |
m_session
|
| Constructor Summary | |
|---|---|
SessionConnection(DBService service,
java.lang.String session,
int sequence)
Constructor. |
|
| Method Summary | |
|---|---|
void |
close()
Close the connection |
void |
commit()
Make commit on the connection |
java.util.HashMap |
getConfig()
Get the configuration of SessionConnection |
int |
getSequence()
|
java.lang.String |
getSessionId()
|
java.util.Vector |
loadValue(java.lang.String sqlcmd)
Invoke the connection to load value |
void |
rollback()
Make rollback on the connection |
void |
setDBService(DBService dBService)
|
boolean |
updateValue(java.lang.String sqlcmd)
Invoke the connection to update value |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected transient DBService dBService
protected int m_sequence
protected java.lang.String m_session
| Constructor Detail |
|---|
public SessionConnection(DBService service,
java.lang.String session,
int sequence)
SessionConnection
with the specified parameters.
service - the given remote DBServicesession - the given session keysequence - the given data source sequence| Method Detail |
|---|
public void close()
throws java.lang.Exception
java.lang.Exception - exception occurs if server can not close session
connection
public void commit()
throws java.lang.Exception
java.lang.Exception
public java.util.HashMap getConfig()
throws java.lang.Exception
java.lang.Exception - exception occurs if the server can not get the config of
the session connectionpublic int getSequence()
public java.lang.String getSessionId()
public java.util.Vector loadValue(java.lang.String sqlcmd)
throws java.lang.Exception
sqlcmd - the given sql command
Vector is instance of
ResultTable)
java.lang.Exception - exception occurs if the server can not load value with
session connectionResultTablepublic void rollback()
public void setDBService(DBService dBService)
public boolean updateValue(java.lang.String sqlcmd)
throws java.lang.Exception
sqlcmd - the given sql command
java.lang.Exception - exception occurs if the server can not update value with
session connection
|
Agentflow V3.1 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||