org.apache.cayenne.conf
Class ConfigStatus

java.lang.Object
  extended by org.apache.cayenne.conf.ConfigStatus

public class ConfigStatus
extends Object

Interface defines API to check the status of Cayenne configuration.

Author:
Andrus Adamchik

Field Summary
protected  Map failedAdapters
           
protected  Map failedDataSources
           
protected  List failedMapRefs
           
protected  Map failedMaps
           
protected  Map messages
           
protected  List otherFailures
           
 
Constructor Summary
ConfigStatus()
           
 
Method Summary
 void addFailedAdapter(String name, String location, String extraMessage)
           
 void addFailedDataSource(String name, String location, String extraMessage)
           
 void addFailedMap(String name, String location, Object extraMessage)
           
 void addFailedMapRefs(String name, String extraMessage)
           
 String describeFailures()
          Returns a String description of failed configuration pieces.
protected  String getAdapterMessageKey(String name, String location)
           
protected  String getDataSourceMessageKey(String name, String location)
           
 Map getFailedAdapters()
          Returns a map of adapter classes for node names that failed to load.
 Map getFailedDataSources()
          Returns a map of DataSource locations for node names that failed to load.
 List getFailedMapRefs()
          Returns a list of map reference names that failed to load.
 Map getFailedMaps()
          Returns a map of locations for names of the data maps that failed to load.
protected  String getMapMessageKey(String name, String location)
           
protected  String getMapRefMessageKey(String name)
           
 List getOtherFailures()
          Returns a list of error messages not directly associated with project objects, such as XML pare exceptions, IOExceptions, etc.
 boolean hasFailures()
          Returns true if any of the "failed.." methods return true.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

otherFailures

protected List otherFailures

failedMaps

protected Map failedMaps

failedAdapters

protected Map failedAdapters

failedDataSources

protected Map failedDataSources

failedMapRefs

protected List failedMapRefs

messages

protected Map messages
Constructor Detail

ConfigStatus

public ConfigStatus()
Method Detail

addFailedMap

public void addFailedMap(String name,
                         String location,
                         Object extraMessage)

addFailedAdapter

public void addFailedAdapter(String name,
                             String location,
                             String extraMessage)

addFailedDataSource

public void addFailedDataSource(String name,
                                String location,
                                String extraMessage)

addFailedMapRefs

public void addFailedMapRefs(String name,
                             String extraMessage)

getMapMessageKey

protected String getMapMessageKey(String name,
                                  String location)

getAdapterMessageKey

protected String getAdapterMessageKey(String name,
                                      String location)

getDataSourceMessageKey

protected String getDataSourceMessageKey(String name,
                                         String location)

getMapRefMessageKey

protected String getMapRefMessageKey(String name)

describeFailures

public String describeFailures()
Returns a String description of failed configuration pieces. Returns a canned "no failures" message if no failures occurred.


getOtherFailures

public List getOtherFailures()
Returns a list of error messages not directly associated with project objects, such as XML pare exceptions, IOExceptions, etc.


getFailedMapRefs

public List getFailedMapRefs()
Returns a list of map reference names that failed to load.


getFailedMaps

public Map getFailedMaps()
Returns a map of locations for names of the data maps that failed to load.


getFailedDataSources

public Map getFailedDataSources()
Returns a map of DataSource locations for node names that failed to load.


getFailedAdapters

public Map getFailedAdapters()
Returns a map of adapter classes for node names that failed to load.


hasFailures

public boolean hasFailures()
Returns true if any of the "failed.." methods return true.



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