FileDocCategorySizeDatePackage
PoolMetaData.javaAPI DocGlassfish v2 API5486Fri May 04 22:34:24 BST 2007com.sun.enterprise.connectors

PoolMetaData

public class PoolMetaData extends Object
Information about the ConnectorConnectionPool. Stored inofrmation is: 1. Default Subject 2. MCF Instance 3. Password, UserName 4. The transaction-support attribute level in case of connector connection pools 5. The allow-non-component-callers, non-trasnactional-connections attribs for jdbc connection pools
author
Binod P.G., Aditya Gore
version

Fields Summary
private javax.resource.spi.ManagedConnectionFactory
mcf
private String
poolName
private Subject
subj
private com.sun.enterprise.deployment.ResourcePrincipal
prin_
private int
txSupport_
private boolean
isPM_
private boolean
isNonTx_
private com.sun.enterprise.connectors.authentication.RuntimeSecurityMap
runtimeSecurityMap
private boolean
lazyEnlistable_
private boolean
lazyAssoc_
private boolean
isAuthCredentialsDefinedInPool_
Constructors Summary
public PoolMetaData(String poolName, javax.resource.spi.ManagedConnectionFactory mcf, Subject s, int txSupport, com.sun.enterprise.deployment.ResourcePrincipal prin, boolean isPM, boolean isNonTx, boolean lazyEnlistable, com.sun.enterprise.connectors.authentication.RuntimeSecurityMap runtimeSecurityMap, boolean lazyAssoc)

    
         
                        
                        
                       
        this.poolName = poolName;
	this.mcf = mcf;
	this.subj = s;
	txSupport_ = txSupport;
	prin_ = prin;
        isPM_ = isPM;
        isNonTx_ = isNonTx;
        lazyEnlistable_ = lazyEnlistable;
        lazyAssoc_ = lazyAssoc;
        this.runtimeSecurityMap = runtimeSecurityMap;
    
Methods Summary
public javax.resource.spi.ManagedConnectionFactorygetMCF()

        return this.mcf;
    
public com.sun.enterprise.deployment.ResourcePrincipalgetResourcePrincipal()

        return prin_;
    
public com.sun.enterprise.connectors.authentication.RuntimeSecurityMapgetRuntimeSecurityMap()

    	return this.runtimeSecurityMap;
    
public javax.security.auth.SubjectgetSubject()

        return this.subj;
    
public intgetTransactionSupport()

        return txSupport_;
    
public booleanisAuthCredentialsDefinedInPool()

        return this.isAuthCredentialsDefinedInPool_;
    
public booleanisLazyAssociatable()

        return lazyAssoc_;
    
public booleanisLazyEnlistable()

        return lazyEnlistable_;
    
public booleanisNonTx()

        return isNonTx_;
    
public booleanisPM()

        return isPM_;
    
public voidsetAuthCredentialsDefinedInPool(boolean authCred)

        this.isAuthCredentialsDefinedInPool_ = authCred;
    
public voidsetIsNonTx(boolean flag)

        isNonTx_ = flag;
    
public voidsetIsPM(boolean flag)

        isPM_ = flag;
    
public voidsetLazyAssoc(boolean flag)

        lazyAssoc_ = flag;
    
public voidsetLazyEnlistable(boolean flag)

        lazyEnlistable_ = flag;
    
public java.lang.StringtoString()

        StringBuffer sb = new StringBuffer("PoolMetaData : " + poolName );
        sb.append( "\ntxSupport => " + txSupport_ );
        sb.append( "\nisPM_     => " + isPM_ );
        sb.append( "\nisNonTx_  => " + isNonTx_ );
        sb.append( "\nisLazyEnlistable_  => " + lazyEnlistable_ );
        sb.append( "\nisLazyAssociatable  => " + lazyAssoc_ );
        sb.append( "\nsecurityMap => " + runtimeSecurityMap.toString());
        return sb.toString();