Product Documentation

c-treeDB API for C# - Developers Guide

Previous Topic

Next Topic

CTBase Methods

Constructor / Destructor

  • CTBase(): Creates a CTBase object
  • ~CTBase(): Destroys a CTBase Object and resets all the dependent objects

Error Handling

  • GetError(): Returns the error code associated with the handle
  • SetError(): Sets the error code
  • ClearError(): Resets the error code

Transaction Processing

  • IsTransActive(): Indicates if a transaction has been started with a call to Begin(), but not terminated with a call to Commit() or Abort().
  • Begin(): Begins a transaction.
  • Commit(): Commits a transaction started with a call to Begin().
  • Abort(): Aborts a transaction started with a call to Begin().
  • SetSavePoint(): Sets a new transaction save point.
  • RestoreSavePoint(): Restores a previously set save point.
  • Lock(): Enables or disable record locks, using one of the c-tree lock modes
  • Unlock(): Disables record locks
  • IsLockActive(): Indicates whether a session wide lock is active
  • GetLockMode(): Retrieves the current record lock mode for session wide locks
  • GetKeepLock(): Retrieves the current keep lock mode
  • SetKeepLock(): Set the extended keep lock mode

Handle

  • GetHandle(): Returns the handle
  • GetHandleId(): Returns the handle ID
  • SetHandle(): Sets the handle

Type Definition

  • GetDefFloatFormat(): Retrieves the default floating point string format to be used in sConsole.Write() and sscanf()
  • GetDefDateType(): Retrieves the default date type
  • GetDefTimeType(): Retrieves the default time type
  • SetDefFloatFormat(): Sets the default floating point string format to be used in sConsole.Write() and sscanf()
  • SetDefDateType(): Sets the default date type
  • SetDefTimeType(): Sets the default time type

Other

  • GetUserTag(): Retrieves the user tag.
  • GetHandleType(): Retrieve the handle type
  • GetTableType(): Retrieve the table type
  • SetUserTag(): Sets the user tag.
  • SwitchInstance(): Force a switch to the c-tree Plus instance indicated by the Session object.

In This Section

CTBase.CTBase

CTBase.~CTBase

CTBase.Abort

CTBase.Begin

CTBase.ClearError

CTBase.ClearSavePoint

CTBase.Commit

CTBase.GetAutoCommit

CTBase.GetDefDateType

CTBase.GetDefFloatFormat

CTBase.GetDefTimeType

CTBase.GetError

CTBase.GetHandle

CTBase.GetHandleId

CTBase.GetHandleType

CTBase.GetKeepLock

CTBase.GetLockMode

CTBase.GetOperation

CTBase.GetSystemConfig

CTBase.GetTableType

CTBase.GetTransactionMode

CTBase.GetUserTag

CTBase.IsLockActive

CTBase.IsTransActive

CTBase.Lock

CTBase.RestoreSavePoint

CTBase.SetAutoCommit

CTBase.SetDefDateType

CTBase.SetDefFloatFormat

CTBase.SetDefTimeType

CTBase.SetError

CTBase.SetHandle

CTBase.SetKeepLock

CTBase.SetOperation

CTBase.SetSavePoint

CTBase.SetTransactionMode

CTBase.SetUserTag

CTBase.SwitchInstance

CTBase.Unlock

TOCIndex