IBM_DB2Field Class Reference
[Database]

This represents a column in a DB2 database. More...

List of all members.

Public Member Functions

 name ()
 Get column name.
 tableName ()
 Get table name.
 type ()
 Get column type.
 nullable ()
 Can column be null?
 maxLength ()
 How much can you fit in the column per row?

Static Public Member Functions

static fromText ($db, $table, $field)
 Builder method for the class.

Private Attributes

 $name
 $tablename
 $type
 $nullable
 $max_length


Detailed Description

This represents a column in a DB2 database.

Definition at line 23 of file DatabaseIbm_db2.php.


Member Function Documentation

static IBM_DB2Field::fromText ( db,
table,
field 
) [static]

Builder method for the class.

Parameters:
Object $db Database interface
string $table table name
string $field column name
Returns:
IBM_DB2Field

Definition at line 33 of file DatabaseIbm_db2.php.

References $db, $n, $res, $row, $wgDBmwschema, END, and name().

Referenced by DatabaseIbm_db2::fieldInfo().

IBM_DB2Field::maxLength (  ) 

How much can you fit in the column per row?

Returns:
int length

Definition at line 82 of file DatabaseIbm_db2.php.

IBM_DB2Field::name (  ) 

Get column name.

Returns:
string column name

Definition at line 62 of file DatabaseIbm_db2.php.

Referenced by fromText().

IBM_DB2Field::nullable (  ) 

Can column be null?

Returns:
bool true or false

Definition at line 77 of file DatabaseIbm_db2.php.

IBM_DB2Field::tableName (  ) 

Get table name.

Returns:
string table name

Definition at line 67 of file DatabaseIbm_db2.php.

IBM_DB2Field::type (  ) 

Get column type.

Returns:
string column type

Definition at line 72 of file DatabaseIbm_db2.php.


Member Data Documentation

IBM_DB2Field::$max_length [private]

Definition at line 24 of file DatabaseIbm_db2.php.

IBM_DB2Field::$name [private]

Definition at line 24 of file DatabaseIbm_db2.php.

IBM_DB2Field::$nullable [private]

Definition at line 24 of file DatabaseIbm_db2.php.

IBM_DB2Field::$tablename [private]

Definition at line 24 of file DatabaseIbm_db2.php.

IBM_DB2Field::$type [private]

Definition at line 24 of file DatabaseIbm_db2.php.


The documentation for this class was generated from the following file:

Generated on Sat Sep 5 02:08:38 2009 for MediaWiki by  doxygen 1.5.9