ru.biosoft.access
Class TransformedDataCollection
ru.biosoft.access.DataElementSupport
|
+--ru.biosoft.access.AbstractDataCollection
|
+--ru.biosoft.access.DerivedDataCollection
|
+--ru.biosoft.access.TransformedDataCollection
- public class TransformedDataCollection
- extends DerivedDataCollection
- implements DataCollectionListener
Implemnation note: we are not propagate DataCollectionEvents, because this work is done
by primary DataCollection (it has the same parent).
- todo check DataElement type for Transformer
| Methods inherited from class ru.biosoft.access.AbstractDataCollection |
addDataCollectionListener, get, getCompleteName, getDescription, getInfo, isNotificationEnabled, isPropagationEnabled, propagateElementChanged, propagateElementWillChange, put, remove, removeDataCollectionListener, setNotificationEnabled, setPropagationEnabled |
TransformedDataCollection
public TransformedDataCollection(DataCollection parent, Properties properties)
throws java.lang.Exception
- Constructs transformed data collection with parent.
- Parameters:
- parent - Parent data collection.
- properties - Properties for creating data collection (may be changed).
- Throws:
- Exception - any errors
close
public void close()
throws java.lang.Exception
- Additinally closes primary data collection
doGet
public DataElement doGet(String name)
throws java.lang.Exception
- Implements specific get action for transformed data collection
to get the specified by name data element from the collection.
- Parameters:
- name - The name of data element
- Throws:
- Exception - If any errors.
- See Also:
- AbstractDataCollection.put(ru.biosoft.access.DataElement)
doPut
public void doPut(DataElement element, boolean isNew)
throws java.lang.Exception
- Implements specific put action for transformed data collection
to put the specified data element into the primary collection.
- Parameters:
- element - The put DataElement
- Throws:
- Exception - If any errors.
- See Also:
- AbstractDataCollection.put(ru.biosoft.access.DataElement)
elementAdded
public void elementAdded(DataCollectionEvent dce)
throws java.lang.Exception
elementChanged
public void elementChanged(DataCollectionEvent dce)
throws java.lang.Exception
elementRemoved
public void elementRemoved(DataCollectionEvent dce)
throws java.lang.Exception
elementWillAdd
public void elementWillAdd(DataCollectionEvent e)
throws DataCollectionVetoException,
java.lang.Exception
elementWillChange
public void elementWillChange(DataCollectionEvent e)
throws DataCollectionVetoException,
java.lang.Exception
elementWillRemove
public void elementWillRemove(DataCollectionEvent e)
throws DataCollectionVetoException,
java.lang.Exception
getDataElementType
public Class getDataElementType()
- Gets class of output data element.
- Returns: transformer output element
getTransformer
public final Transformer getTransformer()
iterator
public Iterator iterator()
release
public void release(String name)
toString
public String toString()
- todo Temp implementation
to Class ru.biosoft.access.DataElement- Used to optimise doPut function.
to Class ru.biosoft.access.Transformer
BOTTOM