Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.cayenne.project
Class ProjectConfiguration

    java.lang.Object
      org.apache.cayenne.conf.Configuration
          org.apache.cayenne.conf.DefaultConfiguration
              org.apache.cayenne.conf.FileConfiguration
                  org.apache.cayenne.project.ProjectConfiguration

    public class ProjectConfiguration

extends FileConfiguration

Subclass of FileConfiguration used in the project model.

Field Summary

Fields inherited from class org.apache.cayenne.conf.FileConfiguration
`projectFile`

Fields inherited from class org.apache.cayenne.conf.DefaultConfiguration
`locator`

Fields inherited from class org.apache.cayenne.conf.Configuration
`configurationShutdownHook, dataDomains, dataViewLocations, DEFAULT_CONFIGURATION_CLASS, DEFAULT_DOMAIN_FILE, domainConfigurationName, eventManager, ignoringLoadFailures, loaderDelegate, loadStatus, overrideFactory, overrideStrategy, projectVersion, saverDelegate, sharedConfiguration`

Constructor Summary
`ProjectConfiguration(File projectFile)` Override parent implementation to ignore loading failures.

Method Summary
`boolean` | `canInitialize()` Override parent implementation to prevent loading of nonexisting files.
`DataSourceFactory` | `getDataSourceFactory()` Deprecated. since 3.0 as the super method is deprecated as well.
`DataSourceFactory` | `getDataSourceFactory(String userFactoryName)` Returns a DataSourceFactory that should override a given factory specified by caller.
`protected void` | `setProjectFile(File projectFile)` Override parent implementation to allow for null files.

Methods inherited from class org.apache.cayenne.conf.FileConfiguration
`addFilesystemPath, addFilesystemPath, getProjectDirectory, getProjectFile`

Methods inherited from class org.apache.cayenne.conf.DefaultConfiguration
`addClassPath, addResourcePath, getDomainConfiguration, getResourceFinder, getResourceLocator, initialize, setResourceLocator, toString`

Methods inherited from class org.apache.cayenne.conf.Configuration
`addDomain, didInitialize, getDataViewLocations, getDomain, getDomain, getDomainConfigurationName, getDomains, getEventManager, getLoaderDelegate, getLoadStatus, getMapConfiguration, getProjectVersion, getSaverDelegate, getSchemaUpdateStrategy, getSharedConfiguration, getViewConfiguration, initializeSharedConfiguration, initializeSharedConfiguration, initializeSharedConfiguration, installConfigurationShutdownHook, isIgnoringLoadFailures, removeDomain, setDataSourceFactory, setDataViewLocations, setDomainConfigurationName, setEventManager, setIgnoringLoadFailures, setLoaderDelegate, setLoadStatus, setProjectVersion, setSaverDelegate, setSchemaUpdateStrategy, shutdown, uninstallConfigurationShutdownHook`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

Constructor Detail

### ProjectConfiguration

    public ProjectConfiguration(File projectFile)

  Override parent implementation to ignore loading failures.

  See Also:
    `FileConfiguration.FileConfiguration(File)`

Method Detail

### canInitialize

    public boolean canInitialize()

  Override parent implementation to prevent loading of nonexisting files.

  Overrides:
    `canInitialize` in class `FileConfiguration`
  See Also:
    `FileConfiguration.canInitialize()`

### setProjectFile

    protected void setProjectFile(File projectFile)

  Override parent implementation to allow for null files.

  Overrides:
    `setProjectFile` in class `FileConfiguration`
  See Also:
    `FileConfiguration.setProjectFile(File)`

### getDataSourceFactory

    public DataSourceFactory getDataSourceFactory(String userFactoryName)

  Description copied from class: `Configuration`
  Returns a DataSourceFactory that should override a given factory specified by caller. Returns null if the user factory should not be overriden.

  Overrides:
    `getDataSourceFactory` in class `Configuration`

### getDataSourceFactory

    public DataSourceFactory getDataSourceFactory()

  Deprecated. since 3.0 as the super method is deprecated as well.

  Returns an instance of `ProjectDataSourceFactory`.

  Overrides:
    `getDataSourceFactory` in class `Configuration`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2001-2009 Apache Cayenne. All Rights Reserved.