Path

ez components / documentation / api reference / 2007.2 / databaseschema


DatabaseSchema: ezcDbSchemaOracleReader

[ Tutorial ] [ Class tree ] [ Element index ] [ ChangeLog ] [ Credits ]

Class: ezcDbSchemaOracleReader

Handler for Oracle connections representing a DB schema. [source]

Implemented Interfaces

Method Summary

public static string convertToGenericType( $typeString, &$typeLength, $typePrecision, $typeLength )
Converts the native Oracle type in $typeString to a generic DbSchema type.
public int getReaderType( )
Returns what type of schema reader this class implements.
public ezcDbSchema loadFromDb( $db )
Returns a ezcDbSchema object from the database that is referenced with $db.

Methods

convertToGenericType

string convertToGenericType( string $typeString, &$typeLength, int $typePrecision, int $typeLength )
Converts the native Oracle type in $typeString to a generic DbSchema type.
This method converts a string like "VARCHAR2" to the generic DbSchema type and uses parameters $typeLength and $typePrecision to detect emulated types char(1) == 'boolean', number(N) == "decimal".

Parameters

Name Type Description
$typeString string  
$typeLength int  
$typePrecision int  
&$typeLength  

getReaderType

int getReaderType( )
Returns what type of schema reader this class implements.
This method always returns ezcDbSchema::DATABASE

loadFromDb

ezcDbSchema loadFromDb( $db )
Returns a ezcDbSchema object from the database that is referenced with $db.

Parameters

Name Type Description
$db ezcDbHandler  

Last updated: Mon, 17 Dec 2007