Interface COM.odi.odmg.Set
- public interface Set
- extends Collection
The Set interface is a subinterface of the Collection
interface. The Set interface encapsulates the operations on a set.
All methods throw the following exceptions:
COM.odi.odmg.TransactionNotInProgressException If there is no
transaction in progress.
COM.odi.ObjectStoreException If the current thread is not
associated with a transaction or if the instance in question is not
associated with the current thread.
Methods that modify persistent objects throw this exception:
COM.odi.odmg.DatabaseIsReadOnlyException If there is a readonly
transaction in progress or if the database is open for readonly.
- See Also:
- SetOfObject
-
difference(Set)
- Equivalent to the ODMG method create_difference().
-
intersection(Set)
- Equivalent to the ODMG method create_intersection().
-
properSubsetOf(Set)
- Equivalent to the ODMG method is_proper_subset_of().
-
properSupersetOf(Set)
- Equivalent to the ODMG method is_proper_superset_of().
-
subsetOf(Set)
- Equivalent to the ODMG method is_subset_of().
-
supersetOf(Set)
- Equivalent to the ODMG method is_super_set_of().
-
union(Set)
- Equivalent to the ODMG method create_union().
union
public abstract Set union(Set otherSet)
- Equivalent to the ODMG method create_union().
- Parameters:
- otherSet - The set with which to create a union.
- Returns:
- Returns the union of this set and otherSet.
intersection
public abstract Set intersection(Set otherSet)
- Equivalent to the ODMG method create_intersection().
- Parameters:
- otherSet - The other set for finding the intersection.
- Returns:
- Returns the intersection of this set and otherSet.
difference
public abstract Set difference(Set otherSet)
- Equivalent to the ODMG method create_difference().
- Parameters:
- otherSet - The other set for finding the difference.
- Returns:
- Returns the difference between this set and otherSet.
subsetOf
public abstract boolean subsetOf(Set otherSet)
- Equivalent to the ODMG method is_subset_of().
- Parameters:
- otherSet - The possible superset of this set.
- Returns:
- Returns true if this set is a subset of otherSet.
properSubsetOf
public abstract boolean properSubsetOf(Set otherSet)
- Equivalent to the ODMG method is_proper_subset_of().
- Parameters:
- otherSet - The possible superset of this set.
- Returns:
- Returns true if this set is a proper subset of otherSet.
supersetOf
public abstract boolean supersetOf(Set otherSet)
- Equivalent to the ODMG method is_super_set_of().
- Parameters:
- otherSet - The possible subset of this set.
- Returns:
- Returns true if this set is a superset of otherSet.
properSupersetOf
public abstract boolean properSupersetOf(Set otherSet)
- Equivalent to the ODMG method is_proper_superset_of().
- Parameters:
- otherSet - The possible subset of this set.
- Returns:
- Returns true if this set is a proper superset of otherSet.
Copyright © 1996, 1997, 1998 Object Design, Inc. All rights reserved.