Package org.teiid.spring.data.salesforce
Class SalesforceConnectionFactory
- java.lang.Object
-
- org.teiid.spring.data.salesforce.SalesforceConnectionFactory
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,org.teiid.resource.api.ConnectionFactory<SalesforceConnectionImpl>
,BaseConnectionFactory<SalesforceConnectionImpl>
public class SalesforceConnectionFactory extends Object implements BaseConnectionFactory<SalesforceConnectionImpl>
-
-
Constructor Summary
Constructors Constructor Description SalesforceConnectionFactory(SalesforceConfiguration config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkVersion(SalesforceConfiguration config)
void
close()
SalesforceConnectionImpl
getConnection()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.teiid.spring.data.BaseConnectionFactory
getAlias, getTranslatorName
-
-
-
-
Constructor Detail
-
SalesforceConnectionFactory
public SalesforceConnectionFactory(SalesforceConfiguration config)
-
-
Method Detail
-
checkVersion
public void checkVersion(SalesforceConfiguration config)
-
getConnection
public SalesforceConnectionImpl getConnection() throws Exception
- Specified by:
getConnection
in interfaceorg.teiid.resource.api.ConnectionFactory<SalesforceConnectionImpl>
- Throws:
Exception
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
-