|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractSet
org.apache.ojb.odmg.collections.DSetImpl
public class DSetImpl
| Constructor Summary | |
|---|---|
DSetImpl()
Used by PB-Kernel to instantiate ManageableCollections FOR INTERNAL USE ONLY |
|
DSetImpl(PBKey pbKey)
DSetImpl constructor comment. |
|
| Method Summary | |
|---|---|
boolean |
add(Object o)
|
void |
afterDelete(PersistenceBroker broker)
noop |
void |
afterInsert(PersistenceBroker broker)
noop |
void |
afterLookup(PersistenceBroker broker)
noop |
void |
afterStore(PersistenceBroker broker)
A callback method to implement 'removal-aware' (track removed objects and delete them by its own) collection implementations. |
void |
afterUpdate(PersistenceBroker broker)
noop |
void |
beforeDelete(PersistenceBroker broker)
noop |
void |
beforeInsert(PersistenceBroker broker)
prepare itself for persistence. |
void |
beforeUpdate(PersistenceBroker broker)
noop |
protected boolean |
checkForOpenTransaction(TransactionImpl tx)
|
DSet |
difference(DSet otherSet)
Create a new DSet object that contains the elements of this
collection minus the elements in otherSet. |
boolean |
existsElement(String predicate)
Determines whether there is an element of the collection that evaluates to true for the predicate. |
List |
getElements()
|
Integer |
getId()
|
protected Logger |
getLog()
|
PBKey |
getPBKey()
|
protected TransactionImpl |
getTransaction()
|
DSet |
intersection(DSet otherSet)
Create a new DSet object that is the set intersection of this
DSet object and the set referenced by otherSet. |
Iterator |
iterator()
Returns an iterator over the elements in this collection. |
void |
ojbAdd(Object anObject)
add a single Object to the Collection. |
void |
ojbAddAll(ManageableCollection otherCollection)
adds a Collection to this collection. |
Iterator |
ojbIterator()
returns an Iterator over all elements in the collection. |
boolean |
properSubsetOf(DSet otherSet)
Determine whether this set is a proper subset of the set referenced by otherSet. |
boolean |
properSupersetOf(DSet otherSet)
Determine whether this set is a proper superset of the set referenced by otherSet. |
DCollection |
query(String predicate)
Evaluate the boolean query predicate for each element of the collection and return a new collection that contains each element that evaluated to true. |
boolean |
remove(Object o)
|
boolean |
removeAll(Collection c)
|
Iterator |
select(String predicate)
Access all of the elements of the collection that evaluate to true for the provided query predicate. |
Object |
selectElement(String predicate)
Selects the single element of the collection for which the provided OQL query predicate is true. |
void |
setElements(List elements)
|
void |
setElements(Vector elements)
Sets the elements. |
void |
setId(Integer id)
Sets the id. |
void |
setPBKey(PBKey pbKey)
|
int |
size()
Returns the number of elements in this collection. |
boolean |
subsetOf(DSet otherSet)
Determine whether this set is a subset of the set referenced by otherSet. |
boolean |
supersetOf(DSet otherSet)
Determine whether this set is a superset of the set referenced by otherSet. |
DSet |
union(DSet otherSet)
Create a new DSet object that is the set union of this
DSet object and the set referenced by otherSet. |
| Methods inherited from class java.util.AbstractSet |
|---|
equals, hashCode |
| Methods inherited from class java.util.AbstractCollection |
|---|
addAll, clear, contains, containsAll, isEmpty, retainAll, toArray, toArray, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.Set |
|---|
addAll, clear, contains, containsAll, equals, hashCode, isEmpty, retainAll, toArray, toArray |
| Constructor Detail |
|---|
public DSetImpl()
public DSetImpl(PBKey pbKey)
| Method Detail |
|---|
protected Logger getLog()
protected TransactionImpl getTransaction()
protected boolean checkForOpenTransaction(TransactionImpl tx)
public PBKey getPBKey()
public void setPBKey(PBKey pbKey)
public boolean remove(Object o)
remove in interface Collectionremove in interface Setremove in class AbstractCollectionpublic boolean removeAll(Collection c)
removeAll in interface CollectionremoveAll in interface SetremoveAll in class AbstractSetpublic boolean add(Object o)
add in interface Collectionadd in interface Setadd in class AbstractCollectionpublic DSet difference(DSet otherSet)
DSet object that contains the elements of this
collection minus the elements in otherSet.
difference in interface DSetotherSet - A set containing elements that should not be in the result set.
DSet instance that contains the elements
of this set minus those elements in otherSet.
public boolean existsElement(String predicate)
throws QueryInvalidException
existsElement in interface DCollectionpredicate - An OQL boolean query predicate.
QueryInvalidException - The query predicate is invalid.public List getElements()
public void setElements(List elements)
public Integer getId()
public DSet intersection(DSet otherSet)
DSet object that is the set intersection of this
DSet object and the set referenced by otherSet.
intersection in interface DSetotherSet - The other set to be used in the intersection operation.
DSet instance that contains the
intersection of the two sets.public Iterator iterator()
iterator in interface Iterableiterator in interface Collectioniterator in interface Setiterator in class AbstractCollectionpublic boolean properSubsetOf(DSet otherSet)
otherSet.
properSubsetOf in interface DSetotherSet - Another set.
otherSet, otherwise false.public boolean properSupersetOf(DSet otherSet)
otherSet.
properSupersetOf in interface DSetotherSet - Another set.
otherSet, otherwise false.
public DCollection query(String predicate)
throws QueryInvalidException
query in interface DCollectionpredicate - An OQL boolean query predicate.
QueryInvalidException - The query predicate is invalid.
public Iterator select(String predicate)
throws QueryInvalidException
select in interface DCollectionpredicate - An OQL boolean query predicate.
QueryInvalidException - The query predicate is invalid.
public Object selectElement(String predicate)
throws QueryInvalidException
selectElement in interface DCollectionpredicate - An OQL boolean query predicate.
QueryInvalidException - The query predicate is invalid.public void setElements(Vector elements)
elements - The elements to setpublic void setId(Integer id)
id - The id to setpublic int size()
size in interface Collectionsize in interface Setsize in class AbstractCollectionpublic boolean subsetOf(DSet otherSet)
otherSet.
subsetOf in interface DSetotherSet - Another set.
otherSet,
otherwise false.public boolean supersetOf(DSet otherSet)
otherSet.
supersetOf in interface DSetotherSet - Another set.
otherSet,
otherwise false.public DSet union(DSet otherSet)
DSet object that is the set union of this
DSet object and the set referenced by otherSet.
union in interface DSetotherSet - The other set to be used in the union operation.
DSet instance that contains the union of the two sets.public void ojbAdd(Object anObject)
ojbAdd in interface ManageableCollectionanObject - The object to addpublic void ojbAddAll(ManageableCollection otherCollection)
ojbAddAll in interface ManageableCollectionotherCollection - The added collection
public void afterStore(PersistenceBroker broker)
throws PersistenceBrokerException
ManageableCollection
afterStore in interface ManageableCollectionbroker - The persistence broker
PersistenceBrokerExceptionpublic Iterator ojbIterator()
ojbIterator in interface ManageableCollection
public void beforeInsert(PersistenceBroker broker)
throws PersistenceBrokerException
Identity for the wrapped persistent
object.
beforeInsert in interface PersistenceBrokerAwarebroker - The persistence broker performing the persistence operation
PersistenceBrokerException
public void beforeUpdate(PersistenceBroker broker)
throws PersistenceBrokerException
beforeUpdate in interface PersistenceBrokerAwarebroker - The persistence broker performing the persistence operation
PersistenceBrokerException
public void beforeDelete(PersistenceBroker broker)
throws PersistenceBrokerException
beforeDelete in interface PersistenceBrokerAwarebroker - The persistence broker performing the persistence operation
PersistenceBrokerException
public void afterUpdate(PersistenceBroker broker)
throws PersistenceBrokerException
afterUpdate in interface PersistenceBrokerAwarebroker - The persistence broker performed the persistence operation
PersistenceBrokerException
public void afterInsert(PersistenceBroker broker)
throws PersistenceBrokerException
afterInsert in interface PersistenceBrokerAwarebroker - The persistence broker performing the persistence operation
PersistenceBrokerException
public void afterDelete(PersistenceBroker broker)
throws PersistenceBrokerException
afterDelete in interface PersistenceBrokerAwarebroker - The persistence broker performing the persistence operation
PersistenceBrokerException
public void afterLookup(PersistenceBroker broker)
throws PersistenceBrokerException
afterLookup in interface PersistenceBrokerAwarebroker - The persistence broker performing the persistence operation
PersistenceBrokerException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||