com.atlassian.jira.ofbiz
Interface OfBizConnectionFactory

All Known Implementing Classes:
DefaultOfBizConnectionFactory

public interface OfBizConnectionFactory

Connection factory for finding out about OfBiz connections and datasources


Method Summary
 Connection getConnection()
          Get a connection for the current tenant
 org.ofbiz.core.entity.config.DatasourceInfo getDatasourceInfo()
          Get the datasource info for the current tenant
 String getDelegatorName()
          Get the delegator name for the current tenant
 

Method Detail

getConnection

Connection getConnection()
                         throws SQLException
Get a connection for the current tenant

Returns:
Returns a database connection
Throws:
SQLException - If an error occured

getDatasourceInfo

org.ofbiz.core.entity.config.DatasourceInfo getDatasourceInfo()
Get the datasource info for the current tenant

Returns:
The datasource info

getDelegatorName

String getDelegatorName()
Get the delegator name for the current tenant

Returns:
The name of the delegator


Copyright © 2002-2012 Atlassian. All Rights Reserved.