Class CTBase

Object
CTBase
Direct Known Subclasses:
CTDatabase, CTField, CTFullTextIndex, CTFullTextIndexDictionary, CTIndex, CTRecord, CTResultSet, CTResultSetCriteria, CTSegment, CTSession, CTTable

public class CTBase extends Object
Basic class, upon which most of the other classes are built. In general, this class is not directly used. However, since most of the other classes are based on this, there are some important methods described in here that are applicable to most of the derived classes.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected CTHANDLE
    Internal JTDB handle
  • Constructor Summary

    Constructors
    Constructor
    Description
    Default Constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Aborts a transaction started with a call to Begin().
    void
    Begins a transaction using the current BEGIN_MODE value.
    void
    Clears the last transaction save point.
    void
    Commits a transaction started with a call to Begin().
    boolean
    Retrieves the auto commit flag.
    CTHANDLE
    Retrieves the internal JTDB handle.
    int
    Retrieves the current KEEPLOCK_MODE.
    int
    Retrieves the current LOCK_MODE.
    int
    Retrieves the OPS_MODE for special performance-related functionality and tests operational states for critical events.
    int
    Gets the current BEGIN_MODE.
    boolean
    Checks if the locks are active.
    boolean
    Indicates if a transaction has been started with a call to Begin(), but not terminated with a call to Commit() or Abort().
    boolean
    Retrieves c-treeDB UNICODE mode.
    void
    Lock(int mode)
    Enables or disables record locks.
    void
    Prepares a two-phase commit transaction to be committed.
    void
    RestoreSavePoint(int SavePoint)
    Restores a previously set save point.
    void
    SetAutoCommit(boolean flag)
    Sets the auto commit mode.
    void
    SetHandle(CTHANDLE Handle)
    Sets the internal JTDB handle.
    void
    SetKeepLock(int mode)
    Sets the KEEPLOCK_MODE applied when an active transaction is commited or aborted by calling Abort() or Commit().
    void
    SetOperation(int mode, int state)
    Sets the OPS_MODE for special performance-related functionality and tests operational states for critical events.
    int
    Sets a new transaction save point.
    void
    Sets the BEGIN_MODE.
    void
    Disables record locks.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait