|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsimtools.data.EmptyDataSourcePool
public class EmptyDataSourcePool
Pool of empty data sources: holds a certain number of data sources that cannot be restored. A empty data source can be replaced with a real one as soon as a data source with same references has been created.
Field Summary | |
---|---|
protected java.util.ArrayList |
dataSourcesToReplace
|
protected java.util.ArrayList |
emptyCollections
|
protected java.util.HashMap |
emptyDataSources
|
static EmptyDataSourcePool |
global
A global pool for all empty data sources used |
Constructor Summary | |
---|---|
EmptyDataSourcePool()
|
Method Summary | |
---|---|
void |
addEmptyCollection(java.lang.String dsId)
Called when a collection could'nt provide a given data source. |
void |
addEmptyDaSource(java.lang.String dsId,
EmptyDataSource eds)
|
boolean |
containsEmptyCollection(java.lang.String dscId)
|
void |
dataSourceAdded(java.lang.String dsId,
DataSource ds)
Called when a data source has been added to data source pool. |
boolean |
emptyDataSourcesCanBeReplaced()
|
java.lang.String[][] |
getDataSourcesToReplace()
|
java.lang.String[] |
getDataSourcesToReplaceTitles()
|
EmptyDataSource |
getEmptyDataSource(java.lang.String dsId)
|
void |
replaceAllDataSources()
Replace all empty data sources that can be associated to a real data source |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final EmptyDataSourcePool global
protected java.util.HashMap emptyDataSources
protected java.util.ArrayList emptyCollections
protected java.util.ArrayList dataSourcesToReplace
Constructor Detail |
---|
public EmptyDataSourcePool()
Method Detail |
---|
public void addEmptyCollection(java.lang.String dsId)
dsId
- public boolean containsEmptyCollection(java.lang.String dscId)
public EmptyDataSource getEmptyDataSource(java.lang.String dsId)
public void addEmptyDaSource(java.lang.String dsId, EmptyDataSource eds)
public void replaceAllDataSources()
public boolean emptyDataSourcesCanBeReplaced()
public java.lang.String[] getDataSourcesToReplaceTitles()
public java.lang.String[][] getDataSourcesToReplace()
public void dataSourceAdded(java.lang.String dsId, DataSource ds)
dsid,
- the data source idds,
- the data source newly created
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |