Works with either a single c-tree superfile or group of files in a directory.
|
Public Types |
| enum | eLockingStates { noLocking,
readLocking,
writeLocking
} |
Public Member Functions |
| | dbConnect_FServ (bool isTemporary=false) |
| virtual | ~dbConnect_FServ () |
| virtual void | newConnection (const char *connectionName) |
| virtual void | openConnection (const char *connectionName) |
| virtual bool | openOrCreateConnection (const char *connectionName) |
| void | buildConnectionSchemaFromFile (const char *connectionName) |
| virtual void | newConnection (const char *connectionName, dbUser *optionalLoginInfo=0) |
| virtual void | openConnection (const char *connectionName, dbUser *optionalLoginInfo=0) |
| virtual bool | openOrCreateConnection (const char *connectionName, dbUser *optionalLoginInfo=0) |
| virtual void | newConnection (const FSSpec &) |
| virtual void | openConnection (const FSSpec &) |
| virtual void | close () |
| virtual void | deleteStorage () |
| virtual bool | usesSeparateStorageFiles () const |
| void | useSeparateFiles () |
| void | useExclusiveAccess () |
| bool | isReadLocked () const |
| bool | isWriteLocked () const |
| void | resetLocks () |
| bool | isFileOnServer (const char *) const |
| void | blobsHaveBeenFound () |
| long | allocBlobFilNo () |
| void | activateConnection () |
| short | uerr_cod () const |
| short | sysiocod () const |
| short | isam_err () const |
| virtual void | exitLocking () |
| virtual void | enterWriteLocking () |
| virtual void | enterReadLocking () |
| OOF_String | makeTableName (const char *) const |
| virtual oofString | name () const |
| void | gotoDatabaseDir () const |
| oofDirectory * | databaseDirectory () const |
| const oofString & | connectionName () const |
| void | attachTable (dbTable *) |
| dbTable * | table (unsigned int) const |
| dbTable * | table (const char *) |
| unsigned int | numTables () const |
| bool | isOpen () const |
| bool | inDeclarativePhase () const |
| | Connection has been declared but not opened or created.
|
| virtual void | describe (std::ostream &) const |
| | Provide human-readable information about object.
|
| virtual void | writeOOFSchema () |
| virtual void | readOOFSchema (const oofString &schemaFileName) |
| | Reads & parses oofSchema from the file schemaFileName.
|
| virtual void | stats (std::ostream &) |
| void | dumpData (std::ostream &) |
| void | extract (std::ostream &os) |
| void | copyAllFrom (dbConnect *) |
| void | deleteAll () |
| void | generateTestData (unsigned long maxRecs=10000, bool generateRandom=true, unsigned long seedOrCount=0) |
| void | schemaFileExt (const oofString &) |
| void | suspendSorting () const |
| void | resumeSorting () const |
| oofWordParser * | getDefaultWordParser () |
| void | setDefaultWordParser (oofWordParser *inParser) |
| bool | hidden () const |
| void | hide (bool hideIt=true) |
Static Public Member Functions |
| dbConnect * | currentlyConstructing () |
| bool | fileExists (const char *fName) |
| bool | underConstruction () |
| void | raise (std::ostream &, bool terminateAfterMsg=true) |
| void | raise (const char *, bool terminateAfterMsg=true) |
| void | truncateTrailingSpaces (bool willTruncate=true) |
| bool | willTruncateTrailingSpaces () |
Static Public Attributes |
| long | sFileMode |
Protected Types |
Protected Member Functions |
| void | BuildConnectionSchemas () |
| void | FinishNewConnection (const char *connectionName, dbUser *optionalLoginInfo=0) |
| void | FinishOpenConnection (const char *connectionName, dbUser *optionalLoginInfo=0) |
| bool | FinishOpenOrCreateConnection (const char *connectionName, dbUser *optionalLoginInfo=0) |
| void | MakeAllTablesValid () const |
| | Final step in construction, can use tables against database after this.
|
| void | InitOpenOrCreateState () |
| void | OpenOrCreateStateTransition (bool inOpenedOrCreated) |
| | Manage state transitions for FinishOpenOrCreateConnection.
|
| virtual void | WriteOOFSchemaFile () |
| | Write the oofschema out to the schema file.
|
| virtual oofString | MakeSchemaFileName () |
| | produce a file name for schema file.
|
| oofString | MakeOOFSchemaString () |
| | Produce a string containing the oofschema with the length of the schema string aphended to the end.
|
Protected Attributes |
| bool | mHasBlobs |
| bool | mUseSuperfile |
| eLockingStates | mLockingState |
| int | mReadLockApplications |
| int | mWriteLockApplications |
| long | mSuperFilNo |
| long | mBlobFilNo |
| char | mFServInstanceName [32] |
| void * | mFServVars |
| unsigned int | mNumFiles |
| unsigned int | mNumIndexes |
| OOF_Dictionary | mTables |
| oofString | mConnectionName |
| oofString | mSchemaFileName |
| bool | mOpen |
| bool | mTempDatabase |
| bool | mInDeclarativePhase |
| oofWordParser * | mDefaultPrototypeParser |
| oofDirectory * | mDatabaseDir |
| bool | mHidden |
Static Protected Attributes |
| unsigned long | sConnectionsOpened |
| dbConnect_FServ * | sActiveConnection |
| dbConnect * | sCurrentlyConstructing |
| | this static gets zeroed in dbTable::postCloneTableCleanup() this is how we avoid passing dbTable pointers around all the time when creating fields particularly in user constructors when it would clutter things up a LOT!
|
| bool | sTruncateTrailingSpaces = false |
| oofString | sSchemaFileExt = "osc" |