public abstract class AbstractStoresRepository extends java.lang.Object implements StoresRepository
Modifier and Type | Field and Description |
---|---|
protected long |
featureTypeExpireTimeInMillis |
protected java.util.Map<java.lang.String,org.gvsig.fmap.dal.AbstractStoresRepository.FeatureTypeCache> |
featureTypes |
protected java.util.Map<java.lang.String,java.lang.String> |
labels |
protected Logger |
LOGGER |
protected java.util.List<StoresRepository> |
subrepositories |
NOTIFICATION_ADD, NOTIFICATION_ADDREPOSITORY, NOTIFICATION_REMOVE, NOTIFICATION_REMOVEREPOSITORY
EMPTY_UNMODIFIABLEBASICMAP
Constructor and Description |
---|
AbstractStoresRepository(java.lang.String name) |
AbstractStoresRepository(java.lang.String name,
java.lang.String label) |
Modifier and Type | Method and Description |
---|---|
void |
add(java.lang.String name,
DataStoreParameters parameters) |
void |
add(java.lang.String name,
DataStoreParameters parameters,
java.lang.String label) |
void |
add(java.lang.String name,
FeatureStore store) |
void |
add(java.lang.String name,
FeatureStore store,
java.lang.String label) |
void |
addObserver(Observer o) |
boolean |
addRepository(StoresRepository repository) |
boolean |
contains(DataStoreParameters parameters) |
boolean |
contains(java.lang.String name) |
boolean |
containsKey(java.lang.String key) |
void |
deleteObserver(Observer o) |
void |
deleteObservers() |
DataStoreParameters |
get(java.lang.String name) |
FeatureType |
getFeatureType(java.lang.String name) |
java.lang.String |
getID() |
java.lang.String |
getLabel() |
java.lang.String |
getLabel(java.lang.String name) |
java.lang.String |
getLabelOrName(java.lang.String name) |
protected FeatureType |
getMyFeatureType(java.lang.String name) |
protected abstract UnmodifiableBasicSet<java.lang.String> |
getMyKeySet() |
protected abstract DataStoreParameters |
getMyParameters(java.lang.String name) |
protected abstract int |
getMySize() |
java.util.Map<java.lang.String,java.lang.Object> |
getProperties() |
PropertiesSupport |
getProperties(java.lang.String name) |
java.lang.Object |
getProperty(java.lang.String name) |
java.lang.String |
getRepositoryIDOfStore(java.lang.String name)
Return the repository ID of the store.
|
StoresRepository |
getRepositoryOfStore(java.lang.String name) |
DataServerExplorerParameters |
getServerParameters() |
DataStore |
getStore(java.lang.String name) |
DataStore |
getStore(java.lang.String name,
boolean ignoreDALResource) |
java.lang.String |
getStoreId(java.lang.String label) |
java.util.Collection<StoresRepository> |
getSubrepositories() |
StoresRepository |
getSubrepository(DataServerExplorer server) |
StoresRepository |
getSubrepository(DataServerExplorerParameters serverParameters) |
StoresRepository |
getSubrepository(java.lang.String Id) |
boolean |
isEmpty() |
protected abstract boolean |
isEmptyMyRepository() |
protected boolean |
isMyServer(DataServerExplorerParameters serverParameters) |
java.util.Iterator<DataStoreParameters> |
iterator() |
UnmodifiableBasicSet<java.lang.String> |
keySet() |
java.util.Set<java.lang.String> |
keySetDeep() |
java.util.Set<java.lang.String> |
keySetShallow() |
protected Notification |
notifyObservers(java.lang.String notificationType,
java.lang.Object value) |
protected Notification |
notifyObservers(java.lang.String notificationType,
java.lang.Object value1,
java.lang.Object value2) |
void |
remove(java.lang.String name) |
boolean |
removeRepository(java.lang.String name) |
protected void |
setFeatureType(java.lang.String name,
DataStoreParameters parameters,
FeatureType ftype) |
protected void |
setLabel(java.lang.String name,
java.lang.String label) |
void |
setProperty(java.lang.String name,
java.lang.Object value) |
protected void |
setServerParameters(DataServerExplorerParameters serverParameters) |
int |
size() |
java.util.Map<java.lang.String,DataStoreParameters> |
toMap() |
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
isEmpty, isEmpty, isEmptyQuietly
protected final Logger LOGGER
protected java.util.List<StoresRepository> subrepositories
protected java.util.Map<java.lang.String,java.lang.String> labels
protected java.util.Map<java.lang.String,org.gvsig.fmap.dal.AbstractStoresRepository.FeatureTypeCache> featureTypes
protected long featureTypeExpireTimeInMillis
public AbstractStoresRepository(java.lang.String name)
public AbstractStoresRepository(java.lang.String name, java.lang.String label)
protected abstract DataStoreParameters getMyParameters(java.lang.String name)
protected abstract boolean isEmptyMyRepository()
protected abstract int getMySize()
protected abstract UnmodifiableBasicSet<java.lang.String> getMyKeySet()
protected FeatureType getMyFeatureType(java.lang.String name)
protected void setFeatureType(java.lang.String name, DataStoreParameters parameters, FeatureType ftype)
public void addObserver(Observer o)
addObserver
in interface Observable
public void deleteObserver(Observer o)
deleteObserver
in interface Observable
public void deleteObservers()
deleteObservers
in interface Observable
protected Notification notifyObservers(java.lang.String notificationType, java.lang.Object value)
protected Notification notifyObservers(java.lang.String notificationType, java.lang.Object value1, java.lang.Object value2)
public void add(java.lang.String name, DataStoreParameters parameters)
add
in interface StoresRepository
public void add(java.lang.String name, DataStoreParameters parameters, java.lang.String label)
add
in interface StoresRepository
public void add(java.lang.String name, FeatureStore store)
add
in interface StoresRepository
public void add(java.lang.String name, FeatureStore store, java.lang.String label)
add
in interface StoresRepository
public void remove(java.lang.String name)
remove
in interface StoresRepository
public boolean contains(DataStoreParameters parameters)
contains
in interface StoresRepository
public boolean contains(java.lang.String name)
contains
in interface StoresRepository
public java.lang.String getID()
getID
in interface StoresRepository
public java.lang.String getLabel()
getLabel
in interface StoresRepository
public java.lang.String getLabel(java.lang.String name)
getLabel
in interface StoresRepository
public java.lang.String getLabelOrName(java.lang.String name)
getLabelOrName
in interface StoresRepository
protected void setLabel(java.lang.String name, java.lang.String label)
public java.util.Collection<StoresRepository> getSubrepositories()
getSubrepositories
in interface StoresRepository
public StoresRepository getSubrepository(java.lang.String Id)
getSubrepository
in interface StoresRepository
public boolean addRepository(StoresRepository repository)
addRepository
in interface StoresRepository
public boolean removeRepository(java.lang.String name)
removeRepository
in interface StoresRepository
public DataStoreParameters get(java.lang.String name)
get
in interface GetItemByKey<java.lang.String,DataStoreParameters>
get
in interface UnmodifiableBasicMap<java.lang.String,DataStoreParameters>
public PropertiesSupport getProperties(java.lang.String name)
public DataStore getStore(java.lang.String name)
getStore
in interface StoresRepository
public java.lang.String getStoreId(java.lang.String label)
getStoreId
in interface StoresRepository
public DataStore getStore(java.lang.String name, boolean ignoreDALResource)
public java.lang.String getRepositoryIDOfStore(java.lang.String name)
StoresRepository
getRepositoryIDOfStore
in interface StoresRepository
public StoresRepository getRepositoryOfStore(java.lang.String name)
getRepositoryOfStore
in interface StoresRepository
public FeatureType getFeatureType(java.lang.String name)
getFeatureType
in interface StoresRepository
public boolean containsKey(java.lang.String key)
containsKey
in interface UnmodifiableBasicMap<java.lang.String,DataStoreParameters>
public UnmodifiableBasicSet<java.lang.String> keySet()
keySet
in interface UnmodifiableBasicMap<java.lang.String,DataStoreParameters>
public java.util.Map<java.lang.String,DataStoreParameters> toMap()
toMap
in interface UnmodifiableBasicMap<java.lang.String,DataStoreParameters>
public java.util.Iterator<DataStoreParameters> iterator()
iterator
in interface java.lang.Iterable<DataStoreParameters>
public java.util.Map<java.lang.String,java.lang.Object> getProperties()
getProperties
in interface PropertiesSupport
public java.lang.Object getProperty(java.lang.String name)
getProperty
in interface PropertiesSupport
public void setProperty(java.lang.String name, java.lang.Object value)
setProperty
in interface PropertiesSupport
public java.util.Set<java.lang.String> keySetDeep()
keySetDeep
in interface StoresRepository
public java.util.Set<java.lang.String> keySetShallow()
keySetShallow
in interface StoresRepository
public DataServerExplorerParameters getServerParameters()
getServerParameters
in interface StoresRepository
protected void setServerParameters(DataServerExplorerParameters serverParameters)
serverParameters
- the serverParameters to setprotected boolean isMyServer(DataServerExplorerParameters serverParameters)
public StoresRepository getSubrepository(DataServerExplorer server)
getSubrepository
in interface StoresRepository
public StoresRepository getSubrepository(DataServerExplorerParameters serverParameters)
getSubrepository
in interface StoresRepository
public java.lang.String toString()
toString
in class java.lang.Object