|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.xbus.technical.database.DatabaseSender
public class DatabaseSender
The DatabaseSender sends SQL-statements to a database and
returns the results. The request and the response are XML documents.
| Constructor Summary | |
|---|---|
DatabaseSender(XBUSSystem destination)
The constructor stores the destination. |
|
| Method Summary | |
|---|---|
java.lang.Object |
execute(java.lang.String function,
java.lang.Object callData)
Sends SQL statements to the database and return the results. |
java.lang.String |
getType()
A Sender can send data either as a String
or as an Object to the neighboring system. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DatabaseSender(XBUSSystem destination)
destination - definition of the interface in
standard.conf
XException - never thrown| Method Detail |
|---|
public java.lang.Object execute(java.lang.String function,
java.lang.Object callData)
throws XException
execute in interface ObjectSenderfunction - not usedcallData - XML document containing SQL statements
callData contained
SELECT statements, NULL otherwise
XException - in case of errorspublic java.lang.String getType()
SenderSender can send data either as a String
or as an Object to the neighboring system.Strings the Sender must fulfill two
preconditions:
getType returns Constants.TYPE_TEXTTextSenderObjects the Sender must also fulfill two
preconditions:
getType returns Constants.TYPE_OBJECTObjectSender
getType in interface Sender
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||