Class SalesForceManagedConnectionFactory
- java.lang.Object
-
- org.teiid.resource.spi.BasicManagedConnectionFactory
-
- org.teiid.resource.adapter.salesforce.SalesForceManagedConnectionFactory
-
- All Implemented Interfaces:
Serializable
,javax.resource.spi.ManagedConnectionFactory
,javax.resource.spi.ResourceAdapterAssociation
,javax.resource.spi.ValidatingManagedConnectionFactory
,SalesforceConfiguration
public class SalesForceManagedConnectionFactory extends BasicManagedConnectionFactory implements SalesforceConfiguration
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SalesForceManagedConnectionFactory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkVersion()
BasicConnectionFactory<ResourceConnection>
createConnectionFactory()
boolean
equals(Object obj)
String
getConfigFile()
String
getConfigProperties()
Long
getConnectTimeout()
static String
getJavaApiVersion()
String
getPassword()
String
getProxyPassword()
String
getProxyURL()
String
getProxyUsername()
Long
getRequestTimeout()
String
getURL()
The salesforce URL to use as the AuthEndpoint.String
getUsername()
int
hashCode()
void
setConfigFile(String config)
void
setConfigProperties(String configProperties)
void
setConnectTimeout(Long connectTimeout)
void
setPassword(String password)
void
setProxyPassword(String proxyPassword)
void
setProxyURL(String proxyUrl)
void
setProxyUsername(String proxyUsername)
void
setRequestTimeout(Long requestTimeout)
void
setURL(String uRL)
void
setUsername(String username)
-
Methods inherited from class org.teiid.resource.spi.BasicManagedConnectionFactory
checkEquals, createConnectionFactory, createManagedConnection, getInstance, getInvalidConnections, getLogWriter, getResourceAdapter, matchManagedConnections, setLogWriter, setResourceAdapter
-
-
-
-
Method Detail
-
getUsername
public String getUsername()
- Specified by:
getUsername
in interfaceSalesforceConfiguration
-
setUsername
public void setUsername(String username)
-
getPassword
public String getPassword()
- Specified by:
getPassword
in interfaceSalesforceConfiguration
-
setPassword
public void setPassword(String password)
-
getURL
public String getURL()
Description copied from interface:SalesforceConfiguration
The salesforce URL to use as the AuthEndpoint. May be used to explicitly control the api version being used. The source will default to an appropriate value for the included Salesforce API library.- Specified by:
getURL
in interfaceSalesforceConfiguration
-
setURL
public void setURL(String uRL)
-
getConnectTimeout
public Long getConnectTimeout()
- Specified by:
getConnectTimeout
in interfaceSalesforceConfiguration
-
setConnectTimeout
public void setConnectTimeout(Long connectTimeout)
-
getRequestTimeout
public Long getRequestTimeout()
- Specified by:
getRequestTimeout
in interfaceSalesforceConfiguration
-
setRequestTimeout
public void setRequestTimeout(Long requestTimeout)
-
createConnectionFactory
public BasicConnectionFactory<ResourceConnection> createConnectionFactory() throws javax.resource.ResourceException
- Specified by:
createConnectionFactory
in interfacejavax.resource.spi.ManagedConnectionFactory
- Specified by:
createConnectionFactory
in classBasicManagedConnectionFactory
- Throws:
javax.resource.ResourceException
-
getProxyUsername
public String getProxyUsername()
-
setProxyUsername
public void setProxyUsername(String proxyUsername)
-
getProxyPassword
public String getProxyPassword()
-
setProxyPassword
public void setProxyPassword(String proxyPassword)
-
getProxyURL
public String getProxyURL()
-
setProxyURL
public void setProxyURL(String proxyUrl)
-
getConfigProperties
public String getConfigProperties()
-
setConfigProperties
public void setConfigProperties(String configProperties)
-
getConfigFile
public String getConfigFile()
-
setConfigFile
public void setConfigFile(String config)
-
hashCode
public int hashCode()
-
equals
public boolean equals(Object obj)
-
checkVersion
public void checkVersion()
-
getJavaApiVersion
public static String getJavaApiVersion()
-
-