Class COM.odi.Placement
java.lang.Object
|
+----COM.odi.Placement
- public class Placement
- extends Object
The Placementclass is the abstract superclass of classes
that specify where an object should
be migrated or allocated. Placement is a superclass for the
Segment and
Database classes.
-
getSegment()
- Returns the segment specified by this Placement.
-
getSession()
- Returns the session associated with this Placement.
getSegment
public abstract Segment getSegment()
- Returns the segment specified by this Placement. If the Placement
is a segment, this method returns the segment. If the Placement is a database,
this method returns the default segment of the database.
- Throws: DatabaseNotOpenException
- If this Placement is a database,
and the database is not open.
- Throws: NoTransactionInProgressException
- If a transaction
is not in progress.
- Throws: ObjectStoreException
- If the session implied by the database
has been terminated or if the current thread is associated with a
session other than the session implied by the database.
- Throws: SegmentNotFoundException
- If this Placement is a database,
and the default segment is not found.
getSession
public abstract Session getSession()
- Returns the session associated with this Placement. Returns null if
the session has been terminated.
- Returns:
- The session or null.
Copyright © 1996, 1997, 1998 Object Design, Inc. All rights reserved.