|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.infoengine.connector.IeInteraction
CCI Interaction object. Applications use this object to invoke methods/functions on the
underlying EIS (Info*Engine/Windchill).
Example:
Connection cx = myFactory.getConnection();
Interaction ix = cx.createInteraction();
// create interactionspec
IeInteractionSpec ixSpec = new IeInteractionSpec();
try {
ixSpec.setFunctionName ( "myMethodName" );
ixSpec.setClassName ( "com.myCompany.myClass" );
} catch ( Exception ex ) {
ex.printStackTrace ( System.err );
}
// create input record (parameters to pass)
RecordFactory rf = myFactory.getRecordFactory();
MappedRecord input = rf.createMappedRecord ( "input" );
input.put ( "parmName", "parmValue" );
// invoke the business method myMethodName on SOAP class com.myCompany.myClass IeInteractionResult result = (IeInteractionResult)ix.execute ( ixSpec, input );
// object returned here is goverened by the Info*Engine task
// may be java object, java object representation of primitive,
// a java bean or a Group
Object o = result.getResult();
IeInteractionSpec
,
IeInteractionResult
Nested Class Summary | |
private class |
IeInteraction.Deserializer
PrivilegedAction class used for SOAP deserialization. |
private class |
IeInteraction.GetBody
|
private class |
IeInteraction.Serializer
PrivilegedAction class used for SOAP deserialization. |
Field Summary | |
private IeConnection |
cx
|
private Method |
DESERIALIZE_METHOD
|
private Log |
log
|
private Method |
SERIALIZE_METHOD
|
Constructor Summary | |
(package private) |
IeInteraction(IeConnection c,
Log l)
create a new IeInteraction associated with connection handle c |
Method Summary | |
private void |
attach(javax.xml.soap.SOAPMessage msg,
String name,
javax.activation.DataSource data)
|
void |
clearWarnings()
remove any connection warnings. |
void |
close()
close this interaction. |
private javax.xml.soap.SOAPMessage |
digitallySign(javax.xml.soap.SOAPMessage message)
|
javax.resource.cci.Record |
execute(javax.resource.cci.InteractionSpec isSpec,
javax.resource.cci.Record input)
execute a method |
boolean |
execute(javax.resource.cci.InteractionSpec isSpec,
javax.resource.cci.Record input,
javax.resource.cci.Record output)
always throws NowSupportedException. |
private void |
getBeanParams(javax.resource.cci.Record input,
Vector v)
idea is to support input records other than MappedRecord and IndexedRecord that are beans. |
javax.resource.cci.Connection |
getConnection()
get the connection handle this interaction is associated with |
private Hashtable |
getParams(javax.resource.cci.Record input)
get the parameters from the input record. |
javax.resource.cci.ResourceWarning |
getWarnings()
get ResourceWarning. |
(package private) void |
setDeserializeMethod(Method m)
Hook added to allow DCA to deserialize straight to I*E data structures for performance improvements. |
(package private) void |
setSerializeMethod(Method m)
Hook added to allow DCA to serialize straight from I*E data structures for performance improvements. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private IeConnection cx
private Log log
private Method SERIALIZE_METHOD
private Method DESERIALIZE_METHOD
Constructor Detail |
IeInteraction(IeConnection c, Log l)
c
- connection handlel
- LogMethod Detail |
void setSerializeMethod(Method m)
package access so that DataAccessObject can manipulate.
m
- The serialize method method must be static and accept the following args (String,Object,SOAPElement,SOAPMessage)void setDeserializeMethod(Method m)
package access so that DataAccessObject can manipulate.
m
- The deserialize method method must be static and accept SOAPMessage as single parampublic void clearWarnings() throws javax.resource.ResourceException
clearWarnings
in interface javax.resource.cci.Interaction
javax.resource.ResourceException
public void close() throws javax.resource.ResourceException
close
in interface javax.resource.cci.Interaction
javax.resource.ResourceException
public javax.resource.cci.Record execute(javax.resource.cci.InteractionSpec isSpec, javax.resource.cci.Record input) throws javax.resource.ResourceException
execute
in interface javax.resource.cci.Interaction
isSpec
- interaction spec that contains method name and SOAP classinput
- parameters to pass (may be null).
javax.resource.ResourceException
- if something bad happens...IeInteractionResult
private void attach(javax.xml.soap.SOAPMessage msg, String name, javax.activation.DataSource data) throws Exception
Exception
private javax.xml.soap.SOAPMessage digitallySign(javax.xml.soap.SOAPMessage message) throws Exception
Exception
public boolean execute(javax.resource.cci.InteractionSpec isSpec, javax.resource.cci.Record input, javax.resource.cci.Record output) throws javax.resource.ResourceException
execute
in interface javax.resource.cci.Interaction
javax.resource.NotSupportedException
javax.resource.ResourceException
public javax.resource.cci.Connection getConnection()
getConnection
in interface javax.resource.cci.Interaction
public javax.resource.cci.ResourceWarning getWarnings() throws javax.resource.ResourceException
getWarnings
in interface javax.resource.cci.Interaction
javax.resource.ResourceException
private Hashtable getParams(javax.resource.cci.Record input)
input
- the input recordprivate void getBeanParams(javax.resource.cci.Record input, Vector v)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |