home *** CD-ROM | disk | FTP | other *** search
Java Source | 1997-09-04 | 1.7 KB | 62 lines |
- /* ********************************************************************************
- ObjectContext.java *************************************************************
- ******************************************************************************** */
-
- package aspcomp;
-
- import com.ms.asp.*;
- import com.ms.mtx.*;
-
- /**
- * Cover class for the MTx object context.
- */
-
- public class ObjectContext
- {
-
- /* ********************************************************************************
- Constructor ********************************************************************
- ******************************************************************************** */
-
- public ObjectContext()
- {
-
- try
- {
- m_IObjectContext = (IObjectContext) MTx.GetObjectContext();
- }
-
- catch(Exception e)
- {
- throw new AspComponentException(
- AspLocalizedStrings.ASP_E_FAIL_GET_CONTEXT);
- }
- }
-
-
- /* ********************************************************************************
- Internal (Private) Variables ***************************************************
- ******************************************************************************** */
-
- private IObjectContext m_IObjectContext;
-
-
- /* ********************************************************************************
- External (Public) Methods ******************************************************
- ******************************************************************************** */
-
- public void setAbort()
- {
- m_IObjectContext.SetAbort();
- }
-
- public void setComplete()
- {
- m_IObjectContext.SetComplete();
- }
-
- //
- // Consider: could expose other ObjectContext, etc. methods here
- //
- }
-