|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.reuters.rc.db.adb.AdbFactory
The factory for Adb. This class is the single source for object creation. Application clients can set/get their particular choice of DbFactory implementation through the static methods of the DbManager class.
Constructor Summary | |
AdbFactory()
Ctor. |
Method Summary | |
DbOpcode |
getDeleteOpcode()
Get an instance of a DbOpcode object that represents a Delete operation. |
DbOpcode |
getInsertOpcode()
Get an instance of a DbOpcode object that represents an Insert operation. |
DbOpcode |
getOpcode(int opCode)
Get the OpCode object corresponding to an integer opcode. |
DbPubMsg |
getPubMsg(com.tibco.tibrv.TibrvMsg rvMsg)
Get an instance of a PubMsg object constructed from a Tibrv message. |
DbReply |
getReply(com.tibco.tibrv.TibrvMsg replyMsg)
Get an instance of a DbReply object. |
DbRequest |
getRequest(DbRequestStmt stmt)
Get an instance of a DbRequest object. |
DbRequest |
getRequest(DbRequestStmt[] stmts)
Get an instance of a DbRequest object. |
DbRequest |
getRequest(DbRequestStmt[] stmts,
double timeout)
Get an instance of a DbRequest object. |
DbRequest |
getRequest(DbRequestStmt[] stmts,
double timeout,
java.lang.Object closure)
Get an instance of a DbRequest object. |
DbRequest |
getRequest(DbRequestStmt stmt,
double timeout)
Get an instance of a DbRequest object. |
DbRequest |
getRequest(DbRequestStmt stmt,
double timeout,
java.lang.Object closure)
Get an instance of a DbRequest object. |
DbRequestBind |
getRequestBind(int position,
java.lang.Object data)
Get an instance of a DbRequestBind object. |
DbRequestBind |
getRequestBind(int position,
java.lang.String column,
java.lang.Object data)
Get an instance of a DbRequestBind object. |
DbRequestBind |
getRequestBind(java.lang.String column,
java.lang.Object data)
Get an instance of a DbRequestBind object. |
DbRequestStmt |
getRequestStmt(java.lang.String sql)
Get an instance of a DbRequestStmt object. |
DbRequestStmt |
getRequestStmt(java.lang.String sql,
DbRequestBind bind)
Get an instance of a DbRequestStmt object |
DbRequestStmt |
getRequestStmt(java.lang.String sql,
DbRequestBind[] binds)
Get an instance of a DbRequestStmt object |
DbRequestStmt |
getRequestStmt(java.lang.String sql,
DbRequestBind[] binds,
int maxRows)
Get an instance of a DbRequestStmt object |
DbRequestStmt |
getRequestStmt(java.lang.String sql,
DbRequestBind bind,
int maxRows)
Get an instance of a DbRequestStmt object |
DbRequestStmt |
getRequestStmt(java.lang.String sql,
int maxRows)
Get an instance of a DbRequestStmt object. |
DbOpcode |
getUnknownOpcode()
Get an instance of a DbOpcode object that represents an Unknown operation. |
DbOpcode |
getUpdateOpcode()
Get an instance of a DbOpcode object that represents an Update operation. |
DbOpcode |
getUpsertOpcode()
Get an instance of a DbOpcode object that represents an Upsert operation. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AdbFactory()
Method Detail |
public DbRequest getRequest(DbRequestStmt stmt)
getRequest
in interface DbFactory
stmt
- request statementDbRequestStmt
public DbRequest getRequest(DbRequestStmt stmt, double timeout)
getRequest
in interface DbFactory
stmt
- Request statement.timeout
- Maximum time interval - in seconds - for which to
wait for reply in request/reply mode.DbRequest.sendRequest(TibrvTransport, String)
,
DbRequest.sendRequest(String)
,
DbRequestStmt
public DbRequest getRequest(DbRequestStmt stmt, double timeout, java.lang.Object closure)
getRequest
in interface DbFactory
stmt
- Request statement.timeout
- Maximum time interval - in seconds - for which to
wait for reply in request/reply mode.closure
- Closure argument.DbRequest.sendRequest(TibrvTransport, String)
,
DbRequest.sendRequest(String)
,
DbRequestStmt
public DbRequest getRequest(DbRequestStmt[] stmts)
getRequest
in interface DbFactory
stmts
- Request statements.DbRequestStmt
public DbRequest getRequest(DbRequestStmt[] stmts, double timeout)
getRequest
in interface DbFactory
stmts
- Request statements.timeout
- Maximum time interval - in seconds - for which to
wait for reply in request/reply mode.DbRequest.sendRequest(TibrvTransport, String)
,
DbRequest.sendRequest(String)
,
DbRequestStmt
public DbRequest getRequest(DbRequestStmt[] stmts, double timeout, java.lang.Object closure)
getRequest
in interface DbFactory
stmts
- Request statements.timeout
- Maximum time interval - in seconds - for which to
wait for reply in request/reply mode.closure
- Closure argument.DbRequest.sendRequest(TibrvTransport, String)
,
DbRequest.sendRequest(String)
,
DbRequestStmt
public DbReply getReply(com.tibco.tibrv.TibrvMsg replyMsg)
getReply
in interface DbFactory
replyMsg
- Reply message from ADB.public DbRequestStmt getRequestStmt(java.lang.String sql)
getRequestStmt
in interface DbFactory
sql
- The SQL statement to execute on the ADB.public DbRequestStmt getRequestStmt(java.lang.String sql, int maxRows)
getRequestStmt
in interface DbFactory
sql
- The SQL statement to execute on the ADB.maxRows
- Maximum number of result rows returned from request.public DbRequestStmt getRequestStmt(java.lang.String sql, DbRequestBind bind)
getRequestStmt
in interface DbFactory
sql
- The SQL statement to execute on the ADB.bind
- Bind data.DbRequestBind
public DbRequestStmt getRequestStmt(java.lang.String sql, DbRequestBind bind, int maxRows)
getRequestStmt
in interface DbFactory
sql
- The SQL statement to execute on the ADB.bind
- Bind data.maxRows
- Maximum number of result rows returned from request.DbRequestBind
public DbRequestStmt getRequestStmt(java.lang.String sql, DbRequestBind[] binds)
getRequestStmt
in interface DbFactory
sql
- The SQL statement to execute on the ADB.binds
- Bind data.DbRequestBind
public DbRequestStmt getRequestStmt(java.lang.String sql, DbRequestBind[] binds, int maxRows)
getRequestStmt
in interface DbFactory
sql
- The SQL statement to execute on the ADB.binds
- Bind data.maxRows
- Maximum number of result rows returned from request.DbRequestBind
public DbRequestBind getRequestBind(int position, java.lang.String column, java.lang.Object data)
getRequestBind
in interface DbFactory
position
- Placeholder position.column
- Column name.data
- Column data.public DbRequestBind getRequestBind(java.lang.String column, java.lang.Object data)
getRequestBind
in interface DbFactory
column
- Column name.data
- Column data.public DbRequestBind getRequestBind(int position, java.lang.Object data)
getRequestBind
in interface DbFactory
position
- Placeholder position.data
- Column data.public DbOpcode getInsertOpcode()
getInsertOpcode
in interface DbFactory
public DbOpcode getDeleteOpcode()
getDeleteOpcode
in interface DbFactory
public DbOpcode getUpdateOpcode()
getUpdateOpcode
in interface DbFactory
public DbOpcode getUpsertOpcode()
getUpsertOpcode
in interface DbFactory
public DbOpcode getUnknownOpcode()
getUnknownOpcode
in interface DbFactory
public DbOpcode getOpcode(int opCode)
getOpcode
in interface DbFactory
opCode
- an application specific opcode value as an integerpublic DbPubMsg getPubMsg(com.tibco.tibrv.TibrvMsg rvMsg)
getPubMsg
in interface DbFactory
rvMsg
- the rvMsg that is published
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |