
/*
 * This file was generated by the SOM Compiler.
 * FileName: F:\BUILD\NT\ship\include\PstObj.xh.
 * Generated using:
 *     SOM Precompiler somipc: Development
 *     SOM Emitter emitxh.dll: Development
 */

#ifndef SOM_ODPersistentObject_xh
#define SOM_ODPersistentObject_xh

class ODPersistentObject;

#define ODPersistentObject_MajorVersion 1
#define ODPersistentObject_MinorVersion 0

/* C++ SOM defs */
#include <somcls.xh>
#include <somcm.xh>

/* C++ parent defs */
#ifndef SOM_ODRefCntObject_xh
#include <RefCtObj.xh>
#endif

#ifndef ODPersistentObject_API
#define ODPersistentObject_API
/*
 * -- The Class API
 */

/*
 * Start of user-defined types:
 */
class SOMClass;
class SOMObject;
class ODFrame;
class ODFacet;
class ODPlatformCanvas;
class ODObject;
class ODExtension;
class ODRefCntObject;
class ODPersistentObject;
class ODStorageUnit;

/*
 * End of user-defined types.
 */

/* A procedure to create the ODPersistentObject Class */
SOMEXTERN
#if (defined(SOM_Module_PstObj_Source) || defined(ODPersistentObject_Class_Source) || defined (SOM_DONT_IMPORT_CLASS_ODPersistentObject))
WIN32_DLLEXPORT
#else
WIN32_DLLIMPORT
#endif
SOMClass * SOMLINK ODPersistentObjectNewClass(
		integer4,
		integer4 );

/* The API to the ODPersistentObject class object, and the methods it introduces. */
SOMEXTERN struct ODPersistentObjectClassDataStructure {
	SOMClass *classObject;
	somMToken InitPersistentObject;
	somMToken InitPersistentObjectFromStorage;
	somMToken ReleaseAll;
	somMToken Externalize;
	somMToken GetStorageUnit;
	somMToken GetID;
	somMToken CloneInto;
}
#if !(defined(SOM_Module_PstObj_Source) || defined(ODPersistentObject_Class_Source) || defined (SOM_DONT_IMPORT_CLASS_ODPersistentObject))
WIN32_DLLIMPORT
#elif defined(_MSC_VER)||defined(_WIN32_DECL_PROTO)
WIN32_DLLEXPORT
#endif
SOMDLINK ODPersistentObjectClassData;
#define _ODPersistentObject ODPersistentObjectClassData.classObject

/* The API to parentMtabs for ODPersistentObject, and the instance data it introduces. */
SOMEXTERN struct ODPersistentObjectCClassDataStructure {
	somMethodTabs parentMtab;
	somDToken              instanceDataToken;
}
#if !(defined(SOM_Module_PstObj_Source) || defined(ODPersistentObject_Class_Source) || defined (SOM_DONT_IMPORT_CLASS_ODPersistentObject))
WIN32_DLLIMPORT
#elif defined(_MSC_VER)||defined(_WIN32_DECL_PROTO)
WIN32_DLLEXPORT
#endif
SOMDLINK ODPersistentObjectCClassData;

/*
 * -- Typedefs for ODPersistentObject Method Procedures
 */
extern "C" {
typedef void   SOMLINK somTP_ODPersistentObject_InitPersistentObject(ODPersistentObject *somSelf, Environment *ev,
		ODStorageUnit* storageUnit);
typedef somTP_ODPersistentObject_InitPersistentObject *somTD_ODPersistentObject_InitPersistentObject;
typedef void   SOMLINK somTP_ODPersistentObject_InitPersistentObjectFromStorage(ODPersistentObject *somSelf, Environment *ev,
		ODStorageUnit* storageUnit);
typedef somTP_ODPersistentObject_InitPersistentObjectFromStorage *somTD_ODPersistentObject_InitPersistentObjectFromStorage;
typedef void   SOMLINK somTP_ODPersistentObject_ReleaseAll(ODPersistentObject *somSelf, Environment *ev);
typedef somTP_ODPersistentObject_ReleaseAll *somTD_ODPersistentObject_ReleaseAll;
typedef void   SOMLINK somTP_ODPersistentObject_Externalize(ODPersistentObject *somSelf, Environment *ev);
typedef somTP_ODPersistentObject_Externalize *somTD_ODPersistentObject_Externalize;
typedef ODStorageUnit*   SOMLINK somTP_ODPersistentObject_GetStorageUnit(ODPersistentObject *somSelf, Environment *ev);
typedef somTP_ODPersistentObject_GetStorageUnit *somTD_ODPersistentObject_GetStorageUnit;
typedef ODID   SOMLINK somTP_ODPersistentObject_GetID(ODPersistentObject *somSelf, Environment *ev);
typedef somTP_ODPersistentObject_GetID *somTD_ODPersistentObject_GetID;
typedef void   SOMLINK somTP_ODPersistentObject_CloneInto(ODPersistentObject *somSelf, Environment *ev,
		ODDraftKey key,
		ODStorageUnit* toSU,
		ODFrame* scope);
typedef somTP_ODPersistentObject_CloneInto *somTD_ODPersistentObject_CloneInto;

/*
 * -- Typedefs for Reintroduced Wrapper Methods
 */
typedef void   SOMLINK somTP_ODPersistentObject_InitRefCntObject(ODPersistentObject *somSelf, Environment *ev);
typedef somTP_ODPersistentObject_InitRefCntObject *somTD_ODPersistentObject_InitRefCntObject;
typedef void   SOMLINK somTP_ODPersistentObject_Acquire(ODPersistentObject *somSelf, Environment *ev);
typedef somTP_ODPersistentObject_Acquire *somTD_ODPersistentObject_Acquire;
typedef void   SOMLINK somTP_ODPersistentObject_Release(ODPersistentObject *somSelf, Environment *ev);
typedef somTP_ODPersistentObject_Release *somTD_ODPersistentObject_Release;
typedef ODULong   SOMLINK somTP_ODPersistentObject_GetRefCount(ODPersistentObject *somSelf, Environment *ev);
typedef somTP_ODPersistentObject_GetRefCount *somTD_ODPersistentObject_GetRefCount;
typedef void   SOMLINK somTP_ODPersistentObject_somUninit(ODPersistentObject *somSelf);
typedef somTP_ODPersistentObject_somUninit *somTD_ODPersistentObject_somUninit;
typedef void   SOMLINK somTP_ODPersistentObject_InitObject(ODPersistentObject *somSelf, Environment *ev);
typedef somTP_ODPersistentObject_InitObject *somTD_ODPersistentObject_InitObject;
typedef ODBoolean   SOMLINK somTP_ODPersistentObject_HasExtension(ODPersistentObject *somSelf, Environment *ev,
		ODType extensionName);
typedef somTP_ODPersistentObject_HasExtension *somTD_ODPersistentObject_HasExtension;
typedef ODExtension*   SOMLINK somTP_ODPersistentObject_AcquireExtension(ODPersistentObject *somSelf, Environment *ev,
		ODType extensionName);
typedef somTP_ODPersistentObject_AcquireExtension *somTD_ODPersistentObject_AcquireExtension;
typedef void   SOMLINK somTP_ODPersistentObject_ReleaseExtension(ODPersistentObject *somSelf, Environment *ev,
		ODExtension* extension);
typedef somTP_ODPersistentObject_ReleaseExtension *somTD_ODPersistentObject_ReleaseExtension;
typedef ODSize   SOMLINK somTP_ODPersistentObject_Purge(ODPersistentObject *somSelf, Environment *ev,
		ODSize size);
typedef somTP_ODPersistentObject_Purge *somTD_ODPersistentObject_Purge;
typedef ODBoolean   SOMLINK somTP_ODPersistentObject_IsEqualTo(ODPersistentObject *somSelf, Environment *ev,
		ODObject* object);
typedef somTP_ODPersistentObject_IsEqualTo *somTD_ODPersistentObject_IsEqualTo;
typedef void   SOMLINK somTP_ODPersistentObject_SubClassResponsibility(ODPersistentObject *somSelf, Environment *ev);
typedef somTP_ODPersistentObject_SubClassResponsibility *somTD_ODPersistentObject_SubClassResponsibility;
typedef void   SOMLINK somTP_ODPersistentObject_somInit(ODPersistentObject *somSelf);
typedef somTP_ODPersistentObject_somInit *somTD_ODPersistentObject_somInit;
typedef void   SOMLINK somTP_ODPersistentObject_somDefaultInit(ODPersistentObject *somSelf,
		somInitCtrl* ctrl);
typedef somTP_ODPersistentObject_somDefaultInit *somTD_ODPersistentObject_somDefaultInit;
typedef void   SOMLINK somTP_ODPersistentObject_somDestruct(ODPersistentObject *somSelf,
		octet doFree,
		somDestructCtrl* ctrl);
typedef somTP_ODPersistentObject_somDestruct *somTD_ODPersistentObject_somDestruct;
typedef void   SOMLINK somTP_ODPersistentObject_somDefaultCopyInit(ODPersistentObject *somSelf,
		somInitCtrl* ctrl,
		SOMObject* fromObj);
typedef somTP_ODPersistentObject_somDefaultCopyInit *somTD_ODPersistentObject_somDefaultCopyInit;
typedef ODPersistentObject*   SOMLINK somTP_ODPersistentObject_somDefaultAssign(ODPersistentObject *somSelf,
		somAssignCtrl* ctrl,
		SOMObject* fromObj);
typedef somTP_ODPersistentObject_somDefaultAssign *somTD_ODPersistentObject_somDefaultAssign;
typedef void   SOMLINK somTP_ODPersistentObject_somDefaultConstCopyInit(ODPersistentObject *somSelf,
		somInitCtrl* ctrl,
		SOMObject* fromObj);
typedef somTP_ODPersistentObject_somDefaultConstCopyInit *somTD_ODPersistentObject_somDefaultConstCopyInit;
typedef void   SOMLINK somTP_ODPersistentObject_somDefaultVCopyInit(ODPersistentObject *somSelf,
		somInitCtrl* ctrl,
		SOMObject* fromObj);
typedef somTP_ODPersistentObject_somDefaultVCopyInit *somTD_ODPersistentObject_somDefaultVCopyInit;
typedef void   SOMLINK somTP_ODPersistentObject_somDefaultConstVCopyInit(ODPersistentObject *somSelf,
		somInitCtrl* ctrl,
		SOMObject* fromObj);
typedef somTP_ODPersistentObject_somDefaultConstVCopyInit *somTD_ODPersistentObject_somDefaultConstVCopyInit;
typedef ODPersistentObject*   SOMLINK somTP_ODPersistentObject_somDefaultConstAssign(ODPersistentObject *somSelf,
		somAssignCtrl* ctrl,
		SOMObject* fromObj);
typedef somTP_ODPersistentObject_somDefaultConstAssign *somTD_ODPersistentObject_somDefaultConstAssign;
typedef ODPersistentObject*   SOMLINK somTP_ODPersistentObject_somDefaultVAssign(ODPersistentObject *somSelf,
		somAssignCtrl* ctrl,
		SOMObject* fromObj);
typedef somTP_ODPersistentObject_somDefaultVAssign *somTD_ODPersistentObject_somDefaultVAssign;
typedef ODPersistentObject*   SOMLINK somTP_ODPersistentObject_somDefaultConstVAssign(ODPersistentObject *somSelf,
		somAssignCtrl* ctrl,
		SOMObject* fromObj);
typedef somTP_ODPersistentObject_somDefaultConstVAssign *somTD_ODPersistentObject_somDefaultConstVAssign;
typedef void   SOMLINK somTP_ODPersistentObject_somFree(ODPersistentObject *somSelf);
typedef somTP_ODPersistentObject_somFree *somTD_ODPersistentObject_somFree;
typedef SOMClass*   SOMLINK somTP_ODPersistentObject_somGetClass(ODPersistentObject *somSelf);
typedef somTP_ODPersistentObject_somGetClass *somTD_ODPersistentObject_somGetClass;
typedef string   SOMLINK somTP_ODPersistentObject_somGetClassName(ODPersistentObject *somSelf);
typedef somTP_ODPersistentObject_somGetClassName *somTD_ODPersistentObject_somGetClassName;
typedef long   SOMLINK somTP_ODPersistentObject_somGetSize(ODPersistentObject *somSelf);
typedef somTP_ODPersistentObject_somGetSize *somTD_ODPersistentObject_somGetSize;
typedef boolean   SOMLINK somTP_ODPersistentObject_somIsA(ODPersistentObject *somSelf,
		SOMClass* aClassObj);
typedef somTP_ODPersistentObject_somIsA *somTD_ODPersistentObject_somIsA;
typedef boolean   SOMLINK somTP_ODPersistentObject_somIsInstanceOf(ODPersistentObject *somSelf,
		SOMClass* aClassObj);
typedef somTP_ODPersistentObject_somIsInstanceOf *somTD_ODPersistentObject_somIsInstanceOf;
typedef boolean   SOMLINK somTP_ODPersistentObject_somRespondsTo(ODPersistentObject *somSelf,
		somId mId);
typedef somTP_ODPersistentObject_somRespondsTo *somTD_ODPersistentObject_somRespondsTo;
typedef boolean   SOMLINK somTP_ODPersistentObject_somDispatch(ODPersistentObject *somSelf,
		somToken* retValue,
		somId methodId,
		va_list ap);
typedef somTP_ODPersistentObject_somDispatch *somTD_ODPersistentObject_somDispatch;
typedef boolean   SOMLINK somTP_ODPersistentObject_somClassDispatch(ODPersistentObject *somSelf,
		SOMClass* clsObj,
		somToken* retValue,
		somId methodId,
		va_list ap);
typedef somTP_ODPersistentObject_somClassDispatch *somTD_ODPersistentObject_somClassDispatch;
typedef boolean   SOMLINK somTP_ODPersistentObject_somCastObj(ODPersistentObject *somSelf,
		SOMClass* cls);
typedef somTP_ODPersistentObject_somCastObj *somTD_ODPersistentObject_somCastObj;
typedef boolean   SOMLINK somTP_ODPersistentObject_somResetObj(ODPersistentObject *somSelf);
typedef somTP_ODPersistentObject_somResetObj *somTD_ODPersistentObject_somResetObj;
typedef SOMObject*   SOMLINK somTP_ODPersistentObject_somPrintSelf(ODPersistentObject *somSelf);
typedef somTP_ODPersistentObject_somPrintSelf *somTD_ODPersistentObject_somPrintSelf;
typedef void   SOMLINK somTP_ODPersistentObject_somDumpSelf(ODPersistentObject *somSelf,
		long level);
typedef somTP_ODPersistentObject_somDumpSelf *somTD_ODPersistentObject_somDumpSelf;
typedef void   SOMLINK somTP_ODPersistentObject_somDumpSelfInt(ODPersistentObject *somSelf,
		long level);
typedef somTP_ODPersistentObject_somDumpSelfInt *somTD_ODPersistentObject_somDumpSelfInt;
}

#endif /* ODPersistentObject_API */


/*
 * -- This emitter believes that method thunks are unavailable,
 * -- so somResolve will be called.
 */
#undef somresolve_
#define somresolve_(obj,mToken) (somResolve(obj,mToken))

/*
 * -- The C++ Wrapper Class for ODPersistentObject
 */
class ODPersistentObject : public ODRefCntObject
{
public:

// ODPersistentObject::new creates the class object if necessary, and then uses somNewNoInit
// to allocate memory and create the object. Initialization is in ctors.
void *operator new(size_t)
{
   if (!_ODPersistentObject) ODPersistentObjectNewClass(ODPersistentObject_MajorVersion,ODPersistentObject_MinorVersion);
   return (void*)
      SOM_Resolve(_ODPersistentObject,SOMClass,somNewNoInit)
         ((SOMClass *)((void*)_ODPersistentObject));
}

// ODPersistentObject::delete uses somDestruct.
void operator delete(void * obj)
{
   if (obj && *(void**)obj) {
      SOM_Resolve(obj,SOMObject,somDestruct)
         ((SOMObject*)obj, 1, 0);
   }
}

ODPersistentObject()
{
   if (*(void**)this != 
       ((somParentMtabStructPtr)
        (ODPersistentObjectCClassData.parentMtab))->mtab)
      return;
   ((SOMObject*)((void*)this))->somDefaultInit(0);
}

ODPersistentObject(ODPersistentObject* fromObj)
{
   if (*(void**)this != 
       ((somParentMtabStructPtr)
        (ODPersistentObjectCClassData.parentMtab))->mtab)
      return;
   ((SOMObject*)((void*)this))->somDefaultCopyInit(0,((SOMObject*)((void*)fromObj)));
}

ODPersistentObject(const ODPersistentObject* fromObj)
{
   if (*(void**)this != 
       ((somParentMtabStructPtr)
        (ODPersistentObjectCClassData.parentMtab))->mtab)
      return;
   ((SOMObject*)((void*)this))->somDefaultConstCopyInit(0,((SOMObject*)((void*)fromObj)));
}


/* method: InitPersistentObject */
void   InitPersistentObject(Environment *ev,
		ODStorageUnit* storageUnit)
{
   SOM_ResolveD(this,ODPersistentObject,ODPersistentObject,InitPersistentObject)
	(this, ev,storageUnit);
#ifdef SOMCHKEXCEPT
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
#endif
}


/* method: InitPersistentObjectFromStorage */
void   InitPersistentObjectFromStorage(Environment *ev,
		ODStorageUnit* storageUnit)
{
   SOM_ResolveD(this,ODPersistentObject,ODPersistentObject,InitPersistentObjectFromStorage)
	(this, ev,storageUnit);
#ifdef SOMCHKEXCEPT
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
#endif
}


/* method: ReleaseAll */
void   ReleaseAll(Environment *ev)
{
   SOM_ResolveD(this,ODPersistentObject,ODPersistentObject,ReleaseAll)
	(this, ev);
#ifdef SOMCHKEXCEPT
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
#endif
}


/* method: Externalize */
void   Externalize(Environment *ev)
{
   SOM_ResolveD(this,ODPersistentObject,ODPersistentObject,Externalize)
	(this, ev);
#ifdef SOMCHKEXCEPT
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
#endif
}


/* method: GetStorageUnit */
ODStorageUnit*   GetStorageUnit(Environment *ev)
{
#ifdef SOMCHKEXCEPT
   ODStorageUnit* __somResult = 
      SOM_ResolveD(this,ODPersistentObject,ODPersistentObject,GetStorageUnit)
	(this, ev);
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
   return __somResult;
#else
   return SOM_ResolveD(this,ODPersistentObject,ODPersistentObject,GetStorageUnit)
	(this, ev);
#endif
}


/* method: GetID */
ODID   GetID(Environment *ev)
{
#ifdef SOMCHKEXCEPT
   ODID __somResult = 
      SOM_ResolveD(this,ODPersistentObject,ODPersistentObject,GetID)
	(this, ev);
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
   return __somResult;
#else
   return SOM_ResolveD(this,ODPersistentObject,ODPersistentObject,GetID)
	(this, ev);
#endif
}


/* method: CloneInto */
void   CloneInto(Environment *ev,
		ODDraftKey key,
		ODStorageUnit* toSU,
		ODFrame* scope)
{
   SOM_ResolveD(this,ODPersistentObject,ODPersistentObject,CloneInto)
	(this, ev,key,toSU,scope);
#ifdef SOMCHKEXCEPT
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
#endif
}


/*
 * Reintroduce inherited methods
 */

/* method: InitRefCntObject */
void   InitRefCntObject(Environment *ev)
{
   SOM_ResolveD(this,ODPersistentObject,ODRefCntObject,InitRefCntObject)
	(this, ev);
#ifdef SOMCHKEXCEPT
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
#endif
}


/* method: Acquire */
void   Acquire(Environment *ev)
{
   SOM_ResolveD(this,ODPersistentObject,ODRefCntObject,Acquire)
	(this, ev);
#ifdef SOMCHKEXCEPT
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
#endif
}


/* method: Release */
void   Release(Environment *ev)
{
   SOM_ResolveD(this,ODPersistentObject,ODRefCntObject,Release)
	(this, ev);
#ifdef SOMCHKEXCEPT
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
#endif
}


/* method: GetRefCount */
ODULong   GetRefCount(Environment *ev)
{
#ifdef SOMCHKEXCEPT
   ODULong __somResult = 
      SOM_ResolveD(this,ODPersistentObject,ODRefCntObject,GetRefCount)
	(this, ev);
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
   return __somResult;
#else
   return SOM_ResolveD(this,ODPersistentObject,ODRefCntObject,GetRefCount)
	(this, ev);
#endif
}


/* method: somUninit */
void   somUninit()
{
   SOM_ResolveD(this,ODPersistentObject,SOMObject,somUninit)
	(this);
}


/* method: InitObject */
void   InitObject(Environment *ev)
{
   SOM_ResolveD(this,ODPersistentObject,ODObject,InitObject)
	(this, ev);
#ifdef SOMCHKEXCEPT
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
#endif
}


/* method: HasExtension */
ODBoolean   HasExtension(Environment *ev,
		ODType extensionName)
{
#ifdef SOMCHKEXCEPT
   ODBoolean __somResult = 
      SOM_ResolveD(this,ODPersistentObject,ODObject,HasExtension)
	(this, ev,extensionName);
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
   return __somResult;
#else
   return SOM_ResolveD(this,ODPersistentObject,ODObject,HasExtension)
	(this, ev,extensionName);
#endif
}


/* method: AcquireExtension */
ODExtension*   AcquireExtension(Environment *ev,
		ODType extensionName)
{
#ifdef SOMCHKEXCEPT
   ODExtension* __somResult = 
      SOM_ResolveD(this,ODPersistentObject,ODObject,AcquireExtension)
	(this, ev,extensionName);
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
   return __somResult;
#else
   return SOM_ResolveD(this,ODPersistentObject,ODObject,AcquireExtension)
	(this, ev,extensionName);
#endif
}


/* method: ReleaseExtension */
void   ReleaseExtension(Environment *ev,
		ODExtension* extension)
{
   SOM_ResolveD(this,ODPersistentObject,ODObject,ReleaseExtension)
	(this, ev,extension);
#ifdef SOMCHKEXCEPT
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
#endif
}


/* method: Purge */
ODSize   Purge(Environment *ev,
		ODSize size)
{
#ifdef SOMCHKEXCEPT
   ODSize __somResult = 
      SOM_ResolveD(this,ODPersistentObject,ODObject,Purge)
	(this, ev,size);
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
   return __somResult;
#else
   return SOM_ResolveD(this,ODPersistentObject,ODObject,Purge)
	(this, ev,size);
#endif
}


/* method: IsEqualTo */
ODBoolean   IsEqualTo(Environment *ev,
		ODObject* object)
{
#ifdef SOMCHKEXCEPT
   ODBoolean __somResult = 
      SOM_ResolveD(this,ODPersistentObject,ODObject,IsEqualTo)
	(this, ev,object);
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
   return __somResult;
#else
   return SOM_ResolveD(this,ODPersistentObject,ODObject,IsEqualTo)
	(this, ev,object);
#endif
}


/* method: SubClassResponsibility */
void   SubClassResponsibility(Environment *ev)
{
   SOM_ResolveD(this,ODPersistentObject,ODObject,SubClassResponsibility)
	(this, ev);
#ifdef SOMCHKEXCEPT
   if ( ev->_major != NO_EXCEPTION )
      SOMCHKEXCEPT;
#endif
}


/* method: somInit */
void   somInit()
{
   SOM_ResolveD(this,ODPersistentObject,SOMObject,somInit)
	(this);
}


/* initializer method: somDefaultInit */
void   somDefaultInit(somInitCtrl* ctrl)
{
   SOM_ResolveD(this,ODPersistentObject,SOMObject,somDefaultInit)
	(this,ctrl);
}


/* method: somDestruct */
void   somDestruct(octet doFree,
		somDestructCtrl* ctrl)
{
   SOM_ResolveD(this,ODPersistentObject,SOMObject,somDestruct)
	(this,doFree,ctrl);
}


/* initializer method: somDefaultCopyInit */
void   somDefaultCopyInit(somInitCtrl* ctrl,
		SOMObject* fromObj)
{
   SOM_ResolveD(this,ODPersistentObject,SOMObject,somDefaultCopyInit)
	(this,ctrl,fromObj);
}


/* method: somDefaultAssign */
ODPersistentObject*  somDefaultAssign(somAssignCtrl* ctrl,
		SOMObject* fromObj)
{
   return SOM_ResolveD(this,ODPersistentObject,SOMObject,somDefaultAssign)
	(this,ctrl,fromObj);
}


/* initializer method: somDefaultConstCopyInit */
void   somDefaultConstCopyInit(somInitCtrl* ctrl,
		SOMObject* fromObj)
{
   SOM_ResolveD(this,ODPersistentObject,SOMObject,somDefaultConstCopyInit)
	(this,ctrl,fromObj);
}


/* initializer method: somDefaultVCopyInit */
void   somDefaultVCopyInit(somInitCtrl* ctrl,
		SOMObject* fromObj)
{
   SOM_ResolveD(this,ODPersistentObject,SOMObject,somDefaultVCopyInit)
	(this,ctrl,fromObj);
}


/* initializer method: somDefaultConstVCopyInit */
void   somDefaultConstVCopyInit(somInitCtrl* ctrl,
		SOMObject* fromObj)
{
   SOM_ResolveD(this,ODPersistentObject,SOMObject,somDefaultConstVCopyInit)
	(this,ctrl,fromObj);
}


/* method: somDefaultConstAssign */
ODPersistentObject*  somDefaultConstAssign(somAssignCtrl* ctrl,
		SOMObject* fromObj)
{
   return SOM_ResolveD(this,ODPersistentObject,SOMObject,somDefaultConstAssign)
	(this,ctrl,fromObj);
}


/* method: somDefaultVAssign */
ODPersistentObject*  somDefaultVAssign(somAssignCtrl* ctrl,
		SOMObject* fromObj)
{
   return SOM_ResolveD(this,ODPersistentObject,SOMObject,somDefaultVAssign)
	(this,ctrl,fromObj);
}


/* method: somDefaultConstVAssign */
ODPersistentObject*  somDefaultConstVAssign(somAssignCtrl* ctrl,
		SOMObject* fromObj)
{
   return SOM_ResolveD(this,ODPersistentObject,SOMObject,somDefaultConstVAssign)
	(this,ctrl,fromObj);
}


/* method: somFree */
void   somFree()
{
   SOM_ResolveD(this,ODPersistentObject,SOMObject,somFree)
	(this);
}


/* method: somGetClass */
SOMClass*   somGetClass()
{
   return SOM_ResolveD(this,ODPersistentObject,SOMObject,somGetClass)
	(this);
}


/* method: somGetClassName */
string   somGetClassName()
{
   return SOM_ResolveD(this,ODPersistentObject,SOMObject,somGetClassName)
	(this);
}


/* method: somGetSize */
long   somGetSize()
{
   return SOM_ResolveD(this,ODPersistentObject,SOMObject,somGetSize)
	(this);
}


/* method: somIsA */
boolean   somIsA(SOMClass* aClassObj)
{
   return SOM_ResolveD(this,ODPersistentObject,SOMObject,somIsA)
	(this,aClassObj);
}


/* method: somIsInstanceOf */
boolean   somIsInstanceOf(SOMClass* aClassObj)
{
   return SOM_ResolveD(this,ODPersistentObject,SOMObject,somIsInstanceOf)
	(this,aClassObj);
}


/* method: somRespondsTo */
boolean   somRespondsTo(somId mId)
{
   return SOM_ResolveD(this,ODPersistentObject,SOMObject,somRespondsTo)
	(this,mId);
}


/* va_list method: somDispatch */
/* the va_list invocation form */
boolean   ODPersistentObject_somDispatch(somToken* retValue,
		somId methodId,
		va_list ap)
{
return SOM_ResolveD(this,ODPersistentObject,SOMObject,somDispatch)
	(this,retValue,methodId,ap);
}

/* the varargs invocation form */
boolean   somDispatch(somToken* retValue,
		somId methodId,
		...)
{
   va_list ap;
   va_start(ap, methodId);
   boolean __somResult = 
      SOM_ResolveD(this,ODPersistentObject,SOMObject,somDispatch)
	(this,retValue,methodId,ap);
   va_end(ap);
   return __somResult;
}


/* va_list method: somClassDispatch */
/* the va_list invocation form */
boolean   ODPersistentObject_somClassDispatch(SOMClass* clsObj,
		somToken* retValue,
		somId methodId,
		va_list ap)
{
return SOM_ResolveD(this,ODPersistentObject,SOMObject,somClassDispatch)
	(this,clsObj,retValue,methodId,ap);
}

/* the varargs invocation form */
boolean   somClassDispatch(SOMClass* clsObj,
		somToken* retValue,
		somId methodId,
		...)
{
   va_list ap;
   va_start(ap, methodId);
   boolean __somResult = 
      SOM_ResolveD(this,ODPersistentObject,SOMObject,somClassDispatch)
	(this,clsObj,retValue,methodId,ap);
   va_end(ap);
   return __somResult;
}


/* method: somCastObj */
boolean   somCastObj(SOMClass* cls)
{
   return SOM_ResolveD(this,ODPersistentObject,SOMObject,somCastObj)
	(this,cls);
}


/* method: somResetObj */
boolean   somResetObj()
{
   return SOM_ResolveD(this,ODPersistentObject,SOMObject,somResetObj)
	(this);
}


/* method: somPrintSelf */
SOMObject*   somPrintSelf()
{
   return SOM_ResolveD(this,ODPersistentObject,SOMObject,somPrintSelf)
	(this);
}


/* method: somDumpSelf */
void   somDumpSelf(long level)
{
   SOM_ResolveD(this,ODPersistentObject,SOMObject,somDumpSelf)
	(this,level);
}


/* method: somDumpSelfInt */
void   somDumpSelfInt(long level)
{
   SOM_ResolveD(this,ODPersistentObject,SOMObject,somDumpSelfInt)
	(this,level);
}



};   /* ODPersistentObject */



#endif       /* SOM_ODPersistentObject_xh */
