|
SolarMetric Kodo JDO 2.5.0 Reverse Schema Tool | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--java.util.AbstractCollection
|
+--java.util.AbstractSet
|
+--java.util.HashSet
|
+--com.solarmetric.rd.kodo.util.ProxyHashSet
Extension of the HashSet type that dirties the
persistent/transactional field it is assigned to on modification.
The need to dirty the field on any modification mandates that
this class must override all mutator methods of the base type.
This may lead to multiple calls to the
PersistenceCapable.jdoMakeDirty(java.lang.String) for one state
change if one mutator method of the base type calls another.
| Constructor Summary | |
ProxyHashSet()
Template constructor. |
|
ProxyHashSet(java.lang.Class elementType)
Constructor. |
|
ProxyHashSet(java.util.Collection contents,
java.lang.Class elementType)
Constructor. |
|
| Method Summary | |
boolean |
add(java.lang.Object value)
|
boolean |
addAll(java.util.Collection values)
|
void |
clear()
|
java.util.Collection |
getAdded()
|
com.solarmetric.rd.kodo.util.ChangeManager |
getChangeManager()
|
java.util.Comparator |
getComparator()
Return the comparator used in this collection, or null if it is unordered or uses natural ordering. |
java.util.Collection |
getCopy(java.util.Collection orig)
This method should return a copy of the given collection; the copy should be of the same class as the superclass of this collection. |
java.lang.Object |
getOwner()
Return the owning object. |
java.lang.String |
getOwnerFieldName()
Return the owning field name. |
java.util.Collection |
getRemoved()
|
boolean |
isOwner(java.lang.Object pc,
java.lang.String fieldName)
Return true if the given object and field name match the owner of this proxy. |
java.util.Iterator |
iterator()
|
com.solarmetric.rd.kodo.util.ProxyCollection |
newInstance(java.lang.Class elementType,
java.util.Collection contents,
java.util.Comparator compare)
This method should return a new proxy of the same concrete type as the implementing class. |
boolean |
remove(java.lang.Object o)
|
boolean |
removeAll(java.util.Collection c)
|
boolean |
retainAll(java.util.Collection c)
|
void |
setChangeManager(com.solarmetric.rd.kodo.util.ChangeManager cm)
|
void |
setOwner(java.lang.Object pc,
java.lang.String fieldName)
Set the owning JDO instance of the proxy and the name of the field it is assigned to. |
protected java.lang.Object |
writeReplace()
|
| Methods inherited from class java.util.HashSet |
clone, contains, isEmpty, size |
| Methods inherited from class java.util.AbstractSet |
equals, hashCode |
| Methods inherited from class java.util.AbstractCollection |
containsAll, toArray, toArray, toString |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.Collection |
contains, containsAll, equals, hashCode, isEmpty, size, toArray, toArray |
| Methods inherited from interface java.util.Set |
containsAll, equals, hashCode, toArray, toArray |
| Constructor Detail |
public ProxyHashSet()
public ProxyHashSet(java.util.Collection contents,
java.lang.Class elementType)
contents - The data that this collection should contain.elementType - All elements in this collection must be
instances of this type.public ProxyHashSet(java.lang.Class elementType)
elementType - All elements in this collection must be
instances of this type.| Method Detail |
public com.solarmetric.rd.kodo.util.ProxyCollection newInstance(java.lang.Class elementType,
java.util.Collection contents,
java.util.Comparator compare)
ProxyCollectionProxyManager factories: one template
instance of each type is created for the purpose of producing
new instances via this method. Overcomes the performance
penalties of reflection.
newInstance in interface ProxyCollectionpublic java.util.Collection getCopy(java.util.Collection orig)
ProxyCollection
getCopy in interface ProxyCollectionpublic java.util.Comparator getComparator()
ProxyCollection
getComparator in interface ProxyCollection
public void setOwner(java.lang.Object pc,
java.lang.String fieldName)
Proxy
setOwner in interface Proxypublic java.lang.Object getOwner()
Proxy
getOwner in interface Proxypublic java.lang.String getOwnerFieldName()
Proxy
getOwnerFieldName in interface Proxy
public boolean isOwner(java.lang.Object pc,
java.lang.String fieldName)
Proxy
isOwner in interface Proxypublic com.solarmetric.rd.kodo.util.ChangeManager getChangeManager()
public void setChangeManager(com.solarmetric.rd.kodo.util.ChangeManager cm)
public java.util.Collection getRemoved()
public java.util.Collection getAdded()
public boolean add(java.lang.Object value)
add in interface java.util.Collectionadd in class java.util.HashSetpublic boolean addAll(java.util.Collection values)
addAll in interface java.util.CollectionaddAll in class java.util.AbstractCollectionpublic void clear()
clear in interface java.util.Collectionclear in class java.util.HashSetpublic java.util.Iterator iterator()
iterator in interface java.util.Collectioniterator in class java.util.HashSetpublic boolean remove(java.lang.Object o)
remove in interface java.util.Collectionremove in class java.util.HashSetpublic boolean removeAll(java.util.Collection c)
removeAll in interface java.util.CollectionremoveAll in class java.util.AbstractSetpublic boolean retainAll(java.util.Collection c)
retainAll in interface java.util.CollectionretainAll in class java.util.AbstractCollection
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException
java.io.ObjectStreamException
|
SolarMetric Kodo JDO 2.5.0 Reverse Schema Tool | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||