FeaturesPluginsDocs & SupportCommunityPartners

org.netbeans.modules.jackpot/2 2 1

org.netbeans.spi.jackpot
Interface QueryProvider


public interface QueryProvider

The interface Jackpot uses to request Query instances from script engines.


Method Summary
 Query getQuery(org.openide.filesystems.FileObject script, String queryDescription)
          Return the Jackpot Query associated with a specified script.
 boolean hasQuery(org.openide.filesystems.FileObject script)
          Returns whether this QueryProvider can return a Query instance which is associated with this script.
 

Method Detail

hasQuery

boolean hasQuery(org.openide.filesystems.FileObject script)
Returns whether this QueryProvider can return a Query instance which is associated with this script. This method only determines whether creating a script is possible, such as that it recognizes the file type, but does not guarantee that no exceptions are thrown creating the Query.

Parameters:
script - the file to test
Returns:
true if a Query can be created from this script.

getQuery

Query getQuery(org.openide.filesystems.FileObject script,
               String queryDescription)
               throws Exception
Return the Jackpot Query associated with a specified script.

Parameters:
script - the script from which a Query class is defined.
queryDescription - a short description of the query, as shown in the Jackpot UI. This string is useful when reporting any errors creating or executing the query.
Returns:
a Query instance associated with this script.
Throws:
Exception - if there are any problems creating the query.

org.netbeans.modules.jackpot/2 2 1

Built on April 6 2007.  |  Portions Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.
Companion
Projects:
MySQL Database Server   Open JDK: an Open SourceJDK   GlassFish Community: an Open Source Application Server    Mobile & Embedded Community    Open Solaris   java.net - The Source for Java Technology Collaboration   Virtual Box - full virtualizer  Open ESB - The Open Enterprise Service Bus Powered by