12.12.2012 Views

Teach Yourself Borland C++ in 14 Days - portal

Teach Yourself Borland C++ in 14 Days - portal

Teach Yourself Borland C++ in 14 Days - portal

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>C++</strong>Builder Database Architecture<br />

Property Description<br />

NetFileDir Specifies the location of PDOXUSRS.NET.<br />

PrivateDir Specifies the location of temporary files.<br />

SessionName Specifies the session name to publish to other components.<br />

Table 12.3. TSession key methods.<br />

Method Function<br />

AddPassword Adds a password to the current session (for Paradox connections).<br />

CloseDatabase Explicitly closes a TDatabase component.<br />

DropConnections Drops all <strong>in</strong>active TDatabase connections.<br />

F<strong>in</strong>dDatabase Locates a TDatabase by name.<br />

GetAliasNames Returns the available BDE aliases.<br />

GetAliasParams Returns the parameters for a given alias.<br />

GetDatabaseNames Lists all available aliases, <strong>in</strong>clud<strong>in</strong>g local ones.<br />

GetDriverNames Lists the available BDE drivers.<br />

GetDriverParams Returns the parameters for a given driver.<br />

GetPassword Prompts for a password; returns true if successful.<br />

GetTableNames Lists all tables <strong>in</strong> a given database.<br />

GetStoredProcNames Lists all stored procedures <strong>in</strong> a given database.<br />

OpenDatabase Explicitly opens a TDatabase.<br />

RemoveAllPasswords Removes all Paradox-related passwords.<br />

RemovePassword Removes a given Paradox-related password.<br />

Table 12.4. TSession key events.<br />

Event Catalyst<br />

OnPassword Occurs when the BDE needs a Paradox table password.<br />

OnStartup Occurs when the session becomes active.<br />

435<br />

12

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!