Java Doc for TransactionImpl.java in » EJB-Server-resin-3.1.5 » resin » com » caucho » transaction » Java Source Code / Java DocumentationJava Source Code and Java Documentation
Java Source Code / Java Documentation
1.
6.0 JDK Core
2.
6.0 JDK Modules
3.
6.0 JDK Modules com.sun
4.
6.0 JDK Modules com.sun.java
5.
6.0 JDK Modules sun
6.
6.0 JDK Platform
7.
Ajax
8.
Apache Harmony Java SE
9.
Aspect oriented
10.
Authentication Authorization
11.
Blogger System
12.
Build
13.
Byte Code
14.
Cache
15.
Chart
16.
Chat
17.
Code Analyzer
18.
Collaboration
19.
Content Management System
20.
Database Client
21.
Database DBMS
22.
Database JDBC Connection Pool
23.
Database ORM
24.
Development
25.
EJB Server geronimo
26.
EJB Server GlassFish
27.
EJB Server JBoss 4.2.1
28.
EJB Server resin 3.1.5
29.
ERP CRM Financial
30.
ESB
31.
Forum
32.
GIS
33.
Graphic Library
34.
Groupware
35.
HTML Parser
36.
IDE
37.
IDE Eclipse
38.
IDE Netbeans
39.
Installer
40.
Internationalization Localization
41.
Inversion of Control
42.
Issue Tracking
43.
J2EE
44.
JBoss
45.
JMS
46.
JMX
47.
Library
48.
Mail Clients
49.
Net
50.
Parser
51.
PDF
52.
Portal
53.
Profiler
54.
Project Management
55.
Report
56.
RSS RDF
57.
Rule Engine
58.
Science
59.
Scripting
60.
Search Engine
61.
Security
62.
Sevlet Container
63.
Source Control
64.
Swing Library
65.
Template Engine
66.
Test Coverage
67.
Testing
68.
UML
69.
Web Crawler
70.
Web Framework
71.
Web Mail
72.
Web Server
73.
Web Services
74.
Web Services apache cxf 2.0.1
75.
Web Services AXIS2
76.
Wiki Engine
77.
Workflow Engines
78.
XML
79.
XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation
»
EJB Server resin 3.1.5
»
resin
»
com.caucho.transaction
Source Cross Reference
Class Diagram
Java Document (Java Doc)
java.lang
.Object
com.caucho.transaction
.TransactionImpl
TransactionImpl
public
class TransactionImpl implements Transaction,AlarmListener
(Code)
Implementation of the transaction. Transactions are normally associated with a single thread.
Constructor Summary
TransactionImpl
(
TransactionManagerImpl
manager)
Creates a new transaction.
Method Summary
public
boolean
allowLocalTransactionOptimization
()
Returns true if the local transaction optimization would be allowed.
void
begin
()
Start a transaction.
public
void
close
()
Close the transaction, rolling back everything and removing all enlisted resources.
public
void
commit
()
Commit the transaction.
public
boolean
delistResource
(
XAResource
resource, int flag)
public
boolean
enlistResource
(
XAResource
resource)
Enlists a resource with the current transaction.
public
Object
getAttribute
(
String
var)
Gets an attribute.
public
int
getEnlistedResourceCount
()
Returns the current number of resources.
public
int
getStatus
()
public
int
getTransactionTimeout
()
public
Xid
getXid
()
public
void
handleAlarm
(Alarm alarm)
boolean
hasResources
()
Returns true if the transaction has any associated resources.
boolean
isDead
()
Returns true if the transaction is dead, i.e.
public
boolean
isEmpty
()
Return true if the transaction has no resources.
boolean
isSuspended
()
Returns true if the transaction is currently suspended.
public
void
registerSynchronization
(Synchronization sync)
void
resume
()
Resume the transaction and requeue the timeout.
public
void
rollback
()
Rollback the transaction.
public
void
setAttribute
(
String
var,
Object
value)
Adds an attribute.
public
void
setRollbackOnly
()
Force any completion to be a rollback.
public
void
setRollbackOnly
(
Throwable
exn)
Force any completion to be a rollback.
public
void
setTransactionTimeout
(int seconds)
public
void
setUserTransaction
(
UserTransactionImpl
ut)
Sets the user transaction.
void
suspend
()
Suspend the transaction.
public
String
toString
()
Printable version of the transaction.
Constructor Detail
TransactionImpl
TransactionImpl(
TransactionManagerImpl
manager)
(Code)
Creates a new transaction.
Parameters:
manager - the owning transaction manager
Method Detail
allowLocalTransactionOptimization
public
boolean allowLocalTransactionOptimization()
(Code)
Returns true if the local transaction optimization would be allowed.
begin
void begin() throws SystemException, NotSupportedException
(Code)
Start a transaction.
close
public
void close()
(Code)
Close the transaction, rolling back everything and removing all enlisted resources.
commit
public
void commit() throws RollbackException, HeuristicMixedException, HeuristicRollbackException, SystemException
(Code)
Commit the transaction.
delistResource
public
boolean delistResource(
XAResource
resource, int flag) throws SystemException
(Code)
delists a resource from the current transaction
Parameters:
resource - the resource to delist
Parameters:
flag - XXX: ??? true if successful
enlistResource
public
boolean enlistResource(
XAResource
resource) throws RollbackException, SystemException
(Code)
Enlists a resource with the current transaction. Example resources are database or JMS connections. true if successful
getAttribute
public
Object
getAttribute(
String
var)
(Code)
Gets an attribute.
getEnlistedResourceCount
public
int getEnlistedResourceCount()
(Code)
Returns the current number of resources.
getStatus
public
int getStatus()
(Code)
Returns the status of this transaction
getTransactionTimeout
public
int getTransactionTimeout() throws SystemException
(Code)
sets the timeout for the transaction
getXid
public
Xid
getXid()
(Code)
handleAlarm
public
void handleAlarm(Alarm alarm)
(Code)
hasResources
boolean hasResources()
(Code)
Returns true if the transaction has any associated resources.
isDead
boolean isDead()
(Code)
Returns true if the transaction is dead, i.e. failed for some reason.
isEmpty
public
boolean isEmpty()
(Code)
Return true if the transaction has no resources.
isSuspended
boolean isSuspended()
(Code)
Returns true if the transaction is currently suspended.
registerSynchronization
public
void registerSynchronization(Synchronization sync)
(Code)
Register a synchronization callback
resume
void resume() throws SystemException
(Code)
Resume the transaction and requeue the timeout.
rollback
public
void rollback()
(Code)
Rollback the transaction.
setAttribute
public
void setAttribute(
String
var,
Object
value)
(Code)
Adds an attribute.
setRollbackOnly
public
void setRollbackOnly() throws SystemException
(Code)
Force any completion to be a rollback.
setRollbackOnly
public
void setRollbackOnly(
Throwable
exn)
(Code)
Force any completion to be a rollback.
setTransactionTimeout
public
void setTransactionTimeout(int seconds) throws SystemException
(Code)
sets the timeout for the transaction
setUserTransaction
public
void setUserTransaction(
UserTransactionImpl
ut)
(Code)
Sets the user transaction.
suspend
void suspend() throws SystemException
(Code)
Suspend the transaction. The timeouts are stopped.
toString
public
String
toString()
(Code)
Printable version of the transaction.
Methods inherited from
java.lang.Object
native
protected
Object
clone() throws
CloneNotSupportedException
(Code)
(Java Doc)
public
boolean equals(
Object
obj)
(Code)
(Java Doc)
protected
void finalize() throws
Throwable
(Code)
(Java Doc)
final native
public
Class
> getClass()
(Code)
(Java Doc)
native
public
int hashCode()
(Code)
(Java Doc)
final native
public
void notify()
(Code)
(Java Doc)
final native
public
void notifyAll()
(Code)
(Java Doc)
public
String
toString()
(Code)
(Java Doc)
final native
public
void wait(long timeout) throws
InterruptedException
(Code)
(Java Doc)
final
public
void wait(long timeout, int nanos) throws
InterruptedException
(Code)
(Java Doc)
final
public
void wait() throws
InterruptedException
(Code)
(Java Doc)
www.java2java.com
|
Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.