com.infoengine.connector
Class DataAccessObject

java.lang.Object
  extended bycom.infoengine.connector.DataAccessObject
Direct Known Subclasses:
ConnectorDAO, ConsoleDAO, RPCHelper

public class DataAccessObject
extends Object

Info*Engine data access object.
this object is a convenience for EJB developers.
Info*Engine can use exposed WSDL to generate Data Access Objects to be used in EJB development.


Field Summary
protected  String className
           
protected  javax.resource.cci.Connection cx
           
private  Method DESERIALIZE_METHOD
           
protected  javax.resource.cci.RecordFactory rf
           
private  Method SERIALIZE_METHOD
           
 
Constructor Summary
DataAccessObject(javax.resource.cci.Connection c, javax.resource.cci.RecordFactory r, String cls)
          construct a new DataAccessObject that can execute methods on a SOAP class
 
Method Summary
 void close()
          Closes this Data Access Object.
protected  Object execute(String functionName, String[] parmNames, Object[] parmValues)
          execute a method on a SOAP class.
the size of parmNames and parmValues must be equal.
protected  void setDeserializeMethod(Method m)
          Hook added to allow DCA to deserialize straight to I*E data structures for performance improvements.
protected  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

cx

protected javax.resource.cci.Connection cx

rf

protected javax.resource.cci.RecordFactory rf

className

protected String className

SERIALIZE_METHOD

private Method SERIALIZE_METHOD

DESERIALIZE_METHOD

private Method DESERIALIZE_METHOD
Constructor Detail

DataAccessObject

public DataAccessObject(javax.resource.cci.Connection c,
                        javax.resource.cci.RecordFactory r,
                        String cls)
construct a new DataAccessObject that can execute methods on a SOAP class

Parameters:
c - the cci connection to use
r - the record factory to use when creating input records
cls - the SOAP class to use when executing methods
Method Detail

setSerializeMethod

protected void setSerializeMethod(Method m)
Hook added to allow DCA to serialize straight from I*E data structures for performance improvements.

package access so that extensions can manipulate.

Parameters:
m - The serialize method method must be static and accept the following args (String,Object,SOAPElement,SOAPMessage)

setDeserializeMethod

protected void setDeserializeMethod(Method m)
Hook added to allow DCA to deserialize straight to I*E data structures for performance improvements.

package access so that extensions can manipulate.

Parameters:
m - The deserialize method method must be static and accept SOAPMessage as single param

execute

protected Object execute(String functionName,
                         String[] parmNames,
                         Object[] parmValues)
                  throws Exception
execute a method on a SOAP class.
the size of parmNames and parmValues must be equal.

Parameters:
functionName - the function/method to execute
parmNames - the parameter names this method accepts
parmValues - the parameter values used to execute this method
Returns:
Object the result of the function/method execution.
Throws:
Exception

close

public void close()
           throws javax.resource.ResourceException
Closes this Data Access Object. The object should be discarded following a call to this method and not re-used.

Throws:
javax.resource.ResourceException