|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Middleware methods needed to implement a client
| Method Summary | |
void |
abort(JCO.Client client,
java.lang.String message)
Closes a connection and tries to send a final message to the caller |
void |
confirmTID(JCO.Client client,
java.lang.String tid)
Method that actually confirms a transaction |
void |
connect(JCO.Client client,
java.lang.String params)
Opens a client connection |
java.lang.String |
createTID(JCO.Client client)
Method that creates a transaction ID |
void |
disconnect(JCO.Client client)
Closes a connection |
void |
execute(JCO.Client client,
java.lang.String name,
JCO.ParameterList imp,
JCO.ParameterList imptab,
JCO.ParameterList exp,
JCO.ParameterList exptab,
java.lang.String tid,
java.lang.String qname,
int qcount)
Executes a function on the server |
void |
getAttributes(JCO.Client client)
Method that actually retrieves the attributes of a connection. |
java.lang.String[][] |
getPropertyInfo()
Returns information about the properties which are understood by the client implementation. |
void |
initialize(JCO.Client client,
java.util.Properties params)
Called to initialize the client just after its creation. |
boolean |
isAlive(JCO.Client client)
Checks whether the connection is alive |
void |
reset(JCO.Client client)
Method to reset a connection |
| Method Detail |
public java.lang.String[][] getPropertyInfo()
Strings containg the
name and description of a property. For example
String pinfo[][] = {
{ "jco.client.user", "Logon user name" },
{ "jco.client.password", "Logon password" },
{ "jco.client.language", "Logon language" },
};
public void initialize(JCO.Client client,
java.util.Properties params)
client - the client that calls the methodparams - connection parameters as property list
public void connect(JCO.Client client,
java.lang.String params)
client - the client that calls the methodparams - implementation dependent arguments which specify the connectionpublic void disconnect(JCO.Client client)
client - the client that calls the method
public void abort(JCO.Client client,
java.lang.String message)
client - the client that calls the methodmessage - the messages to send to the partner before closing the connectionpublic void reset(JCO.Client client)
client - the client that calls the methodpublic boolean isAlive(JCO.Client client)
client - the client that calls the methodtrue if the connection is alive, false otherwisepublic void getAttributes(JCO.Client client)
client - the client that calls the method
public void execute(JCO.Client client,
java.lang.String name,
JCO.ParameterList imp,
JCO.ParameterList imptab,
JCO.ParameterList exp,
JCO.ParameterList exptab,
java.lang.String tid,
java.lang.String qname,
int qcount)
client - the client that calls the method
public void confirmTID(JCO.Client client,
java.lang.String tid)
client - the client that calls the methodtid - the transaction ID to confirmpublic java.lang.String createTID(JCO.Client client)
client - the client that calls the method
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||