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

JDBCResourceMdl

public class JDBCResourceMdl extends J2EEResourceMdl

Fields Summary
private static String
MANAGED_OBJECT_TYPE
Constructors Summary
public JDBCResourceMdl(String name)

        
       
        super(name);
    
public JDBCResourceMdl(String name, String serverName)

        super(name,serverName);
    
public JDBCResourceMdl(String[] location)

        this(location[2], location[1]);
    
Methods Summary
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.String[]getjdbcDataSources()


        Set s = findNames("j2eeType=JDBCDataSource,JDBCResource="+getname());
        Iterator it = s.iterator();
        String [] ret = new String[s.size()];
        int i =0;
        while(it.hasNext()) {
            ret[i++] = ((ObjectName)it.next()).toString();
        }
        return ret;