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

Class: SQLiteTypes

Source Location: /creole/drivers/sqlite/SQLiteTypes.php

Class Overview

CreoleTypes
   |
   --SQLiteTypes

MySQL types / type map.


Author(s):

Version:

  • $Revision: 1.3 $

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.3 $
author:  Hans Lellelid <hans@xmpl.org>


[ Top ]


Class Methods


method getNativeType [line 100]

string getNativeType( int $creoleType)

This method will return a native type that corresponds to the specified Creole (JDBC-like) type. Remember that this is really only for "hint" purposes as SQLite is typeless.

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 79]

int getType( string $nativeType)

This method returns the generic Creole (JDBC-like) type when given the native db type. If no match is found then we just return CreoleTypes::TEXT because SQLite is typeless.



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:53:18 -0400 by phpDocumentor 1.3.0RC3