|
||||||||||
| 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
General class for derived data collection.
Subclasses should provide the difference of derived data collection from primary one.
Derived data collection is listener of primary data collection. This implementation provides delegation primary data collection events to listeners of derived data collection.
| Field Summary | |
protected DataCollection |
primaryCollection
Primary collection. |
| Fields inherited from class ru.biosoft.access.AbstractDataCollection |
cat, info, notificationEnabled, path, propagationEnabled, v_cache |
| Constructor Summary | |
DerivedDataCollection(DataCollection parent,
java.util.Properties properties)
Constructor to be used by CollectionFactory.
|
|
DerivedDataCollection(DataCollection parent,
java.lang.String name,
DataCollection primaryDC,
java.util.Properties properties)
Constructs DerivedDataCollection with the parent, name and primary data collection. |
|
| Method Summary | |
boolean |
contains(DataElement de)
Calls DataCollection.contains(DataElement) method of primary data collection. |
boolean |
contains(java.lang.String name)
Calls DataCollection.contains(String) method of primary data collection. |
DataElement |
doGet(java.lang.String name)
Calls DataCollection.get(String) method of primary collection |
protected void |
doPut(DataElement element,
boolean isNew)
Calls DataCollection.put(DataElement) of primary collection
Puts the specified data element into the primary collection. |
protected void |
doRemove(java.lang.String name)
Calls DataCollection.remove(String) of primary collection.
|
java.lang.Class |
getDataElementType()
Calls DataCollection.getDataElementType() method of primary data collection. |
java.util.List |
getNameList()
Calls DataCollection.getNameList() method of primary data collection |
DataCollection |
getPrimaryCollection()
|
int |
getSize()
Calls DataCollection.getSize() method of primary data collection. |
protected void |
init()
|
boolean |
isMutable()
Calls DataCollection.isMutable() method of primary data collection. |
java.util.Iterator |
iterator()
Calls DataCollection.iterator() method of primary data collection |
java.lang.String |
toString()
Returns a string representation of the derived data collection |
| 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 DataCollection primaryCollection
| Constructor Detail |
public DerivedDataCollection(DataCollection parent,
java.util.Properties properties)
throws java.lang.Exception
CollectionFactory.
Obligatory properties are
parent - properties - Properties for creating data parent .
public DerivedDataCollection(DataCollection parent,
java.lang.String name,
DataCollection primaryDC,
java.util.Properties properties)
parent - parent for this data collection.primaryDC - primary data collection.properties - Properties to initialise DataCollectionInfo. Can be null.| Method Detail |
protected void init()
public int getSize()
DataCollection.getSize() method of primary data collection.
getSize in interface DataCollectiongetSize in class AbstractDataCollectionpublic java.lang.Class getDataElementType()
DataCollection.getDataElementType() method of primary data collection.
getDataElementType in interface DataCollectiongetDataElementType in class AbstractDataCollectionpublic boolean isMutable()
DataCollection.isMutable() method of primary data collection.
isMutable in interface DataCollectionisMutable in class AbstractDataCollectionpublic boolean contains(java.lang.String name)
DataCollection.contains(String) method of primary data collection.
contains in interface DataCollectioncontains in class AbstractDataCollectionname - specified name of data element
AbstractDataCollection.contains(ru.biosoft.access.DataElement)public DataCollection getPrimaryCollection()
public boolean contains(DataElement de)
DataCollection.contains(DataElement) method of primary data collection.
contains in interface DataCollectioncontains in class AbstractDataCollectionde - specified data element
AbstractDataCollection.contains(String)public java.util.Iterator iterator()
DataCollection.iterator() method of primary data collection
public java.util.List getNameList()
DataCollection.getNameList() method of primary data collection
getNameList in interface DataCollectiongetNameList in class AbstractDataCollection
protected void doPut(DataElement element,
boolean isNew)
throws java.lang.Exception
DataCollection.put(DataElement) of primary collection
Puts the specified data element into the primary collection.
doPut in class AbstractDataCollectionelement -
java.lang.Exception - If any errorsAbstractDataCollection.put(DataElement)
protected void doRemove(java.lang.String name)
throws java.lang.Exception
DataCollection.remove(String) of primary collection.
Remove the specified data element from the primary collection.
doRemove in class AbstractDataCollectionjava.lang.Exception - If any errorsAbstractDataCollection.remove(String)
public DataElement doGet(java.lang.String name)
throws java.lang.Exception
DataCollection.get(String) method of primary collection
doGet in class AbstractDataCollectionname - Name of specified data element.
java.lang.Exception - If any errorAbstractDataCollection.get(String),
DataCollection.iterator()public java.lang.String toString()
toString in class AbstractDataCollection
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||