Solutions Open Source

Référence de la classe ADODB_db2

Graphe d'héritage de ADODB_db2:

Inheritance graph
[légende]
Graphe de collaboration de ADODB_db2:

Collaboration graph
[légende]

Liste de tous les membres

Fonctions membres publiques

 _insertid ()
 ADODB_db2 ()
 _connect ($argDSN, $argUsername, $argPassword, $argDatabasename)
 _pconnect ($argDSN, $argUsername, $argPassword, $argDatabasename)
 DBTimeStamp ($ts)
 SQLDate ($fmt, $col=false)
 ServerInfo ()
 CreateSequence ($seqname='adodbseq', $start=1)
 DropSequence ($seqname)
 GenID ($seq='adodbseq', $start=1)
 ErrorMsg ()
 ErrorNo ()
 BeginTrans ()
 CommitTrans ($ok=true)
 RollbackTrans ()
 MetaPrimaryKeys ($table)
 MetaForeignKeys ($table, $owner=FALSE, $upper=FALSE, $asociative=FALSE)
MetaTables ($ttype=false, $schema=false)
 DB2Types ($t)
MetaColumns ($table)
 Prepare ($sql)
 _query ($sql, $inputarr=false)
 UpdateBlob ($table, $column, $val, $where, $blobtype='BLOB')
 _close ()
 _affectedrows ()

Attributs publics

 $databaseType = "db2"
 $fmtDate = "'Y-m-d'"
 uppercase function
 $concat_operator = '||'
 maximum size of blobs or large text fields (262144 = 256K)-- some db's die otherwise like foxpro
 $sysTime = 'CURRENT TIME'
 $sysDate = 'CURRENT DATE'
 Use 'true' to store the item compressed (uses zlib).
 $sysTimeStamp = 'CURRENT TIMESTAMP'
 name of function that returns the current date
 $fmtTimeStamp = "'Y-m-d-H.i.s'"
 used by DBDate() as the default date format used by the database
 $replaceQuote = "''"
 string that represents FALSE for a database
 $dataProvider = "db2"
 $hasAffectedRows = true
 supports autoincrement ID?
 $binmode = DB2_BINARY
 $useFetchArray = false
 $_bindInputArray = false
 A boolean variable to state whether its a persistent connection or normal connection. */.
 $_genIDSQL = "VALUES NEXTVAL FOR %s"
 $_genSeqSQL = "CREATE SEQUENCE %s START WITH 1 NO MAXVALUE NO CYCLE"
 $_dropSeqSQL = "DROP SEQUENCE %s"
 $_autocommit = true
 $_haserrorfunctions = true
 $_lastAffectedRows = 0
 $uCaseTables = true
 $hasInsertID = true


Documentation des fonctions membres

ADODB_db2::_insertid (  ) 

ADODB_db2::ADODB_db2 (  ) 

ADODB_db2::_connect ( argDSN,
argUsername,
argPassword,
argDatabasename 
)

ADODB_db2::_pconnect ( argDSN,
argUsername,
argPassword,
argDatabasename 
)

ADODB_db2::DBTimeStamp ( ts  ) 

Converts a timestamp "ts" to a string that the database can understand.

Paramètres:
ts a timestamp in Unix date time format.
Renvoie:
timestamp string in database timestamp format

Réimplémentée à partir de ADOConnection.

ADODB_db2::SQLDate ( fmt,
col = false 
)

Réimplémentée à partir de ADOConnection.

ADODB_db2::ServerInfo (  ) 

Get server version info...

Renvoie:
An array with 2 elements: $arr['string'] is the description string, and $arr[version] is the version (also a string).

Réimplémentée à partir de ADOConnection.

ADODB_db2::CreateSequence ( seqname = 'adodbseq',
start = 1 
)

Réimplémentée à partir de ADOConnection.

ADODB_db2::DropSequence ( seqname  ) 

Réimplémentée à partir de ADOConnection.

ADODB_db2::GenID ( seqname = 'adodbseq',
startID = 1 
)

Generates a sequence id and stores it in $this->genID; GenID is only available if $this->hasGenID = true;

Paramètres:
seqname name of sequence to use
startID if sequence does not exist, start at this ID
Renvoie:
0 if not supported, otherwise a sequence id

Réimplémentée à partir de ADOConnection.

ADODB_db2::ErrorMsg (  ) 

Renvoie:
the last error message

Réimplémentée à partir de ADOConnection.

ADODB_db2::ErrorNo (  ) 

Renvoie:
the last error number. Normally 0 means no error.

Réimplémentée à partir de ADOConnection.

ADODB_db2::BeginTrans (  ) 

Begin a Transaction. Must be followed by CommitTrans() or RollbackTrans().

Renvoie:
true if succeeded or false if database does not support transactions

Réimplémentée à partir de ADOConnection.

ADODB_db2::CommitTrans ( ok = true  ) 

If database does not support transactions, always return true as data always commited

Paramètres:
$ok set to false to rollback transaction, true to commit
Renvoie:
true/false.

Réimplémentée à partir de ADOConnection.

ADODB_db2::RollbackTrans (  ) 

If database does not support transactions, rollbacks always fail, so return false

Renvoie:
true/false.

Réimplémentée à partir de ADOConnection.

ADODB_db2::MetaPrimaryKeys ( table  ) 

ADODB_db2::MetaForeignKeys ( table,
owner = FALSE,
upper = FALSE,
asociative = FALSE 
)

& ADODB_db2::MetaTables ( ttype = false,
schema = false 
)

ADODB_db2::DB2Types ( t  ) 

& ADODB_db2::MetaColumns ( table  ) 

ADODB_db2::Prepare ( sql  ) 

Should prepare the sql statement and return the stmt resource. For databases that do not support this, we return the $sql. To ensure compatibility with databases that do not support prepare:

$stmt = $db->Prepare("insert into table (id, name) values (?,?)"); $db->Execute($stmt,array(1,'Jill')) or die('insert failed'); $db->Execute($stmt,array(2,'Joe')) or die('insert failed');

Paramètres:
sql SQL to send to database
Renvoie:
return FALSE, or the prepared statement, or the original sql if if the database does not support prepare.

Réimplémentée à partir de ADOConnection.

ADODB_db2::_query ( sql,
inputarr = false 
)

ADODB_db2::UpdateBlob ( table,
column,
val,
where,
blobtype = 'BLOB' 
)

Update a blob column, given a where clause. There are more sophisticated blob handling functions that we could have implemented, but all require a very complex API. Instead we have chosen something that is extremely simple to understand and use.

Note: $blobtype supports 'BLOB' and 'CLOB', default is BLOB of course.

Usage to update a $blobvalue which has a primary key blob_id=1 into a field blobtable.blobcolumn:

UpdateBlob('blobtable', 'blobcolumn', $blobvalue, 'blob_id=1');

Insert example:

$conn->Execute('INSERT INTO blobtable (id, blobcol) VALUES (1, null)'); $conn->UpdateBlob('blobtable','blobcol',$blob,'id=1');

Réimplémentée à partir de ADOConnection.

ADODB_db2::_close (  ) 

ADODB_db2::_affectedrows (  ) 


Documentation des données membres

ADODB_db2::$databaseType = "db2"

Réimplémentée à partir de ADOConnection.

ADODB_db2::$fmtDate = "'Y-m-d'"

uppercase function

Réimplémentée à partir de ADOConnection.

ADODB_db2::$concat_operator = '||'

maximum size of blobs or large text fields (262144 = 256K)-- some db's die otherwise like foxpro

Réimplémentée à partir de ADOConnection.

ADODB_db2::$sysTime = 'CURRENT TIME'

ADODB_db2::$sysDate = 'CURRENT DATE'

Use 'true' to store the item compressed (uses zlib).

Réimplémentée à partir de ADOConnection.

ADODB_db2::$sysTimeStamp = 'CURRENT TIMESTAMP'

name of function that returns the current date

Réimplémentée à partir de ADOConnection.

ADODB_db2::$fmtTimeStamp = "'Y-m-d-H.i.s'"

used by DBDate() as the default date format used by the database

Réimplémentée à partir de ADOConnection.

ADODB_db2::$replaceQuote = "''"

string that represents FALSE for a database

Réimplémentée à partir de ADOConnection.

ADODB_db2::$dataProvider = "db2"

Réimplémentée à partir de ADOConnection.

ADODB_db2::$hasAffectedRows = true

supports autoincrement ID?

Réimplémentée à partir de ADOConnection.

ADODB_db2::$binmode = DB2_BINARY

ADODB_db2::$useFetchArray = false

ADODB_db2::$_bindInputArray = false

A boolean variable to state whether its a persistent connection or normal connection. */.

Réimplémentée à partir de ADOConnection.

ADODB_db2::$_genIDSQL = "VALUES NEXTVAL FOR %s"

ADODB_db2::$_genSeqSQL = "CREATE SEQUENCE %s START WITH 1 NO MAXVALUE NO CYCLE"

ADODB_db2::$_dropSeqSQL = "DROP SEQUENCE %s"

ADODB_db2::$_autocommit = true

ADODB_db2::$_haserrorfunctions = true

ADODB_db2::$_lastAffectedRows = 0

ADODB_db2::$uCaseTables = true

ADODB_db2::$hasInsertID = true

Réimplémentée à partir de ADOConnection.


La documentation de cette classe a été générée à partir du fichier suivant :
Généré le Fri Aug 31 11:39:42 2007 pour OBLADY - Typo3 API v4.1.2 par  doxygen 1.5.3