Package org.jmanage.connector.plugin.oracle.mbean

Source Code of org.jmanage.connector.plugin.oracle.mbean.Parameters

/**
* jManage - Open Source Application Management
* Copyright (C) 2006 jManage.org.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
* GNU General Public License version 2 for more details.
*/
package org.jmanage.connector.plugin.oracle.mbean;

import java.util.logging.Logger;

import javax.management.openmbean.TabularData;

import org.jmanage.connector.plugin.oracle.DataAccessor;
import org.jmanage.core.util.Loggers;

/**
*
* @author Rakesh Kalra
*/
public class Parameters {

    private static final Logger logger = Loggers.getLogger(Parameters.class);

    private static final String SQL =
            "select name, value, isdefault, isses_modifiable, issys_modifiable " +
            "from v$parameter order by name";

    public TabularData getParameters() {
        try {
            return new DataAccessor(SQL).execute().getTabularData();
        }
        catch (Exception e) {
            logger.severe("Error getting v$parameter info. error: " + e.getMessage());
            return null;
        }
    }
}
TOP

Related Classes of org.jmanage.connector.plugin.oracle.mbean.Parameters

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.