Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  * Firebird Open Source J2ee connector - jdbc driver, public Firebird-specific 
  * JDBC extensions.
  * Redistribution and use in source and binary forms, with or without 
  * modification, are permitted provided that the following conditions are met:
  *    1. Redistributions of source code must retain the above copyright notice, 
  *       this list of conditions and the following disclaimer.
  *    2. Redistributions in binary form must reproduce the above copyright 
 *       notice, this list of conditions and the following disclaimer in the 
 *       documentation and/or other materials provided with the distribution. 
 *    3. The name of the author may not be used to endorse or promote products 
 *       derived from this software without specific prior written permission.
package org.firebirdsql.jca;
Extention of the javax.resource.spi.LocalTransaction interface to tell whether the underlying managed connection is currently participating in some transaction or not and to obtain the associated Xid.
public interface FirebirdLocalTransaction extends LocalTransaction {

Check if managed connection is currently participating in transaction.

true if managed connection is participating in transaction.
javax.resource.ResourceException if operation cannot be completed.
    boolean inTransaction() throws ResourceException;
Get the associated Xid.

instance of javax.transaction.xa.Xid representing a transaction ID that is managed by this local transaction.
    Xid getXid();
New to GrepCode? Check out our FAQ X