public class EntityTransaction:
Transaction de base de données.
em = emf.createEntityManager() em.begin() em.commit()
| Modifier and Type | Member | Description |
|---|---|---|
| public | EntityTransactionEntityTransaction(connection as klyn.databases.sql.Connection): |
No summary. |
| Modifier and Type | Member | Description |
|---|---|---|
| public | beginbegin() as Void: |
Starts the database transaction by disabling auto-commit. |
| public | commitcommit() as Void: |
Commits the database transaction and restores auto-commit. |
| public | isActiveisActive() as Boolean: |
Returns true while the transaction is active. |
| public | rollbackrollback() as Void: |
Rolls back the database transaction and restores auto-commit. |