foreign_key Class Reference

#include <sql_class.h>

Inheritance diagram for foreign_key:

Inheritance graph
[legend]
Collaboration diagram for foreign_key:

Collaboration graph
[legend]
List of all members.

Public Types

enum  fk_match_opt { FK_MATCH_UNDEF, FK_MATCH_FULL, FK_MATCH_PARTIAL, FK_MATCH_SIMPLE }
enum  fk_option { FK_OPTION_UNDEF, FK_OPTION_RESTRICT, FK_OPTION_CASCADE, FK_OPTION_SET_NULL, FK_OPTION_NO_ACTION, FK_OPTION_DEFAULT }

Public Member Functions

 foreign_key (const char *name_arg, List< key_part_spec > &cols, Table_ident *table, List< key_part_spec > &ref_cols, uint delete_opt_arg, uint update_opt_arg, uint match_opt_arg)

Public Attributes

Table_identref_table
List< key_part_specref_columns
uint delete_opt
uint update_opt
uint match_opt

Member Enumeration Documentation

enum foreign_key::fk_match_opt
 

Enumeration values:
FK_MATCH_UNDEF 
FK_MATCH_FULL 
FK_MATCH_PARTIAL 
FK_MATCH_SIMPLE 
00288                     { FK_MATCH_UNDEF, FK_MATCH_FULL,
00289                       FK_MATCH_PARTIAL, FK_MATCH_SIMPLE};

enum foreign_key::fk_option
 

Enumeration values:
FK_OPTION_UNDEF 
FK_OPTION_RESTRICT 
FK_OPTION_CASCADE 
FK_OPTION_SET_NULL 
FK_OPTION_NO_ACTION 
FK_OPTION_DEFAULT 
00290                  { FK_OPTION_UNDEF, FK_OPTION_RESTRICT, FK_OPTION_CASCADE,
00291                    FK_OPTION_SET_NULL, FK_OPTION_NO_ACTION, FK_OPTION_DEFAULT};


Constructor & Destructor Documentation

foreign_key::foreign_key const char *  name_arg,
List< key_part_spec > &  cols,
Table_ident table,
List< key_part_spec > &  ref_cols,
uint  delete_opt_arg,
uint  update_opt_arg,
uint  match_opt_arg
[inline]
 

00299     :Key(FOREIGN_KEY, name_arg, HA_KEY_ALG_UNDEF, 0, cols),
00300     ref_table(table), ref_columns(cols),
00301     delete_opt(delete_opt_arg), update_opt(update_opt_arg),
00302     match_opt(match_opt_arg)
00303   {}


Member Data Documentation

uint foreign_key::delete_opt
 

uint foreign_key::match_opt
 

List<key_part_spec> foreign_key::ref_columns
 

Table_ident* foreign_key::ref_table
 

uint foreign_key::update_opt
 


The documentation for this class was generated from the following file:
Generated on Thu Feb 24 11:16:31 2005 for MySQL by  doxygen 1.3.9.1