MDB2
[ class tree: MDB2 ] [ index: MDB2 ] [ all elements ]

Class: MDB2_Driver_Datatype_oci8

Source Location: /MDB2_Driver_oci8-0.2.6/MDB2/Driver/Datatype/oci8.php

Class Overview

MDB2_Driver_Datatype_Common
   |
   --MDB2_Driver_Datatype_oci8

MDB2 OCI8 driver


Author(s):

Methods


Inherited Variables

Inherited Methods


Class Details

[line 56]
MDB2 OCI8 driver


[ Top ]


Method Detail

convertResult   [line 68]

mixed convertResult( mixed $value, int $type)

convert a value to a RDBMS indepdenant MDB2 type
  • Return: converted value
  • Access: public

Parameters:

mixed   $value     value to be converted
int   $type     constant that specifies which type to convert to

[ Top ]

getTypeDeclaration   [line 109]

string getTypeDeclaration( array $field)

Obtain DBMS specific SQL code portion needed to declare an text type field to be used in statements like CREATE TABLE.
  • Return: DBMS specific SQL code portion that should be used to declare the specified field.
  • Access: public

Parameters:

array   $field     

associative array with the name of the properties of the field being declared as array indexes. Currently, the types of supported field properties are as follows:

length Integer value that determines the maximum length of the text field. If this argument is missing the field should be declared to have the longest length allowed by the DBMS.

default Text value to be used as default for this field.

notnull Boolean flag that indicates whether this field is constrained to not be set to null.


[ Top ]

mapNativeDatatype   [line 353]

array mapNativeDatatype( array $field)

Maps a native array description of a field to a MDB2 datatype and length
  • Return: containing the various possible types, length, sign, fixed
  • Access: public

Parameters:

array   $field     native field description

[ Top ]

writeLOBToFile   [line 245]

mixed writeLOBToFile( array $lob, string $file)

retrieve LOB from the database
  • Return: MDB2_OK on success, a MDB2 error on failure
  • Access: protected

Parameters:

array   $lob     array
string   $file     name of the file into which the LOb should be fetched

[ Top ]

_quoteBLOB   [line 175]

string _quoteBLOB( string $value, bool $quote)

Convert a text value into a DBMS specific format that is suitable to compose query statements.
  • Return: text string that represents the given argument value in a DBMS specific format.
  • Access: protected

Parameters:

string   $value     text string value that is intended to be converted.
bool   $quote     determines if the value should be quoted and escaped

[ Top ]

_quoteCLOB   [line 157]

string _quoteCLOB( string $value, bool $quote)

Convert a text value into a DBMS specific format that is suitable to compose query statements.
  • Return: text string that represents the given argument value in a DBMS specific format.
  • Access: protected

Parameters:

string   $value     text string value that is intended to be converted.
bool   $quote     determines if the value should be quoted and escaped

[ Top ]

_quoteDate   [line 193]

string _quoteDate( string $value, bool $quote)

Convert a text value into a DBMS specific format that is suitable to compose query statements.
  • Return: text string that represents the given argument value in a DBMS specific format.
  • Access: protected

Parameters:

string   $value     text string value that is intended to be converted.
bool   $quote     determines if the value should be quoted and escaped

[ Top ]

_quoteTime   [line 229]

string _quoteTime( string $value, bool $quote)

Convert a text value into a DBMS specific format that is suitable to compose query statements.
  • Return: text string that represents the given argument value in a DBMS specific format.
  • Access: protected

Parameters:

string   $value     text string value that is intended to be converted.
bool   $quote     determines if the value should be quoted and escaped

[ Top ]

_quoteTimestamp   [line 211]

string _quoteTimestamp( string $value, bool $quote)

Convert a text value into a DBMS specific format that is suitable to compose query statements.
  • Return: text string that represents the given argument value in a DBMS specific format.
  • Access: protected

Parameters:

string   $value     text string value that is intended to be converted.
bool   $quote     determines if the value should be quoted and escaped

[ Top ]

_readLOB   [line 314]

mixed _readLOB( array $lob, int $length, blob $data)

Read data from large object input stream.
  • Return: length on success, a MDB2 error on failure
  • Access: protected

Parameters:

array   $lob     array
blob   $data     reference to a variable that will hold data to be read from the large object input stream
int   $length     integer value that indicates the largest ammount of data to be read from the large object input stream.

[ Top ]

_retrieveLOB   [line 278]

mixed _retrieveLOB( array &$lob)

retrieve LOB from the database
  • Return: MDB2_OK on success, a MDB2 error on failure
  • Access: protected

Parameters:

array   $lob     array

[ Top ]


Documentation generated on Sun, 14 May 2006 02:35:14 -0400 by phpDocumentor 1.2.3. PEAR Logo Copyright © PHP Group 2004.