Class DefaultJCoManagedConnectionFactory
- java.lang.Object
-
- de.hybris.platform.sap.core.jco.connection.impl.DefaultJCoManagedConnectionFactory
-
- All Implemented Interfaces:
JCoManagedConnectionFactory
public class DefaultJCoManagedConnectionFactory extends java.lang.Object implements JCoManagedConnectionFactory
Default implementation for managed connection factory.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Map<java.lang.String,java.lang.String>connectionDefinitionsConnection definition.protected GenericFactorygenericFactoryGeneric factory.
-
Constructor Summary
Constructors Constructor Description DefaultJCoManagedConnectionFactory(java.util.Map<java.lang.String,java.lang.String> connectionDefinitions)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GenericFactorygetGenericFactory()Getter for generic factory.JCoConnectiongetManagedConnection(java.lang.String connectionName, java.lang.String callerId)Returns a managed connection by a given connection name.JCoConnectiongetManagedConnection(java.lang.String connectionName, java.lang.String callerId, java.lang.String destinationName)Returns a managed connection by a given connection name.voidsetGenericFactory(GenericFactory genericFactory)Setter for generic factory.
-
-
-
Field Detail
-
connectionDefinitions
protected java.util.Map<java.lang.String,java.lang.String> connectionDefinitions
Connection definition.
-
genericFactory
protected GenericFactory genericFactory
Generic factory.
-
-
Method Detail
-
getManagedConnection
public JCoConnection getManagedConnection(java.lang.String connectionName, java.lang.String callerId)
Description copied from interface:JCoManagedConnectionFactoryReturns a managed connection by a given connection name.- Specified by:
getManagedConnectionin interfaceJCoManagedConnectionFactory- Parameters:
connectionName- name of the connectioncallerId- id for identifying the caller used for debugging- Returns:
- managed connection instance
-
getManagedConnection
public JCoConnection getManagedConnection(java.lang.String connectionName, java.lang.String callerId, java.lang.String destinationName)
Description copied from interface:JCoManagedConnectionFactoryReturns a managed connection by a given connection name.- Specified by:
getManagedConnectionin interfaceJCoManagedConnectionFactory- Parameters:
connectionName- name of the connectioncallerId- id for identifying the caller used for debuggingdestinationName- name of the destination to be used- Returns:
- managed connection instance
-
getGenericFactory
public GenericFactory getGenericFactory()
Getter for generic factory.- Returns:
- generic factory instance.
-
setGenericFactory
public void setGenericFactory(GenericFactory genericFactory)
Setter for generic factory.- Parameters:
genericFactory- generic factory instance
-
-