int CreoleTypes::getType
(
$
nativeType
)
[static, pure virtual]
|
This method returns the generic Creole (JDBC-like) type when given the native db type.
Implemented in MSSQLTypes, MySQLTypes, OCI8Types, PgSQLTypes, and SQLiteTypes. |
string CreoleTypes::getNativeType
(
$
creoleType
)
[static, pure virtual]
|
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.
Implemented in MSSQLTypes, MySQLTypes, OCI8Types, PgSQLTypes, and SQLiteTypes. |
string CreoleTypes::getAffix
(
$creoleType
)
[static]
|
Gets the "affix" to use for ResultSet::get*() and PreparedStatement::set*() methods.
|
string CreoleTypes::getCreoleName
(
$creoleType
)
[static]
|
Given the integer type, this method will return the corresponding type name.
|
int CreoleTypes::getCreoleCode
(
$creoleTypeName
)
[static]
|
Given the name of a type (e.g. 'VARCHAR') this method will return the corresponding integer.
|
const CreoleTypes::BOOLEAN = 1 |
|
const CreoleTypes::BIGINT = 2 |
|
const CreoleTypes::SMALLINT = 3 |
|
const CreoleTypes::TINYINT = 4 |
|
const CreoleTypes::INTEGER = 5 |
|
const CreoleTypes::CHAR = 6 |
|
const CreoleTypes::VARCHAR = 7 |
|
const CreoleTypes::TEXT = 17 |
|
const CreoleTypes::FLOAT = 8 |
|
const CreoleTypes::DOUBLE = 9 |
|
const CreoleTypes::DATE = 10 |
|
const CreoleTypes::TIME = 11 |
|
const CreoleTypes::TIMESTAMP = 12 |
|
const CreoleTypes::VARBINARY = 13 |
|
const CreoleTypes::NUMERIC = 14 |
|
const CreoleTypes::BLOB = 15 |
|
const CreoleTypes::CLOB = 16 |
|
const CreoleTypes::LONGVARCHAR = 17 |
|
const CreoleTypes::DECIMAL = 18 |
|
const CreoleTypes::REAL = 19 |
|
const CreoleTypes::BINARY = 20 |
|
const CreoleTypes::LONGVARBINARY = 21 |
|
const CreoleTypes::YEAR = 22 |
|
const CreoleTypes::ARR = 23 |
this is "ARRAY" from JDBC types |
const CreoleTypes::OTHER = -1 |
|
CreoleTypes::$affixMap [static, protected]
|
Initial value: Map of Creole type integers to the setter/getter affix. |
CreoleTypes::$creoleTypeMap [static, protected]
|
Initial value: Map of Creole type integers to their textual name. |
This file is part of the Creole[php5] library.
Copyright © 2004 Hans Lellelid |   |
Creole[php5] CVS
|