org.synchronoss.cpo
Interface DataSourceInfo

Package class diagram package DataSourceInfo
All Known Implementing Classes:
ClassDataSourceInfo, DriverDataSourceInfo, JndiDataSourceInfo

public interface DataSourceInfo

Interface that defines the methods needed by CPO for any class that collects DataSource info and instantiates the DataSource

Author:
david.berry

Method Summary
 javax.sql.DataSource getDataSource()
           
 java.lang.String getDataSourceName()
           
 java.lang.String getTablePrefix()
          Returns the tablePrefix or an empty string if no table prefix exists.
 

Method Detail

getDataSourceName

java.lang.String getDataSourceName()
Returns:
Returns the dataSourceName.

getDataSource

javax.sql.DataSource getDataSource()
                                   throws CpoException
Returns:
Returns the DataSource
Throws:
CpoException

getTablePrefix

java.lang.String getTablePrefix()
Returns the tablePrefix or an empty string if no table prefix exists.

Returns:
Returns the tablePrefix to be used on the CPO Tables


Copyright © 2011. All Rights Reserved.