Class: Doctrine_DataDict_Oracle

Source Location: /Doctrine/DataDict/Oracle.php

Class Doctrine_DataDict_Oracle

Class Overview

Located in /Doctrine/DataDict/Oracle.php [line 32]

Doctrine_Connection_Module
   |
   --Doctrine_DataDict
      |
      --Doctrine_DataDict_Oracle
Author(s): Information Tags:
Version:  $Revision: 1334 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL

Methods

[ Top ]
Inherited Properties, Constants, and Methods
Inherited Properties Inherited Methods Inherited Constants

Inherited From Doctrine_Connection_Module

Doctrine_Connection_Module::$conn
Doctrine_Connection_Module::$moduleName

Inherited From Doctrine_DataDict

Doctrine_DataDict::compareDefinition()
Obtain an array of changes that may need to applied
Doctrine_DataDict::parseBoolean()
parseBoolean parses a literal boolean value and returns proper sql equivalent

Inherited From Doctrine_Connection_Module

Doctrine_Connection_Module::__construct()
Doctrine_Connection_Module::getConnection()
getConnection returns the connection object this module uses
Doctrine_Connection_Module::getModuleName()
getModuleName returns the name of this module

[ Top ]
Method Summary
string   getNativeDeclaration()   Obtain DBMS specific SQL code portion needed to declare an text type field to be used in statements like CREATE TABLE.
array   getPortableDeclaration()   Maps a native array description of a field to a doctrine datatype and length

[ Top ]
Properties
Methods
getNativeDeclaration  [line 56]

  string getNativeDeclaration( $field  )

Obtain DBMS specific SQL code portion needed to declare an text type field to be used in statements like CREATE TABLE.

Parameters:
array   $field: 

associative array with the name of the properties of the field being declared as array indexes. Currently, the types of supported field properties are as follows:

length Integer value that determines the maximum length of the text field. If this argument is missing the field should be declared to have the longest length allowed by the DBMS.

default Text value to be used as default for this field.

notnull Boolean flag that indicates whether this field is constrained to not be set to null.


API Tags:
Return:  DBMS specific SQL code portion that should be used to declare the specified field.
Access:  public


[ Top ]
getPortableDeclaration  [line 108]

  array getPortableDeclaration( $field  )

Maps a native array description of a field to a doctrine datatype and length

Parameters:
array   $field:  native field description

API Tags:
Return:  containing the various possible types, length, sign, fixed
Access:  public

Information Tags:
Throws:  Doctrine_DataDict_Oracle_Exception

[ Top ]