FileDocCategorySizeDatePackage
JCAConnectionFactoryMdl.javaAPI DocGlassfish v2 API4464Fri May 04 22:24:16 BST 2007com.sun.enterprise.management.model

JCAConnectionFactoryMdl

public class JCAConnectionFactoryMdl extends J2EEManagedObjectMdl

Fields Summary
private static String
MANAGED_OBJECT_TYPE
private String
jcaResourceName
private String
jcaConnectionFactoryName
private String
managedConnFactory
Constructors Summary
public JCAConnectionFactoryMdl(String jcaResName, String jcaConnFactName, String managedConFact)
Creates new JCAConnectionFactoryMdl

        
           
        super(jcaConnFactName,false,false,false);
        this.jcaResourceName = jcaResName;
        this.jcaConnectionFactoryName = jcaConnFactName;
        this.managedConnFactory = managedConFact;
    
public JCAConnectionFactoryMdl(String jcaResName, String serverName, String jcaConnFactName, String managedConFact)

        super(jcaConnFactName,serverName, false,false,false);
        this.jcaResourceName = jcaResName;
        this.jcaConnectionFactoryName = jcaConnFactName;
        this.managedConnFactory = managedConFact;
    
Methods Summary
public java.lang.StringgetJCAResource()

        return this.jcaResourceName;
    
public java.lang.Stringgetj2eeType()
The type of the J2EEManagedObject as specified by JSR77. The class that implements a specific type must override this method and return the appropriate type string.

        return MANAGED_OBJECT_TYPE;
    
public java.lang.StringgetmanagedConnectionFactory()
The name of the J2EEManagedObject. All managed objects must have a unique name within the context of the management domain. The name must not be null.

        Set s = findNames("j2eeType=JCAManagedConnectionFactory,name=" + this.managedConnFactory + ",J2EEServer="+this.getJ2EEServer());
        Object [] objs = s.toArray();
        if (objs.length > 0) {
        	String name = ((ObjectName)objs[0]).toString();
        	return name;
        } else {
            return null;
        }