QueryExp.java revision 2362
1007N/A * Copyright (c) 1999, 2008, Oracle and/or its affiliates. All rights reserved. 1007N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 1007N/A * This code is free software; you can redistribute it and/or modify it 1007N/A * under the terms of the GNU General Public License version 2 only, as 1007N/A * published by the Free Software Foundation. Oracle designates this 1007N/A * particular file as subject to the "Classpath" exception as provided 1007N/A * by Oracle in the LICENSE file that accompanied this code. 1007N/A * This code is distributed in the hope that it will be useful, but WITHOUT 1007N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 1007N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 1007N/A * version 2 for more details (a copy is included in the LICENSE file that 1007N/A * You should have received a copy of the GNU General Public License version 1007N/A * 2 along with this work; if not, write to the Free Software Foundation, 1472N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 1472N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 1007N/A * or visit www.oracle.com if you need additional information or have any 1007N/A * <p>Represents relational constraints similar to database query "where 1007N/A * clauses". Instances of QueryExp are returned by the static methods of the 1007N/A * <p>It is possible, but not 1007N/A * recommended, to create custom queries by implementing this 1007N/A * interface. In that case, it is better to extend the {@link 1007N/A * QueryEval} class than to implement the interface directly, so that 1007N/A * the {@link #setMBeanServer} method works correctly. 1007N/A * @see MBeanServer#queryNames MBeanServer.queryNames 1007N/A * Applies the QueryExp on an MBean. 1007N/A * @param name The name of the MBean on which the QueryExp will be applied. 1007N/A * @return True if the query was successfully applied to the MBean, false otherwise 1007N/A * @exception BadStringOperationException 1007N/A * @exception BadBinaryOpValueExpException 1007N/A * @exception BadAttributeValueExpException 1007N/A * @exception InvalidApplicationException 1007N/A * Sets the MBean server on which the query is to be performed. 1007N/A * @param s The MBean server on which the query is to be performed.