Main Page | Class Hierarchy | Compound List | Compound Members | Related Pages

Column Class Reference

List of all members.

Detailed Description

A column definition in a table.


Public Member Functions

Table table ()
 Return the table this column is a part of.

void flush ()
 Flush any changes made to the table.

int index ()
 Return the zero-based index of this column in the table.

bit registered ()
 Return whether this column is registered in the table.

bit modified ()
 Return whether the column has been modified for a table flush.

char[] name ()
 Return the name of the column.

void name (char[] value)
 Assign the name of the column.

char[] dataType ()
 Return the data type of the column.

char[] defaultValue ()
 Return the default value of the column.

void defaultValue (char[] value)
 Assign the default value of the column.

SQLite OnConflict uniqueConflict ()
 Return the conflict resolution if a row is added to the table where this column's value is not unique to the table (see SQLite.OnConflict).

SQLite OnConflict notNullConflict ()
 Return the conflict resolution if a row is added to the table where this column's value is NULL (see SQLite.OnConflict).

void remove ()
 Remove the column from the table in the next flush ().

bit removed ()
 Return whether this column has been removed in the next flush ().


Member Function Documentation

char [] Column.dataType  ) 
 

Return the data type of the column.

Data types are informational in SQLite and have no consequence on what can be stored in them.

void Column.defaultValue charvalue  []  ) 
 

Assign the default value of the column.

The default default value null for NONE. The change is buffered and will be stored on a call to flush () on the table. This will have no effect on already-created rows.

Parameters:
value The value to change the default to.

char [] Column.defaultValue  ) 
 

Return the default value of the column.

void Column.flush  ) 
 

Flush any changes made to the table.

int Column.index  ) 
 

Return the zero-based index of this column in the table.

bit Column.modified  ) 
 

Return whether the column has been modified for a table flush.

void Column.name charvalue  []  ) 
 

Assign the name of the column.

The change is buffered and will be stored on a call to flush () on the table. Multiple columns with the same name will cause an exception in flush ().

Parameters:
name The name to rename the column to.

char [] Column.name  ) 
 

Return the name of the column.

SQLite OnConflict Column.notNullConflict  ) 
 

Return the conflict resolution if a row is added to the table where this column's value is NULL (see SQLite.OnConflict).

bit Column.registered  ) 
 

Return whether this column is registered in the table.

void Column.remove  ) 
 

Remove the column from the table in the next flush ().

If the column or table is not registered, this is an immediate command.

bit Column.removed  ) 
 

Return whether this column has been removed in the next flush ().

Table Column.table  ) 
 

Return the table this column is a part of.

SQLite OnConflict Column.uniqueConflict  ) 
 

Return the conflict resolution if a row is added to the table where this column's value is not unique to the table (see SQLite.OnConflict).


The documentation for this class was generated from the following file:
Generated on Thu Jul 31 08:40:54 2003 for sqlite by doxygen 1.3.2