API Documentação da API
Lançado Adianti Framework 7.6!
Clique aqui para saber mais
Pacote Dominando o Adianti 7
Curso + Livro + Apps exemplo
Curso completo em Video Aulas (114 aulas).
Livro completo em PDF (463 páginas).
Códigos-fontes de Apps de exemplo.
API
API do Framework
Documentation

Documentation

TTransaction
in package

Manage Database transactions

Tags
version
7.6
author

Pablo Dall'Oglio

copyright

Copyright (c) 2006 Adianti Solutions Ltd. (http://www.adianti.com.br)

license

https://adiantiframework.com.br/license

Table of Contents

Properties

$conn  : mixed
$counter  : mixed
$database  : mixed
$dbinfo  : mixed
$logger  : mixed
$uniqid  : mixed

Methods

close()  : mixed
Commit all the pending operations
closeAll()  : mixed
close all transactions
dump()  : mixed
Enable transaction log
get()  : PDO
Returns the current active connection
getDatabase()  : mixed
Return the Database Name
getDatabaseInfo()  : mixed
Returns the Database Information
getUniqId()  : mixed
Returns the Transaction uniqid
log()  : mixed
Write a message in the LOG file, using the user strategy
open()  : mixed
Open a connection and Initiates a transaction
openFake()  : mixed
Open fake transaction
rollback()  : mixed
Rollback all pending operations
rollbackAll()  : mixed
rollback all transactions
setLogger()  : mixed
Assign a Logger strategy
setLoggerFunction()  : mixed
Assign a Logger closure function
__construct()  : mixed
Class Constructor There won't be instances of this class

Properties

Methods

close()

Commit all the pending operations

public static close() : mixed

closeAll()

close all transactions

public static closeAll() : mixed

dump()

Enable transaction log

public static dump([mixed $file = null ]) : mixed
Parameters
$file : mixed = null

get()

Returns the current active connection

public static get() : PDO
Return values
PDO

getDatabase()

Return the Database Name

public static getDatabase() : mixed

getDatabaseInfo()

Returns the Database Information

public static getDatabaseInfo() : mixed

getUniqId()

Returns the Transaction uniqid

public static getUniqId() : mixed

log()

Write a message in the LOG file, using the user strategy

public static log( $message) : mixed
Parameters
$message :

Message to be logged

open()

Open a connection and Initiates a transaction

public static open( $database[,  $dbinfo = NULL ]) : mixed
Parameters
$database :

Name of the database (an INI file).

$dbinfo : = NULL

Optional array with database information

openFake()

Open fake transaction

public static openFake( $database) : mixed
Parameters
$database :

Name of the database (an INI file).

rollback()

Rollback all pending operations

public static rollback() : mixed

rollbackAll()

rollback all transactions

public static rollbackAll() : mixed

setLogger()

Assign a Logger strategy

public static setLogger([ $logger = null ]) : mixed
Parameters
$logger : = null

A TLogger child object

setLoggerFunction()

Assign a Logger closure function

public static setLoggerFunction( $logger) : mixed
Parameters
$logger :

A Closure

__construct()

Class Constructor There won't be instances of this class

private __construct() : mixed

        
On this page

Search results