RTSQLConstraint


Conforms To:
NSObject
Declared In:
RTSQLConstraint.h


Protocol Description

Base protocol for a constraint. All instances should also conform to one of the more specific contraint protocols.


Method Types

- name
- table
- constraintType
- deferrable
- initialyDeferrable

Instance Methods

constraintType

- (NSString*)constraintType

Returns a description of what type of constraint the object is. The returned value should be one of the following: "Primary Key", "Foreign Key", "Check", or "Unique"


deferrable

- (BOOL)deferrable

YES if this constraint can be deferred until a transaction is committed.


initialyDeferrable

- (BOOL)initialyDeferrable

YES if this constraint is deferrable by default.


name

- (NSString*)name

Returns the name of the constraint.


table

- (id <RTSQLTable>)table

Returns the table this constraint is associated with.


Copyright ©2006 by Runtime Labs, Inc.. All Rights Reserved.