Class TPgsqlColumnMetaData

Description

Column meta data for Postgre 7.3 or later.

  • since: 3.1
  • version: $Id: TPgsqlColumnMetaData.php 1545 2006-12-03 22:26:04Z wei $
  • author: Wei Zhuo <weizho[at]gmail[dot]com>

Located in /Data/ActiveRecord/Vendor/TPgsqlColumnMetaData.php (line 21)

TComponent
   |
   --TPgsqlColumnMetaData
Method Summary
TPgsqlColumnMetaData __construct (string $name, string $type, string $length, boolean $notNull, string $serial, string $default)
void getDefaultValue ()
boolean getIsPrimaryKey ()
void getLength ()
string getName ()
void getNotNull ()
string getSequenceName ()
void getType ()
boolean hasDefault ()
boolean hasSequence ()
void setIsPrimaryKey (mixed $value)
Methods
Constructor __construct (line 42)

Initialize column meta data.

  • access: public
TPgsqlColumnMetaData __construct (string $name, string $type, string $length, boolean $notNull, string $serial, string $default)
  • string $name: column name.
  • string $type: column data type.
  • string $length: column data length.
  • boolean $notNull: column can not be null.
  • string $serial: serial name.
  • string $default: default value.
getDefaultValue (line 118)
  • access: public
void getDefaultValue ()
getIsPrimaryKey (line 90)
  • return: true if the column is a primary key, or part of a composite primary key.
  • access: public
boolean getIsPrimaryKey ()
getLength (line 100)
  • access: public
void getLength ()
getName (line 55)
  • return: quoted column name.
  • access: public
string getName ()
getNotNull (line 105)
  • access: public
void getNotNull ()
getSequenceName (line 71)
  • return: sequence name, only applicable if column is a sequence.
  • access: public
string getSequenceName ()
getType (line 95)
  • access: public
void getType ()
hasDefault (line 113)
  • return: true if column has default value, false otherwise.
  • access: public
boolean hasDefault ()
hasSequence (line 63)
  • return: true if column is a sequence, false otherwise.
  • access: public
boolean hasSequence ()
setIsPrimaryKey (line 79)

Set the column as primary key

  • access: public
void setIsPrimaryKey (mixed $value)

Inherited Methods

Inherited From TComponent

TComponent::addParsedObject()
TComponent::attachEventHandler()
TComponent::canGetProperty()
TComponent::canSetProperty()
TComponent::createdOnTemplate()
TComponent::detachEventHandler()
TComponent::evaluateExpression()
TComponent::evaluateStatements()
TComponent::getEventHandlers()
TComponent::getSubProperty()
TComponent::hasEvent()
TComponent::hasEventHandler()
TComponent::hasProperty()
TComponent::raiseEvent()
TComponent::setSubProperty()
TComponent::__get()
TComponent::__set()

Documentation generated on Sun, 14 Jan 2007 21:43:51 -0500 by phpDocumentor 1.3.0RC4