|
||||||||||
| 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.TransformedDataCollection
Implemnation note: we are not propagate DataCollectionEvents, because this work is done by primary DataCollection (it has the same parent).
| Field Summary | |
protected DataElement |
current
Used to optimise doPut function. |
| 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 | |
TransformedDataCollection(DataCollection parent,
java.util.Properties properties)
Constructs transformed data collection with parent. |
|
| Method Summary | |
void |
close()
Additinally closes primary data collection |
protected void |
doAddPostNotify(java.lang.String name,
boolean bNew)
TransformedDataCollection should not throw notification (fire methods) during put() operation. |
protected void |
doAddPreNotify(java.lang.String name,
boolean bNew)
TransformedDataCollection should not throw notification (fire methods) during put() operation. |
DataElement |
doGet(java.lang.String name)
Implements specific get action for transformed data collection to get the specified by name data element from the collection. |
void |
doPut(DataElement element,
boolean isNew)
Implements specific put action for transformed data collection to put the specified data element into the primary collection. |
protected void |
doRemovePostNotify(java.lang.String name)
|
protected void |
doRemovePreNotify(java.lang.String name)
|
void |
elementAdded(DataCollectionEvent dce)
Called after data element was added. |
void |
elementChanged(DataCollectionEvent dce)
Called after data element was changed. |
void |
elementRemoved(DataCollectionEvent dce)
Called after data element was removed. |
void |
elementWillAdd(DataCollectionEvent e)
Called before data element will be added. |
void |
elementWillChange(DataCollectionEvent e)
Called before data element will be changed. |
void |
elementWillRemove(DataCollectionEvent e)
Called before data element will be removed. |
protected void |
finalize()
Called by the garbage collector on an object when garbage collection determines that there are no more references to the object. |
java.lang.Class |
getDataElementType()
Gets class of output data element. |
Transformer |
getTransformer()
|
java.util.Iterator |
iterator()
Calls DataCollection.iterator() method of primary data collection |
void |
release(java.lang.String name)
Release the DataElement specified by its name from the cache. |
java.lang.String |
toString()
Returns a string representation of the derived data collection |
| Methods inherited from class ru.biosoft.access.DerivedDataCollection |
contains, contains, doRemove, getNameList, getPrimaryCollection, getSize, init, isMutable |
| 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 |
protected DataElement current
| Constructor Detail |
public TransformedDataCollection(DataCollection parent,
java.util.Properties properties)
throws java.lang.Exception
parent - Parent data collection.properties - Properties for creating data collection (may be changed).
DataCollection.NAME_PROPERTYDataCollection.TRANSFORMER_CLASSDataCollection.NEXT_CONFIGjava.lang.Exception - any errors| Method Detail |
protected void doAddPreNotify(java.lang.String name,
boolean bNew)
throws java.lang.Exception,
DataCollectionVetoException
doAddPreNotify in class AbstractDataCollectionname - name of added/changed DataElement.bNew - is it new?
java.lang.Exception
DataCollectionVetoException
protected void doRemovePreNotify(java.lang.String name)
throws java.lang.Exception,
DataCollectionVetoException
doRemovePreNotify in class AbstractDataCollectionjava.lang.Exception
DataCollectionVetoException
protected void doAddPostNotify(java.lang.String name,
boolean bNew)
throws java.lang.Exception,
DataCollectionVetoException
doAddPostNotify in class AbstractDataCollectionname - name of added/changed DataElement.bNew - is it new?
java.lang.Exception
DataCollectionVetoException
protected void doRemovePostNotify(java.lang.String name)
throws java.lang.Exception,
DataCollectionVetoException
doRemovePostNotify in class AbstractDataCollectionjava.lang.Exception
DataCollectionVetoExceptionpublic java.lang.Class getDataElementType()
getDataElementType in interface DataCollectiongetDataElementType in class DerivedDataCollection
public void doPut(DataElement element,
boolean isNew)
throws java.lang.Exception
doPut in class DerivedDataCollectionelement - The put DataElement
java.lang.Exception - If any errors.AbstractDataCollection.put(DataElement)
public DataElement doGet(java.lang.String name)
throws java.lang.Exception
doGet in class DerivedDataCollectionname - The name of data element
java.lang.Exception - If any errors.AbstractDataCollection.put(DataElement)public void release(java.lang.String name)
AbstractDataCollection
release in interface DataCollectionrelease in class AbstractDataCollection
public void close()
throws java.lang.Exception
close in interface DataCollectionclose in class AbstractDataCollectionjava.lang.Exception
protected void finalize()
throws java.lang.Throwable
AbstractDataCollectionAbstractDataCollection.close() method
finalize in class AbstractDataCollectionjava.lang.Throwable - the Exception raised by this methodpublic java.util.Iterator iterator()
DerivedDataCollectionDataCollection.iterator() method of primary data collection
iterator in interface DataCollectioniterator in class DerivedDataCollection
public void elementWillAdd(DataCollectionEvent e)
throws DataCollectionVetoException,
java.lang.Exception
DataCollectionListener
elementWillAdd in interface DataCollectionListenere - 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 dce)
throws java.lang.Exception
DataCollectionListener
elementAdded in interface DataCollectionListenerdce - DataCollectionEvent information about added data element.
java.lang.Exception - If error occured.
public void elementWillChange(DataCollectionEvent e)
throws DataCollectionVetoException,
java.lang.Exception
DataCollectionListenere contains old data element (which will be changed).
elementWillChange in interface DataCollectionListenere - 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 dce)
throws java.lang.Exception
DataCollectionListenere contains old data element (which already changed).
elementChanged in interface DataCollectionListenerdce - DataCollectionEvent information about changed data element.
java.lang.Exception - If error occured.
public void elementWillRemove(DataCollectionEvent e)
throws DataCollectionVetoException,
java.lang.Exception
DataCollectionListener
elementWillRemove in interface DataCollectionListenere - 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 dce)
throws java.lang.Exception
DataCollectionListener
elementRemoved in interface DataCollectionListenerdce - DataCollectionEvent information about removed data element.
java.lang.Exception - If error occured.public final Transformer getTransformer()
public java.lang.String toString()
DerivedDataCollection
toString in class DerivedDataCollection
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||