|
Agentflow V3.1 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DBService
DBService API.
Method Summary | |
---|---|
int |
addNewSessionConnectionURL(int type,
java.lang.String name,
java.lang.String dburl,
java.lang.String username,
java.lang.String password)
Add a new db URL to db configuration, and return its sequence number |
int |
addNewSessionConnectionURL(int type,
java.lang.String name,
java.lang.String dburl,
java.lang.String username,
java.lang.String password,
int minConnCount,
int maxConnCount)
Add a new db URL to db configuration, and return its sequence number |
int |
addNewSessionConnectionURL(int type,
java.lang.String name,
java.lang.String dburl,
java.lang.String username,
java.lang.String password,
int minConnCount,
int maxConnCount,
boolean isSession3X)
Add a new db URL to db configuration, and return its sequence number |
void |
addSessionConnectionURL(int seq,
int type,
java.lang.String dburl,
java.lang.String username,
java.lang.String password)
Add a db URL to db configuration, and specify its sequence number in it. |
void |
addSessionConnectionURL(int seq,
int type,
java.lang.String name,
java.lang.String dburl,
java.lang.String username,
java.lang.String password)
Add a db URL to db configuration, and specify its sequence number in it |
void |
addSessionConnectionURL(int seq,
int type,
java.lang.String name,
java.lang.String dburl,
java.lang.String username,
java.lang.String password,
int minConnCount,
int maxConnCount)
Add a db URL to db configuration, and specify its sequence number in it |
void |
addSessionConnectionURL(int seq,
int type,
java.lang.String name,
java.lang.String dburl,
java.lang.String username,
java.lang.String password,
int minConnCount,
int maxConnCount,
boolean isSession3X)
Add a db URL to db configuration, and specify its sequence number in it |
void |
closeAllSessionConnection()
Close a SessionConnection object |
void |
closeOpenedSessionConnection()
Close all SessionConnection object opened by current thread |
void |
closeSessionConnection(java.lang.String session)
Close a SessionConnection object |
void |
commitSessionConnection(java.lang.String session)
Make commit on the connection |
SessionConnection |
createSessionConnection(int sequence)
Create a SessionConnection |
SessionConnection |
createSessionConnection(java.lang.String name)
Create a SessionConnection |
boolean |
delete(java.lang.String sqlcmd)
Database delete |
boolean |
delete(java.lang.String sqlcmd,
java.util.Vector record,
java.util.Vector columnTypeList)
Database delete |
java.util.HashMap |
deleteSessionConnectionURL(java.lang.String name)
Remove a db URL from db configuration by given name, return the configuration which has been deleted |
java.util.HashMap |
getSessionConnectionURL(int sequence)
Get the db configuration info with the specific sequence number |
java.util.HashMap |
getSessionConnectionURL(java.lang.String name)
Get the db configuration info with the specific name |
java.util.Vector |
getSessionConnectionURLList()
Get the db configuration info list |
boolean |
insert(java.lang.String sqlcmd,
java.util.Vector record,
java.util.Vector columnTypeList)
Database insert |
java.util.Vector |
loadValueWithSessionConnection(java.lang.String session,
java.lang.String sqlcmd)
Invoke the connection to load value |
void |
rollbackSessionConnection(java.lang.String session)
Make rollback on the connection |
boolean |
SQLdeleteValue(java.lang.String sql)
The method is used to delete value from database (the RTRepository) |
boolean |
SQLinsertValue(java.lang.String sql)
The method is used to insert value to database (the RTRepository) |
java.util.List |
SQLloadValue(java.lang.String sql)
The method is used to load value from database (the RTRepository) |
boolean |
SQLupdateValue(java.lang.String sql)
The method is used to update value to database (the RTRepository) |
boolean |
testSessionConnection(int sequence)
Test a SessionConnection |
boolean |
testSessionConnection(java.lang.String name)
Test a SessionConnection |
boolean |
update(java.lang.String sqlcmd,
java.util.Vector newRecord,
java.util.Vector newColumnTypeList,
java.util.Vector oldRecord,
java.util.Vector oldColumnTypeList)
Database update |
boolean |
updateValueWithSessionConnection(java.lang.String session,
java.lang.String sqlcmd)
Invoke the connection to update value |
Method Detail |
---|
int addNewSessionConnectionURL(int type, java.lang.String name, java.lang.String dburl, java.lang.String username, java.lang.String password)
type
- the given DB Typename
- the given DB Namedburl
- the given DB URLusername
- the given Usernamepassword
- the given Passowrd
int addNewSessionConnectionURL(int type, java.lang.String name, java.lang.String dburl, java.lang.String username, java.lang.String password, int minConnCount, int maxConnCount)
type
- the given DB Typename
- the given DB Namedburl
- the given DB URLusername
- the given Usernamepassword
- the given PassowrdminConnCount
- the given Minimum Connection Number in pool.maxConnCount
- the given Maximum Connection Number in pool.
int addNewSessionConnectionURL(int type, java.lang.String name, java.lang.String dburl, java.lang.String username, java.lang.String password, int minConnCount, int maxConnCount, boolean isSession3X)
type
- the given DB Typename
- the given DB Namedburl
- the given DB URLusername
- the given Usernamepassword
- the given PassowrdminConnCount
- the given Minimum Connection Number in pool.maxConnCount
- the given Maximum Connection Number in pool.isSession3X
- the given isSession3X
void addSessionConnectionURL(int seq, int type, java.lang.String dburl, java.lang.String username, java.lang.String password)
seq
- the given DB sequencetype
- the given DB Typedburl
- the given DB URLusername
- the given Usernamepassword
- the given Passowrdvoid addSessionConnectionURL(int seq, int type, java.lang.String name, java.lang.String dburl, java.lang.String username, java.lang.String password)
seq
- the given DB sequencetype
- the given DB Typename
- the given DB Namedburl
- the given DB URLusername
- the given Usernamepassword
- the given Passowrdvoid addSessionConnectionURL(int seq, int type, java.lang.String name, java.lang.String dburl, java.lang.String username, java.lang.String password, int minConnCount, int maxConnCount)
seq
- the given DB sequencetype
- the given DB Typename
- the given DB Namedburl
- the given DB URLusername
- the given Usernamepassword
- the given PassowrdminConnCount
- the given Minimum Connection Number in pool.maxConnCount
- the given Maximum Connection Number in pool.void addSessionConnectionURL(int seq, int type, java.lang.String name, java.lang.String dburl, java.lang.String username, java.lang.String password, int minConnCount, int maxConnCount, boolean isSession3X)
seq
- the given DB sequencetype
- the given DB Typename
- the given DB Namedburl
- the given DB URLusername
- the given Usernamepassword
- the given PassowrdminConnCount
- the given Minimum Connection Number in pool.maxConnCount
- the given Maximum Connection Number in pool.isSession3X
- the given isSession3Xvoid closeAllSessionConnection()
void closeOpenedSessionConnection()
void closeSessionConnection(java.lang.String session)
session
- the given Session Keyvoid commitSessionConnection(java.lang.String session) throws java.sql.SQLException
session
- the given Session Key
java.sql.SQLException
SessionConnection createSessionConnection(int sequence)
sequence
- the given DB sequence
SessionConnection createSessionConnection(java.lang.String name)
name
- the given DB Name
boolean delete(java.lang.String sqlcmd)
boolean delete(java.lang.String sqlcmd, java.util.Vector record, java.util.Vector columnTypeList)
java.util.HashMap deleteSessionConnectionURL(java.lang.String name)
name
- the given DB Name
java.util.HashMap getSessionConnectionURL(int sequence)
sequence
- the given DB sequence
java.util.HashMap getSessionConnectionURL(java.lang.String name)
name
- the given DB Name
java.util.Vector getSessionConnectionURLList()
boolean insert(java.lang.String sqlcmd, java.util.Vector record, java.util.Vector columnTypeList)
java.util.Vector loadValueWithSessionConnection(java.lang.String session, java.lang.String sqlcmd)
session
- the given Session Keysqlcmd
- the given SQL statement
ResultTable
void rollbackSessionConnection(java.lang.String session)
session
- the given Session Keyboolean SQLdeleteValue(java.lang.String sql)
sql
- the input SQL data string
boolean SQLinsertValue(java.lang.String sql)
sql
- the input SQL data string
java.util.List SQLloadValue(java.lang.String sql)
sql
- the input SQL data string
boolean SQLupdateValue(java.lang.String sql)
sql
- the input SQL data string
boolean testSessionConnection(int sequence)
sequence
- the given DB sequence
boolean testSessionConnection(java.lang.String name)
name
- the given DB Name
boolean update(java.lang.String sqlcmd, java.util.Vector newRecord, java.util.Vector newColumnTypeList, java.util.Vector oldRecord, java.util.Vector oldColumnTypeList)
boolean updateValueWithSessionConnection(java.lang.String session, java.lang.String sqlcmd) throws java.sql.SQLException
session
- the given Session Keysqlcmd
- the given SQL statement
java.sql.SQLException
|
Agentflow V3.1 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |