FileDocCategorySizeDatePackage
TransactionRef.javaAPI DocGlassfish v2 API4023Fri May 04 22:33:00 BST 2007org.apache.naming

TransactionRef

public class TransactionRef extends Reference
Represents a reference address to a transaction.
author
Remy Maucherat
version
$Revision: 1.3 $ $Date: 2007/05/05 05:32:59 $

Fields Summary
public static final String
DEFAULT_FACTORY
Default factory for this reference.
Constructors Summary
public TransactionRef()
Resource Reference.

param
resourceClass Resource class
param
scope Resource scope
param
auth Resource authetication



    // ----------------------------------------------------------- Constructors


                        
      
        this(null, null);
    
public TransactionRef(String factory, String factoryLocation)
Resource Reference.

param
resourceClass Resource class
param
scope Resource scope
param
auth Resource authetication

        super("javax.transaction.UserTransaction", factory, factoryLocation);
    
Methods Summary
public java.lang.StringgetFactoryClassName()
Retrieves the class name of the factory of the object to which this reference refers.

        String factory = super.getFactoryClassName();
        if (factory != null) {
            return factory;
        } else {
            factory = System.getProperty(Context.OBJECT_FACTORIES);
            if (factory != null) {
                return null;
            } else {
                return DEFAULT_FACTORY;
            }
        }