creole.drivers.mysql
[ class tree: creole.drivers.mysql ] [ index: creole.drivers.mysql ] [ all elements ]

Class: MySQLTypes

Source Location: /creole/drivers/mysql/MySQLTypes.php

Class Overview

CreoleTypes
   |
   --MySQLTypes

MySQL types / type map.


Author(s):

Version:

  • $Revision: 1.7 $

Methods


Inherited Constants

Inherited Variables

Inherited Methods

Class: CreoleTypes

CreoleTypes::getAffix()
Gets the "affix" to use for ResultSet::get*() and PreparedStatement::set*() methods.
CreoleTypes::getCreoleCode()
Given the name of a type (e.g. 'VARCHAR') this method will return the corresponding integer.
CreoleTypes::getCreoleName()
Given the integer type, this method will return the corresponding type name.
CreoleTypes::getNativeType()
This method will return a native type that corresponds to the specified Creole (JDBC-like) type.
CreoleTypes::getType()
This method returns the generic Creole (JDBC-like) type when given the native db type.

Class Details

[line 32]
MySQL types / type map.



Tags:

version:  $Revision: 1.7 $
author:  Hans Lellelid <hans@xmpl.org>


[ Top ]


Class Methods


method getNativeType [line 93]

string getNativeType( int $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.




Tags:

return:  Native type string.
static:  
access:  public


Overrides CreoleTypes::getNativeType() (This method will return a native type that corresponds to the specified Creole (JDBC-like) type.)

Parameters:

int   $creoleType  

[ Top ]

method getType [line 75]

int getType( string $nativeType)

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



Tags:

return:  Creole native type (e.g. CreoleTypes::LONGVARCHAR, CreoleTypes::BINARY, etc.).
static:  
access:  public


Overrides CreoleTypes::getType() (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.).

[ Top ]


Documentation generated on Mon, 23 Aug 2004 21:51:58 -0400 by phpDocumentor 1.3.0RC3