MySQLTypes Class Reference

Inherits CreoleTypes.

List of all members.

Public Member Functions

Public Attributes


Member Function Documentation

MySQLTypes::getType ( $  nativeType)

 

This method returns the generic Creole (JDBC-like) type when given the native db type.

Parameters:
string $nativeType DB native type (e.g. 'TEXT', 'byetea', etc.).

Returns int Creole native type (e.g. CreoleTypes::LONGVARCHAR, CreoleTypes::BINARY, etc.).

Reimplemented from CreoleTypes.

MySQLTypes::getNativeType ( $  creoleType)

 

This method will return a native type that corresponds to the specified Creole (JDBC-like) type. If there is more than one matching native type, then the LAST defined native type will be returned.

Parameters:
int $creoleType

Returns string Native type string.

Reimplemented from CreoleTypes.

& MySQLTypes::getInstance ()

 

Reimplemented from CreoleTypes.


Member Data Documentation

MySQLTypes::$typeMap = null

 

Map MySQL native types to Creole (JDBC) types.

MySQLTypes::$reverseMap = null

 

Reverse mapping, created on demand.


This file is part of the Creole[php4] library.


Copyright © 2004 Hans Lellelid  
Creole[php4] CVS