Copyright ©1995 by NeXT Computer, Inc.  All Rights Reserved.




Types and Constants



Defined Types


Access Exceptions

typedef enum _DBAccessErrors {
DB_UnimplementedException = DB_ERROR_BASE,
DB_CoercionException,
DB_FormatException,
DB_CursorException,
DB_CommitException
} DBExceptions;



Failure Codes

typedef enum {
DB_ReasonUnknown = 0,
DB_RecordBusy,
DB_RecordStreamNotReady,
DB_RecordHasChanged,
DB_RecordLimitReached,
DB_NoRecordKey,
DB_RecordKeyNotUnique,
DB_NoAdaptor,
DB_AdaptorError,
DB_TransactionError
} DBFailureCode;



Failure Responses

typedef enum {
DB_NotHandled = 0,
DB_Abort,
DB_Continue
} DBFailureResponse;



Image Style

typedef enum {
DB_ImageNoFrame = 0,
DB_ImagePhoto,
DB_ImageGrayBezel,
DB_ImageGroove
} DBImageStyle;



Order of Retrieved Records

typedef enum {
DB_NoOrder = 0
DB_AscendingOrder,
DB_DescendingOrder
} DBRetrieveOrder;



Retrieval Mode of a Record List

typedef enum _DBRecordListMode {
DB_SynchronousStrategy,
DB_BackgroundStrategy,
DB_BackgroundNoBlockingStrategy,
} DBRecordListRetrieveMode;



Selection Mode in a DBTableView

typedef enum {
DB_RADIOMODE = 0,
DB_LISTMODE = 2,
DB_NOSELECT = 5
} DBSelectionMode



Status of Record Retrieval

typedef enum _DBRecordRetrievalStatus {
DB_NotReady,
DB_Ready,
DB_FetchLimitReached,
DB_FetchInProgress,
DB_FetchCompleted
} DBRecordRetrieveStatus;



Symbolic Constants


Error Numbers' Base Value

DB_ERROR_BASE (6000)


Format Types

DBFormat_EPS "EPS"
DBFormat_RTF "RTF"
DBFormat_TIFF "TIFF"


No Index Indicator

DB_NoIndex 0xffffffff


Null Values

DB_NullDouble (NAN)
DB_NullFloat (NAN)
DB_NullInt ((int)0x7ffffffe)


Record Limit Default

DB_DEFAULT_RECORD_LIMIT 1000