|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectru.biosoft.access.DataElementSupport
ru.biosoft.access.AbstractDataCollection
ru.biosoft.access.DerivedDataCollection
ru.biosoft.access.FilteredDataCollection
| Field Summary | |
static java.lang.String |
FILTER_PROPERTY
Key for setting filter in properties. |
| Fields inherited from class ru.biosoft.access.DerivedDataCollection |
primaryCollection |
| Fields inherited from class ru.biosoft.access.AbstractDataCollection |
cat, info, notificationEnabled, path, propagationEnabled, v_cache |
| Constructor Summary | |
FilteredDataCollection(DataCollection parent,
java.util.Properties properties)
Constructor to be used by CollectionFactory.
|
|
FilteredDataCollection(DataCollection parent,
java.lang.String name,
DataCollection primaryCollection,
Filter filter,
FunctionJobControl jobControl,
java.util.Properties properties)
Creates FilteredDataCollection with the specified parent, name, primary data collection and filter. |
|
| Method Summary | |
protected void |
cachePut(DataElement de)
Just a stub. |
boolean |
contains(java.lang.String name)
Calls DataCollection.contains(String) method of primary data collection. |
void |
elementAdded(DataCollectionEvent event)
Called after data element was added. |
void |
elementChanged(DataCollectionEvent event)
Called after data element was changed. |
void |
elementRemoved(DataCollectionEvent event)
Called after data element was removed. |
void |
elementWillAdd(DataCollectionEvent event)
Called before data element will be added. |
void |
elementWillChange(DataCollectionEvent event)
Called before data element will be changed. |
void |
elementWillRemove(DataCollectionEvent event)
Called before data element will be removed. |
DataElement |
get(java.lang.String name)
Gets data element with specified name. |
java.util.List |
getNameList()
Calls DataCollection.getNameList() method of primary data collection |
int |
getSize()
Calls DataCollection.getSize() method of primary data collection. |
protected void |
initNames(FunctionJobControl jobControl)
|
java.util.Iterator |
iterator()
Calls DataCollection.iterator() method of primary data collection |
DataElement |
put(DataElement de)
Adds the specified data element to the collection. |
void |
remove(java.lang.String name)
Removes the specified data element from the collection, if present. |
| Methods inherited from class ru.biosoft.access.DerivedDataCollection |
contains, doGet, doPut, doRemove, getDataElementType, getPrimaryCollection, init, isMutable, toString |
| Methods inherited from class ru.biosoft.access.DataElementSupport |
getName, getOrigin, registerConstructorWithBadEqual |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface ru.biosoft.access.DataElement |
getName, getOrigin |
| Field Detail |
public static final java.lang.String FILTER_PROPERTY
| Constructor Detail |
public FilteredDataCollection(DataCollection parent,
java.util.Properties properties)
throws java.lang.Exception
CollectionFactory.
Obligatory properties are
parent - filtered data collection parent.properties - Properties for filtered collection.
public FilteredDataCollection(DataCollection parent,
java.lang.String name,
DataCollection primaryCollection,
Filter filter,
FunctionJobControl jobControl,
java.util.Properties properties)
parent - parent for this data collection.primaryCollection - primary data collection.filter - filter to be applied to primary data collection.properties - Properties to initialise DataCollectionInfo. Can be null.| Method Detail |
protected final void initNames(FunctionJobControl jobControl)
public java.util.Iterator iterator()
DerivedDataCollectionDataCollection.iterator() method of primary data collection
iterator in interface DataCollectioniterator in class DerivedDataCollectionpublic int getSize()
DerivedDataCollectionDataCollection.getSize() method of primary data collection.
getSize in interface DataCollectiongetSize in class DerivedDataCollectionpublic boolean contains(java.lang.String name)
DerivedDataCollectionDataCollection.contains(String) method of primary data collection.
contains in interface DataCollectioncontains in class DerivedDataCollectionname - specified name of data element
public DataElement get(java.lang.String name)
throws java.lang.Exception
AbstractDataCollectionAbstractDataCollection.doGet(String).
get in interface DataCollectionget in class AbstractDataCollectionname - Name of the data element (cannot be null).
java.lang.Exception - If error raised in AbstractDataCollection.doGet(String)AbstractDataCollection.doGet(String),
AbstractDataCollection.v_cacheprotected void cachePut(DataElement de)
cachePut in class AbstractDataCollectionAbstractDataCollection.put(DataElement)public java.util.List getNameList()
DerivedDataCollectionDataCollection.getNameList() method of primary data collection
getNameList in interface DataCollectiongetNameList in class DerivedDataCollection
public DataElement put(DataElement de)
throws java.lang.Exception
AbstractDataCollection#doPut(DataElement) method is used to put the data element.
If the data collection previously contained the specified element,
the old value is replaced.
put in interface DataCollectionput in class AbstractDataCollectionde - Data element that will be putted in the data collection (Cannt be null).
java.lang.Exception - If error occured.#doPut(DataElement),
AbstractDataCollection.isMutable()
public void remove(java.lang.String name)
throws java.lang.Exception
AbstractDataCollection#doRemove(ru.biosoft.access.DataElement) method is used to remove the data element.
remove in interface DataCollectionremove in class AbstractDataCollectionname -
java.lang.Exception - If any error.#doRemove(ru.biosoft.access.DataElement),
AbstractDataCollection.isMutable()
public void elementWillRemove(DataCollectionEvent event)
throws DataCollectionVetoException,
java.lang.Exception
DataCollectionListener
elementWillRemove in interface DataCollectionListenerevent - DataCollectionEvent information about will removed data element.
DataCollectionVetoException - If listener cancel removing of data element.
java.lang.Exception - If error occured.
public void elementRemoved(DataCollectionEvent event)
throws java.lang.Exception
DataCollectionListener
elementRemoved in interface DataCollectionListenerevent - DataCollectionEvent information about removed data element.
java.lang.Exception - If error occured.
public void elementWillAdd(DataCollectionEvent event)
throws DataCollectionVetoException,
java.lang.Exception
DataCollectionListener
elementWillAdd in interface DataCollectionListenerevent - DataCollectionEvent information about will added data element.
DataCollectionVetoException - If listener cancel adding of data element.
java.lang.Exception - If error occured.
public void elementAdded(DataCollectionEvent event)
throws java.lang.Exception
DataCollectionListener
elementAdded in interface DataCollectionListenerevent - DataCollectionEvent information about added data element.
java.lang.Exception - If error occured.
public void elementWillChange(DataCollectionEvent event)
throws DataCollectionVetoException,
java.lang.Exception
DataCollectionListenere contains old data element (which will be changed).
elementWillChange in interface DataCollectionListenerevent - DataCollectionEvent information about will change data element.
DataCollectionVetoException - If listener cancel changing of data element.
java.lang.Exception - If error occured.
public void elementChanged(DataCollectionEvent event)
throws java.lang.Exception
DataCollectionListenere contains old data element (which already changed).
elementChanged in interface DataCollectionListenerevent - DataCollectionEvent information about changed data element.
java.lang.Exception - If error occured.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||