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

Method Index

 o difference(Set)
Equivalent to the ODMG method create_difference().
 o intersection(Set)
Equivalent to the ODMG method create_intersection().
 o properSubsetOf(Set)
Equivalent to the ODMG method is_proper_subset_of().
 o properSupersetOf(Set)
Equivalent to the ODMG method is_proper_superset_of().
 o subsetOf(Set)
Equivalent to the ODMG method is_subset_of().
 o supersetOf(Set)
Equivalent to the ODMG method is_super_set_of().
 o union(Set)
Equivalent to the ODMG method create_union().

Methods

 o 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.
 o 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.
 o 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.
 o 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.
 o 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.
 o 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.
 o 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.