|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ca.spaz.cron.datasource.Datasources
public class Datasources
A class for managing datasources.
Method Summary | |
---|---|
void |
closeAll()
Closes all data sources in the application. |
java.util.List |
getDatasources()
Retrieve a list of all functional data sources in the application. |
java.util.List |
getDatasources(boolean includeUnAvailable)
Retrieve a list of data sources available in the application. |
java.util.List |
getFoodGroups()
Retrieve a list of the Food Groups consisting of the union of all food groups in the various supported data sources. |
static Datasources |
getInstance()
|
ILocalFoodDatasource |
getMutableDataSource()
Retrieve the unique instance of the user data source. |
java.util.List |
getSources()
Retrieve a list of the Sources listed in the food data sources. |
static void |
initialize(ProgressListener pl)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static final Datasources getInstance()
public static final void initialize(ProgressListener pl)
public ILocalFoodDatasource getMutableDataSource()
ILocalFoodDatasource
instance for this run of the application.public java.util.List getDatasources()
List
of IFoodDatasource
instances consisting of
only those for which isAvailable()
returns true
.public void closeAll()
public java.util.List getFoodGroups()
public java.util.List getSources()
public java.util.List getDatasources(boolean includeUnAvailable)
includeUnAvailable
- Set this to true if the datasources list should
include data sources that indicate that they are unavailable.
IFoodDatasource
objects representing all
loaded datasources. if includeUnAvailable
is true
,
this list will include Datasources that are not operational.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |