com.ca.jcs.jdbc
Class JDBCMethodStyleOpProcessor

java.lang.Object
  extended by com.ca.jcs.processor.AbstractBaseProcessor
      extended by com.ca.jcs.processor.AbstractMethodStyleOpProcessor
          extended by com.ca.jcs.jdbc.JDBCMethodStyleOpProcessor
All Implemented Interfaces:
Activatable, MethodStyleOpProcessor

public class JDBCMethodStyleOpProcessor
extends AbstractMethodStyleOpProcessor

Delegate that handles invocation of stored procedures, after the framework has determined that the declared guard conditions match a particular operation.


Field Summary
protected  JDBCMetaConnector connector
           
 
Fields inherited from class com.ca.jcs.processor.AbstractBaseProcessor
ldapExceptionPrefix, log
 
Constructor Summary
JDBCMethodStyleOpProcessor(BaseConnector connector)
          Transaction management works without needing to explicitly refer to connector's transactionManager because managed implicitly using datasource and JDBCStoredProcedure.
 
Method Summary
 void activate()
          This method is called when the target object has been fully initialised, and is ready to receive requests.
 void deactivate()
          This method is called when the target object is no longer needed and should tidy-up any connections / resources it holds.
 Attributes doLookup(OpBindingType opBinding, ObjectInfo objInfo, String[] attrIds)
           
 NamingEnumeration<SearchResult> doSearch(OpBindingType opBinding, Name baseName, FilterInfo filterInfo, Map<String,String> environment, SearchControls searchControls)
          todo Need to finalise exactly what the query interfaces look like (especially the iterator returns from them) ...
 void doUpdate(OpBindingType opBinding, ObjectInfo objInfo, Map<String,Object> parameterValues)
          Sets null value for parameter mapped to OpBindingsHelper.ERROR_STATUS_ATTR on success, otherwise sets it to description of error that occurred.
 Opbindings getMetaData()
           
 void setMetaData(Opbindings opBindings)
          Called when metadata used to configure this connector is changed.
 
Methods inherited from class com.ca.jcs.processor.AbstractBaseProcessor
getBaseConnector, makeNamingException
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

connector

protected final JDBCMetaConnector connector
Constructor Detail

JDBCMethodStyleOpProcessor

public JDBCMethodStyleOpProcessor(BaseConnector connector)
Transaction management works without needing to explicitly refer to connector's transactionManager because managed implicitly using datasource and JDBCStoredProcedure.

Method Detail

activate

public void activate()
              throws NamingException
Description copied from interface: Activatable
This method is called when the target object has been fully initialised, and is ready to receive requests.

Throws:
NamingException

deactivate

public void deactivate()
                throws NamingException
Description copied from interface: Activatable
This method is called when the target object is no longer needed and should tidy-up any connections / resources it holds.

Throws:
NamingException

getMetaData

public Opbindings getMetaData()
Returns:
Metadata used to configure this connector.

setMetaData

public void setMetaData(Opbindings opBindings)
                 throws NamingException
Description copied from interface: MethodStyleOpProcessor
Called when metadata used to configure this connector is changed.

Parameters:
opBindings - New opBindings to be internalised, where only script payloads are included.
Throws:
NamingException

doUpdate

public void doUpdate(OpBindingType opBinding,
                     ObjectInfo objInfo,
                     Map<String,Object> parameterValues)
              throws NamingException
Description copied from interface: MethodStyleOpProcessor
Sets null value for parameter mapped to OpBindingsHelper.ERROR_STATUS_ATTR on success, otherwise sets it to description of error that occurred.

Throws:
NamingException

doSearch

public NamingEnumeration<SearchResult> doSearch(OpBindingType opBinding,
                                                Name baseName,
                                                FilterInfo filterInfo,
                                                Map<String,String> environment,
                                                SearchControls searchControls)
                                         throws NamingException
Description copied from interface: MethodStyleOpProcessor
todo Need to finalise exactly what the query interfaces look like (especially the iterator returns from them) ...

Throws:
NamingException

doLookup

public Attributes doLookup(OpBindingType opBinding,
                           ObjectInfo objInfo,
                           String[] attrIds)
                    throws NamingException
Throws:
NamingException


Created 2011-07-14 13:27 EST