Style Intelligence v12.0

inetsoft.uql
Interface XQueryRepository

All Known Subinterfaces:
XLocalQueryRepository, XRepository
All Known Implementing Classes:
BeanSheet, CompositeSheet, MetaStyleSheet, MetaTabularSheet, ParameterSheet, RemoteEngine, ReportSheet, StyleSheet, TabularSheet, XEngine

public interface XQueryRepository

Query repository contains query objects.


Field Summary
static int GLOBAL_SCOPE
          Global scope.
static int LOCAL_QUERY
          Local query repository.
static int LOCAL_SCOPE
          Local scope
static int NORMAL_QUERY
          Normal query repository.
 
Method Summary
 Enumeration getQueries()
          Get all the queries.
 XQuery getQuery(String name)
          Get a query matches a query name.
 int getQueryType()
          Get query type in the query repository.
 void removeQuery(String qname)
          Remove a query from the repository.
 void updateQuery(XQuery dx, String oname)
          Add or replace a query in the query repository.
 

Field Detail

NORMAL_QUERY

static final int NORMAL_QUERY
Normal query repository.

See Also:
Constant Field Values

LOCAL_QUERY

static final int LOCAL_QUERY
Local query repository.

See Also:
Constant Field Values

GLOBAL_SCOPE

static final int GLOBAL_SCOPE
Global scope.

See Also:
Constant Field Values

LOCAL_SCOPE

static final int LOCAL_SCOPE
Local scope

See Also:
Constant Field Values
Method Detail

getQueryType

int getQueryType()
Get query type in the query repository.

Returns:
query type which is one of the predefined types in query repository.

getQuery

XQuery getQuery(String name)
                throws Exception
Get a query matches a query name.

Parameters:
name - the specified query name.
Returns:
query matches the specified query name.
Throws:
Exception

getQueries

Enumeration getQueries()
                       throws Exception
Get all the queries.

Returns:
all the queries.
Throws:
Exception

updateQuery

void updateQuery(XQuery dx,
                 String oname)
                 throws Exception
Add or replace a query in the query repository.

Parameters:
dx - new query.
oname - old name of the query, if the name has been changed. Otherwise it should be null.
Throws:
Exception

removeQuery

void removeQuery(String qname)
                 throws Exception
Remove a query from the repository.

Throws:
Exception

Copyright © 1996-2014 InetSoft Technology Corp. All Rights Reserved.