logo logo

 Back to main page

The NWNX Community Forum

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Need understanding of Set/Get PersistantObject

 
Post new topic   Reply to topic    nwnx.org Forum Index -> Database related
View previous topic :: View next topic  
Author Message
Argonal



Joined: 24 Apr 2005
Posts: 2

PostPosted: Sun Apr 24, 2005 3:13    Post subject: Need understanding of Set/Get PersistantObject Reply with quote

Examining the code for these two, I can almost understand them. However, In the first I find the line pair

SetLocalString(GetModule(), "NWNX!ODBC!SETSCORCOSQL", sSQL);
StoreCampaignObject ("NWNX", "-", oObject);

while in the second I find the lines

SetLocalString(GetModule(), "NWNX!ODBC!SETSCORCOSQL", sSQL);
if (!GetIsObjectValid(oOwner))
oOwner = oObject;
return RetrieveCampaignObject ("NWNX", "-", GetLocation(oOwner), oOwner);

I understand that the

SetLocalString

function is intercepted by the hook code and actually causes the previously set SQL code to be run against the data base. The thing I am having trouble understanding is the

Store/RetrieveCampaignObject

My understanding is that these two statements operate against the native Bioware data base.

What am I missing?
Back to top
View user's profile Send private message
Argonal



Joined: 24 Apr 2005
Posts: 2

PostPosted: Sun Apr 24, 2005 3:51    Post subject: Reply with quote

Ah. I see from the NWNX ODBC2 object storage discussion in the General Forum that the ODBC2 code also hooks the Set/GetCampaignObject functions. That answers this question.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    nwnx.org Forum Index -> Database related All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group