|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.intermine.dataloader.PriorityConfig
public class PriorityConfig
Class holding data source priority configuration for a Model.
| Constructor Summary | |
|---|---|
PriorityConfig(Model model)
Constructor. |
|
| Method Summary | |
|---|---|
protected java.util.List<java.lang.String> |
getPriorities(java.lang.Class<? extends FastPathObject> clazz,
java.lang.String fieldName)
Returns a List of data source names representing the priority for a given class and fieldname pair. |
static void |
verify(Model model,
java.lang.String sources)
Verifies the priorities config given the list of data sources. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PriorityConfig(Model model)
model - the Model of the production database
java.lang.IllegalArgumentException - if the priorities are misconfigured| Method Detail |
|---|
public static void verify(Model model,
java.lang.String sources)
model - the Model of the production databasesources - the space-separated list of data sources
java.lang.IllegalArgumentException - if a source is mentioned in the priorities file but not the
project.xml file
protected java.util.List<java.lang.String> getPriorities(java.lang.Class<? extends FastPathObject> clazz,
java.lang.String fieldName)
clazz - the class of the object being createdfieldName - the name of the field that the priority is for
java.lang.IllegalArgumentException - if more than one priority config matches
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||