|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.cayenne.conf.ConfigStatus
public class ConfigStatus
Interface defines API to check the status of Cayenne configuration.
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 |
---|
protected List otherFailures
protected Map failedMaps
protected Map failedAdapters
protected Map failedDataSources
protected List failedMapRefs
protected Map messages
Constructor Detail |
---|
public ConfigStatus()
Method Detail |
---|
public void addFailedMap(String name, String location, Object extraMessage)
public void addFailedAdapter(String name, String location, String extraMessage)
public void addFailedDataSource(String name, String location, String extraMessage)
public void addFailedMapRefs(String name, String extraMessage)
protected String getMapMessageKey(String name, String location)
protected String getAdapterMessageKey(String name, String location)
protected String getDataSourceMessageKey(String name, String location)
protected String getMapRefMessageKey(String name)
public String describeFailures()
public List getOtherFailures()
public List getFailedMapRefs()
public Map getFailedMaps()
public Map getFailedDataSources()
public Map getFailedAdapters()
public boolean hasFailures()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |