|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.cayenne.conf.DriverDataSourceFactory
org.apache.cayenne.project.ProjectDataSourceFactory
public class ProjectDataSourceFactory
Factory of DataSource objects used by the project model. Always tries to locate file with direct connection info.
Field Summary | |
---|---|
protected java.io.File |
projectDir
|
Fields inherited from class org.apache.cayenne.conf.DriverDataSourceFactory |
---|
driverInfo, parentConfiguration, parser |
Constructor Summary | |
---|---|
ProjectDataSourceFactory(java.io.File projectDir)
|
Method Summary | |
---|---|
javax.sql.DataSource |
getDataSource(java.lang.String location)
Returns DataSource object corresponding to location . |
protected DataSourceInfo |
getDriverInfo()
Returns DataSourceInfo property. |
Methods inherited from class org.apache.cayenne.conf.DriverDataSourceFactory |
---|
getDataSource, getInputStream, initializeWithParentConfiguration, load |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.io.File projectDir
Constructor Detail |
---|
public ProjectDataSourceFactory(java.io.File projectDir) throws java.lang.Exception
java.lang.Exception
Method Detail |
---|
public javax.sql.DataSource getDataSource(java.lang.String location) throws java.lang.Exception
DataSourceFactory
location
. Concrete
implementations may treat location differently - as a file path, JNDI location,
etc.
getDataSource
in interface DataSourceFactory
getDataSource
in class DriverDataSourceFactory
java.lang.Exception
protected DataSourceInfo getDriverInfo()
DriverDataSourceFactory
getDriverInfo
in class DriverDataSourceFactory
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |