|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjet.api.API
jet.api.CatalogAPI
jet.api.MultiUserCatalogAPI
public class MultiUserCatalogAPI
MultiUserCatalogAPI class provides methods to manipulate the catalog objects.
By building a MultiUserCatalogAPI instance in a Java program, several users can edit one catalog at the same time.
In MultiUserCatalogAPI, users can share public resources and hold private resources which can not be accessed by other users until they are published to public resources.
Uses userID to identify users and protect the private data objects.
* Below is an example of the use of the MultiUserCatalogAPI.
MultiUserDesigner mudr = null;
try
{
String path = %install root%/JReport/demo/reports/SampleReports/;
String catName = "SampleReports.cat";
String uID = "user1";
DesignerUserInfo userInfo=new DesignerUserInfo("UID", "license key");
mudr = new MultiUserDesigner(path, catName, userInfo);
MultiUserCatalogAPI mucat = mudr.getCatalogAPI();
String[] parameters = mucat.getParameter(uID);
}
catch(Exception e)
{
;
}
finally
{
mudr.exit();
}
| Field Summary |
|---|
| Fields inherited from class jet.api.API |
|---|
CAT, CENTIMETER, COLOR, DOUBLE, ENUM, FLOAT, INCH, LONG, PIXEL, REFERENCE, RPT, SELFRPT, TEXTRPT, UNKNOWN, XMLCAT, XMLRPT |
| Method Summary | |
|---|---|
boolean |
delete(java.lang.String qryName,
java.lang.String tableFrom,
java.lang.String columnFrom,
java.lang.String operator,
java.lang.String tableTo,
java.lang.String columnTo,
java.lang.String uID)
Deletes the join from the query. |
boolean |
delete(java.lang.String dataSourceName,
java.lang.String qryName,
java.lang.String tableFrom,
java.lang.String columnFrom,
java.lang.String operator,
java.lang.String tableTo,
java.lang.String columnTo,
java.lang.String uID)
Deletes the join in the query. |
boolean |
deleteAND(java.lang.String qryName,
java.lang.String sExpression1,
java.lang.String sOperator,
java.lang.String sExpression2,
java.lang.String sLogic,
java.lang.String uID)
Deletes where conditions in the query. |
boolean |
deleteAND(java.lang.String dataSourceName,
java.lang.String qryName,
java.lang.String sExpression1,
java.lang.String sOperator,
java.lang.String sExpression2,
java.lang.String sLogic,
java.lang.String uID)
Deletes where conditions in the query. |
boolean |
deleteColumn(java.lang.String qryName,
java.lang.String tablename,
java.lang.String columnname,
java.lang.String uID)
Deletes the field from the query. |
boolean |
deleteColumn(java.lang.String dataSourceName,
java.lang.String qryName,
java.lang.String tablename,
java.lang.String columnname,
java.lang.String uID)
Deletes the field from the query. |
boolean |
deleteCompCol(java.lang.String qryName,
java.lang.String columnName,
java.lang.String uID)
delete a computed column into query. |
boolean |
deleteCompCol(java.lang.String dataSourceName,
java.lang.String qryName,
java.lang.String columnName,
java.lang.String uID)
delete a computed column into query. |
boolean |
deleteQBE(java.lang.String qryName,
java.lang.String tablename,
java.lang.String columnname,
java.lang.String expression,
java.lang.String uID)
Deletes the QBE condition in the query. |
boolean |
deleteQBE(java.lang.String dataSourceName,
java.lang.String qryName,
java.lang.String tablename,
java.lang.String columnname,
java.lang.String expression,
java.lang.String uID)
Deletes the QBE condition in the query. |
boolean |
deleteQuery(java.lang.String qryName,
java.lang.String uID)
Deletes the query from the default data source. |
boolean |
deleteQuery(java.lang.String dataSourceName,
java.lang.String qryName,
java.lang.String uID)
Deletes the query from the specified data source of the catalog. |
boolean |
deleteTable(java.lang.String qryName,
java.lang.String tablename,
java.lang.String uID)
Deletes the table from the query. |
boolean |
deleteTable(java.lang.String dataSourceName,
java.lang.String qryName,
java.lang.String tablename,
java.lang.String uID)
Deletes the table from the query. |
java.lang.String[][] |
getAndConditions(java.lang.String queryName,
java.lang.String uID)
Gets "AND" conditions in the query |
java.lang.String[][] |
getAndConditions(java.lang.String dataSourceName,
java.lang.String queryName,
java.lang.String uID)
Gets "AND" conditions in the query |
java.lang.String[] |
getChartFunctions(java.lang.String queryName,
java.lang.String groupBy,
java.lang.String uID)
Gets formulas and summaries which are valid to the query and are grouped on this field. |
java.lang.String[] |
getChartFunctions(java.lang.String dataSourceName,
java.lang.String queryName,
java.lang.String groupBy,
java.lang.String uID)
Gets formulas and summaries which are valid to the query and are grouped on this field. |
java.lang.String[] |
getColumnMappingnames(java.lang.String queryName,
java.lang.String uID)
Gets column mapping names in the query |
java.lang.String[] |
getColumnMappingnames(java.lang.String dataSourceName,
java.lang.String queryName,
java.lang.String uID)
Gets column mapping names in the query |
QueryTableInfo |
getColumns(java.lang.String queryName,
boolean allColumns,
java.lang.String uID)
Gets definitions of all tables and columns in the query. |
QueryTableInfo |
getColumns(java.lang.String dataSourceName,
java.lang.String queryName,
boolean allColumns,
java.lang.String uID)
Gets definitions of all tables and columns in the query. |
QueryTableInfo |
getColumnsCanBeGroupedBy(java.lang.String queryName,
java.lang.String uID)
Gets columns which can be groupby in the query |
QueryTableInfo |
getColumnsCanBeGroupedBy(java.lang.String dataSourceName,
java.lang.String queryName,
java.lang.String uID)
Gets columns which can be groupby in the query |
java.lang.String[] |
getCompColumns(java.lang.String queryName,
java.lang.String uID)
Gets all mapping names of the computed columns in the query. |
java.lang.String[] |
getCompColumns(java.lang.String dataSourceName,
java.lang.String queryName,
java.lang.String uID)
Gets all mapping names of the computed columns in the query. |
java.lang.String[] |
getDBFields(java.lang.String qryName,
java.lang.String uID)
Gets mapping names of DBField that are defined in the query of the default data source. |
java.lang.String[] |
getDBFields(java.lang.String dataSourceName,
java.lang.String qryName,
java.lang.String uID)
Gets mapping names of DBFields that are defined in the query of the specified data source. |
java.lang.String[] |
getFmlCanBeGroupedBy(java.lang.String queryName,
java.lang.String uID)
Gets formulas which are valid to query and can be grouped on |
java.lang.String[] |
getFmlCanBeGroupedBy(java.lang.String dataSourceName,
java.lang.String queryName,
java.lang.String uID)
Gets formulas which are valid to query and can be grouped on |
java.lang.String[] |
getFormulae(java.lang.String uID)
Gets all formulas' mapping names that are defined in the default data source. |
java.lang.String[] |
getFormulae(java.lang.String dataSourceName,
java.lang.String uID)
Gets all formulas' mapping names that are defined in the specified data source. |
java.lang.String[] |
getFormulaeCanBeGroupedBy(java.lang.String queryName,
java.lang.String groupBy,
java.lang.String uID)
Gets formulas which are valid to query |
java.lang.String[] |
getFormulaeCanBeGroupedBy(java.lang.String dataSourceName,
java.lang.String queryName,
java.lang.String groupBy,
java.lang.String uID)
Gets formulas which are valid to query |
java.lang.String[] |
getFormulaeForQuery(java.lang.String queryName,
java.lang.String uID)
Gets formulas which are valid to query |
java.lang.String[] |
getFormulaeForQuery(java.lang.String dataSourceName,
java.lang.String queryName,
java.lang.String uID)
Gets formulas which are valid to query |
java.lang.String |
getHandle(java.lang.String resourceName,
int type,
java.lang.String uID)
get the object handle |
java.lang.String |
getHandle(java.lang.String resourceName,
java.lang.String uID)
get the object handle |
java.lang.String |
getHandle(java.lang.String dataSourceName,
java.lang.String resourceName,
int type,
java.lang.String uID)
Gets the handle of an object according to the object's mapping name and object type in the specified data source in JReport catalog, which can identify the object in the catalog. |
java.lang.String |
getHandle(java.lang.String dataSourceName,
java.lang.String resourceName,
java.lang.String uID)
get the object handle |
java.lang.String[][] |
getJoins(java.lang.String queryName,
java.lang.String uID)
Gets joins in the query |
java.lang.String[][] |
getJoins(java.lang.String dataSourceName,
java.lang.String queryName,
java.lang.String uID)
Gets joins in the query |
java.lang.String |
getNewFormulaName(java.lang.String uID)
Gets the default mapping name for the Formula to be created in the current catalog, which must be unique. |
java.lang.String |
getNewFormulaName(java.lang.String dataSourceName,
java.lang.String uID)
Gets the default Formula name for the Formula to be created in the current catalog, which must be unique. |
java.lang.String |
getNewParameterName(java.lang.String uID)
Gets the default Parameter name for the Parameter to be created in the current catalog, which must be unique. |
java.lang.String |
getNewParameterName(java.lang.String dataSourceName,
java.lang.String uID)
Gets the default mapping name for the new parameter in the current catalog, which must be unique. |
java.lang.String |
getNewSummaryName(java.lang.String uID)
Gets the default mapping name for the Summary to be created in the current catalog, which must be unique. |
java.lang.String |
getNewSummaryName(java.lang.String dataSourceName,
java.lang.String uID)
Gets the default mapping name for the Summary to be created in the current catalog, which must be unique. |
java.lang.String[] |
getParameter(java.lang.String uID)
Gets all mapping names of Parameters in the default data source. |
java.lang.String[] |
getParameter(java.lang.String dataSourceName,
java.lang.String uID)
Gets all mapping names of Parameters in the specified data source. |
java.lang.String[] |
getParameterCanBeGroupedBy(java.lang.String uID)
Gets parameters which can be grouped by |
java.lang.String[] |
getParameterCanBeGroupedBy(java.lang.String dataSourceName,
java.lang.String uID)
Gets parameters which can be grouped by |
java.lang.String[][] |
getQBEInfo(java.lang.String queryName,
java.lang.String uID)
Gets QBE information in the query |
java.lang.String[][] |
getQBEInfo(java.lang.String dataSourceName,
java.lang.String queryName,
java.lang.String uID)
Gets QBE information in the query |
java.lang.String[] |
getQueries(java.lang.String uID)
Gets all mapping names of Queries in the default data source. |
java.lang.String[] |
getQueries(java.lang.String dataSourceName,
java.lang.String uID)
Gets all mapping names of Queries in the default data source. |
java.lang.String[] |
getSQLs(java.lang.String uID)
Gets all mapping names of Imported SQL queries in the default data source. |
java.lang.String[] |
getSQLs(java.lang.String dataSourceName,
java.lang.String uID)
Gets all mapping names of Imported SQL queries in the specified data source. |
java.lang.String[] |
getSummaries(java.lang.String uID)
Gets all summaries mapping names that are defined in the specified data source. |
java.lang.String[] |
getSummaries(java.lang.String dataSourceName,
java.lang.String uID)
Gets all summaries mapping names that are defined in the specified data source. |
java.lang.String[] |
getSummariesForQuery(java.lang.String queryName,
java.lang.String uID)
Gets Summaries which are valid to query |
java.lang.String[] |
getSummariesForQuery(java.lang.String dataSourceName,
java.lang.String queryName,
java.lang.String uID)
Gets Summaries which are valid to query |
java.lang.String[] |
getSummaryCanBeSortedBy(java.lang.String queryName,
java.lang.String groupBy,
java.lang.String uID)
Gets summary which can be sorted by |
java.lang.String[] |
getSummaryCanBeSortedBy(java.lang.String dataSourceName,
java.lang.String queryName,
java.lang.String groupBy,
java.lang.String uID)
Gets summary which can be sorted by |
java.lang.String[] |
getTables(java.lang.String uID)
Gets all mapping names of Tables in the default data source. |
java.lang.String[] |
getTables(java.lang.String dataSourceName,
java.lang.String uID)
Gets all mapping names of Tables in the specified data source. |
java.lang.String[] |
getUDSs(java.lang.String uID)
Gets all mapping names of UDSs in the default data source. |
java.lang.String[] |
getUDSs(java.lang.String dataSourceName,
java.lang.String uID)
Gets all mapping names of UDSs in the default data source. |
java.lang.String |
insert(java.lang.String name,
int type,
java.lang.String uID)
Adds a resource entity into the catalog. |
java.lang.String |
insert(java.lang.String qryName,
QueryFieldInfo queryFieldInfo,
QueryJoinInfo queryJoinInfo,
QueryQBEInfo queryQBEInfo,
QueryAndInfo queryAndInfo,
java.lang.String uID)
Inserts a query into the catalog. |
java.lang.String |
insert(java.lang.String dataSourceName,
java.lang.String name,
int type,
java.lang.String uID)
Adds a resource entity into a specified data source in the catalog. |
java.lang.String |
insert(java.lang.String dataSourceName,
java.lang.String qryName,
QueryFieldInfo queryFieldInfo,
QueryJoinInfo queryJoinInfo,
QueryQBEInfo queryQBEInfo,
QueryAndInfo queryAndInfo,
java.lang.String uID)
Inserts a query into the catalog. |
java.lang.String |
insertCompCol(java.lang.String qryName,
java.lang.String columnName,
java.lang.String sExpression,
java.lang.String uID)
Inserts a computed column into query. |
java.lang.String |
insertCompCol(java.lang.String dataSourceName,
java.lang.String qryName,
java.lang.String columnName,
java.lang.String sExpression,
java.lang.String uID)
Inserts a computed column into query. |
java.lang.String |
insertSql(java.lang.String dataSourceName,
java.lang.String SQLName,
java.lang.String filename,
java.lang.String uID)
Imports an SQL file |
boolean |
isModified()
whether the catalog was modified |
java.lang.String |
rename(java.lang.String resourceName,
java.lang.String newName,
int type,
java.lang.String uID)
Renames the mapping name of the specified object. |
java.lang.String |
rename(java.lang.String dataSourceName,
java.lang.String resourceName,
java.lang.String newName,
int type,
java.lang.String uID)
Renames the mapping name of the specified object. |
boolean |
save(java.lang.String uID)
Saves all private objects of the specified user to the public resource (catalog). |
boolean |
save(java.lang.String handle,
java.lang.String uID)
Only saves the specified private data object of the specified user to the public resource (the default data source of the catalog). |
boolean |
save(java.lang.String dataSource,
java.lang.String handle,
java.lang.String uID)
Only saves the specified private data object of the specified user to the public resource (catalog). |
boolean |
saveCatalog(java.lang.String uID,
java.lang.String dataSource)
Saves the private data objects of the specified user to the public resource (catalog). |
boolean |
set(java.lang.String handle,
FormulaInfo info,
java.lang.String uID)
Sets the Formula's information. |
boolean |
set(java.lang.String qryName,
java.lang.String tablename,
boolean selectAllFields,
java.lang.String uID)
Adds a new table into the query. |
boolean |
set(java.lang.String qryName,
java.lang.String tablename,
java.lang.String columnname,
boolean isFormula,
java.lang.String uID)
Adds a new table's field into the query of the default data source. |
boolean |
set(java.lang.String dataSourceName,
java.lang.String qryName,
java.lang.String tablename,
java.lang.String columnname,
boolean isFormula,
java.lang.String uID)
Adds a new table's field into the query of the specified data source. |
boolean |
set(java.lang.String qryName,
java.lang.String tableFrom,
java.lang.String columnFrom,
java.lang.String operator,
java.lang.String tableTo,
java.lang.String columnTo,
java.lang.String uID)
Adds a new join to the query. |
boolean |
set(java.lang.String dataSourceName,
java.lang.String qryName,
java.lang.String tableFrom,
java.lang.String columnFrom,
java.lang.String operator,
java.lang.String tableTo,
java.lang.String columnTo,
java.lang.String uID)
Adds a new join to the query. |
boolean |
set(java.lang.String dataSourceName,
java.lang.String qryName,
SubQueryInfo subqueryInfo,
java.lang.String uID)
Adds a subquery into the query of the specified data source. |
boolean |
set(java.lang.String dataSourceName,
java.lang.String qryName,
UnionInfo unionInfo,
java.lang.String uID)
Adds a union query into the query of the specified data source. |
boolean |
set(java.lang.String qryName,
SubQueryInfo subqueryInfo,
java.lang.String uID)
Adds a subquery into the query of the specified data source. |
boolean |
set(java.lang.String qryName,
UnionInfo unionInfo,
java.lang.String uID)
Adds a union query into the query of the default data source. |
boolean |
setAND(java.lang.String qryName,
java.lang.String sExpression1,
java.lang.String sOperator,
java.lang.String sExpression2,
java.lang.String sLogic,
java.lang.String uID)
Adds a new where condition to the specified query. |
boolean |
setAND(java.lang.String dataSourceName,
java.lang.String qryName,
java.lang.String sExpression1,
java.lang.String sOperator,
java.lang.String sExpression2,
java.lang.String sLogic,
java.lang.String uID)
Adds a new where condition to the specified query. |
boolean |
setCompCol(java.lang.String qryName,
java.lang.String columnName,
java.lang.String sExpression,
java.lang.String uID)
modify the expression of a computed column . |
boolean |
setCompCol(java.lang.String dataSourceName,
java.lang.String qryName,
java.lang.String columnName,
java.lang.String sExpression,
java.lang.String uID)
modify the expression of a computed column . |
boolean |
setNewTable(java.lang.String dataSourceName,
java.lang.String qryName,
java.lang.String tablename,
boolean selectAllFields,
java.lang.String uID)
Adds a new table into the query |
boolean |
setQBE(java.lang.String qryName,
java.lang.String tablename,
java.lang.String columnname,
java.lang.String expression,
java.lang.String uID)
Adds a QBE condition into the query. |
boolean |
setQBE(java.lang.String dataSourceName,
java.lang.String qryName,
java.lang.String tablename,
java.lang.String columnname,
java.lang.String expression,
java.lang.String uID)
Adds a QBE condition into the query. |
| Methods inherited from class jet.api.API |
|---|
clearError, clearMsg, clearWarning, closeLog, containPropName, getBool, getChildren, getClassType, getColor, getDouble, getError, getFloat, getHandles, getHandles, getHandles, getHandles, getInstanceName, getInt, getLong, getParent, getPropNames, getPropType, getQualifyName, getString, getStringArray, getUnit, getWarning, set, set, set, set, set, set, set, setLog, setLog, setLog, setReference, setUnit, writeLog, writeLog |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public boolean save(java.lang.String uID)
throws jet.jetc.WriteFailureException,
jet.universe.exception.FMLFileException
uID - The user id to identify the proper user while several users share the MultiUserCatalogAPI.
Use uID to access the user's private data.
true if saves catalog successfully; false otherwise.
jet.jetc.WriteFailureException - If fails to save the catalog file.
jet.universe.exception.FMLFileException - If fails to compile the java class of the formulas in the catalog.
public boolean saveCatalog(java.lang.String uID,
java.lang.String dataSource)
throws jet.jetc.WriteFailureException,
jet.universe.exception.FMLFileException
uID - The user id to identify the proper user while several users share the MultiUserCatalogAPI.
Use uID to access the user's private data.dataSourceName - Indicates the mapping name of the data source.
If it is null or "", it means that it is the default data source in the catalog.
true if saves catalog successfully; false otherwise.
jet.jetc.WriteFailureException - if it fails to save the catalog file.
jet.universe.exception.FMLFileException - if it fails to compile the java class of the formulas in the catalog.
public boolean save(java.lang.String handle,
java.lang.String uID)
throws jet.jetc.WriteFailureException,
jet.universe.exception.FMLFileException
uID - The user id to identify the proper user while several users share the MultiUserCatalogAPI.
Use uID to access the user's private data.handle - The handle of object to be saved to the catalog.
true if it saves catalog successfully; false otherwise.
jet.jetc.WriteFailureException - if it fails to save the catalog file.
jet.universe.exception.FMLFileException - if it fails to compile the java class of the formulas in the catalog.
public boolean save(java.lang.String dataSource,
java.lang.String handle,
java.lang.String uID)
throws jet.jetc.WriteFailureException,
jet.universe.exception.FMLFileException
uID - The user id to identify the proper user while several users share the MultiUserCatalogAPI.
Use uID to access the user's private data.dataSourceName - Indicates the mapping name of the data source.
If it is null or "", it means that it is default data source in the catalog.handle - The handle of object to be saved to the catalog.
true if saves catalog successfully; false otherwise.
jet.jetc.WriteFailureException - if fails to save the catalog file.
jet.universe.exception.FMLFileException - if fails to compile the java class of the formulas in the catalog.public java.lang.String getNewParameterName(java.lang.String uID)
uID - The user id to identify the proper user while several users share the MultiUserCatalogAPI.
Use uID to access the user's private data.
public java.lang.String getNewParameterName(java.lang.String dataSourceName,
java.lang.String uID)
dataSourceName - Indicates the mapping name of the data source.
If it is null or "", it means that it is default data source in the catalog.uID - The user id to identify the proper user while several users share the MultiUserCatalogAPI.
Use uID to access the user's private data.
public java.lang.String getNewSummaryName(java.lang.String uID)
uID - The user id to identify the proper user while several users share the MultiUserCatalogAPI.
Use uID to access the user's private data.
public java.lang.String getNewSummaryName(java.lang.String dataSourceName,
java.lang.String uID)
dataSourceName - Indicates the mapping name of the data source.
If it is null or "", it means that it is default data source in the catalog.uID - The user id to identify the proper user while several users share the MultiUserCatalogAPI.
Use uID to access the user's private data.
public java.lang.String getNewFormulaName(java.lang.String uID)
getNewFormulaName in class CatalogAPIuID - The user id to identify the proper user while several users share the MultiUserCatalogAPI.
Use uID to access the user's private data.
public java.lang.String getNewFormulaName(java.lang.String dataSourceName,
java.lang.String uID)
dataSourceName - Indicates the mapping name of the data source.
If it is null or "", it means that it is default data source in the catalog.uID - The user id to identify the proper user while several users share the MultiUserCatalogAPI.
Use uID to access the user's private data.
public java.lang.String insert(java.lang.String name,
int type,
java.lang.String uID)
name - Indicates the mapping name of the new object.type - Indicates the object type of the new object.
The CatalogAPI class provides a number of convenient constants
that you can use to specify the catalog objects. For example,
CatalogAPI.CONNECTION CatalogAPI.QUERY CatalogAPI.TABLE CatalogAPI.PARAMETER
uID - The user id to identify the proper user while several users share the MultiUserCatalogAPI.
Use uID to access the user's private data.
public java.lang.String insert(java.lang.String dataSourceName,
java.lang.String name,
int type,
java.lang.String uID)
dataSourceName - Indicates the mapping name of the data source. If it is null
or "", it means that it is a default data source in the catalog.name - Indicates the mapping name of the new object.type - Indicates the object type of the new object.
The CatalogAPI class provides a number of convenient constants
that you can use to specify the catalog objects. For example,
CatalogAPI.CONNECTION CatalogAPI.QUERY CatalogAPI.TABLE CatalogAPI.PARAMETER
uID - The user id to identify the proper user while several users share the MultiUserCatalogAPI.
Use uID to access the user's private data.
public java.lang.String insert(java.lang.String qryName,
QueryFieldInfo queryFieldInfo,
QueryJoinInfo queryJoinInfo,
QueryQBEInfo queryQBEInfo,
QueryAndInfo queryAndInfo,
java.lang.String uID)
Relational databases typically contain many rows of data, with each row constituting a separate record. Most relational database queries retrieve only a portion of the records contained in a table. The WHERE clause qualifies the query command statement to limit the data to specific records from the tables.
JReport Query's concept is similar to that in the database. The working objects a query can select include tables/views (DBFields), formulas or summaries, and parameters, and the tables/views it can select from are the mapped tables/views defined in a JReport catalog. In this way, a query is independent from the raw database. You can use queries to view, change and analyze data in different ways, and JReport can help you with the building of various professional reports based on queries.
qryName - Indicates the mapping name of the query.queryFieldInfo - Indicates the information of the table and fields in the query.queryJoinInfo - Indicates the joins information of the query.queryQBEInfo - Indicates the QBE(Query By Example) information of the query.queryAndInfo - Indicates the where condition information of the query.uID - The user id to identify the proper user while several users share the MultiUserCatalogAPI.
Use uID to access the user's private data.
null value will be returned.
public java.lang.String insert(java.lang.String dataSourceName,
java.lang.String qryName,
QueryFieldInfo queryFieldInfo,
QueryJoinInfo queryJoinInfo,
QueryQBEInfo queryQBEInfo,
QueryAndInfo queryAndInfo,
java.lang.String uID)
dataSourceName - Indicates the mapping name of the data source in the catalog.qryName - Indicates the mapping name of the query.queryFieldInfo - Indicates the information of the table and fields in the query.queryJoinInfo - Indicates the joins information of the query.queryQBEInfo - Indicates the QBE(Query By Example) information of the query.queryAndInfo - Indicates the where condition information of the query.uID - The user id to identify the proper user while several users share the MultiUserCatalogAPI.
Use uID to access the user's private data.
null value will be returned.
public boolean deleteQuery(java.lang.String qryName,
java.lang.String uID)
deleteQuery in class CatalogAPIqryName - Indicates the mapping name of the query.uID - The user id to identify the proper user while several users share the MultiUserCatalogAPI.
Use uID to access the user's private data.
true if deletes successfully; false otherwise.
public boolean deleteQuery(java.lang.String dataSourceName,
java.lang.String qryName,
java.lang.String uID)
dataSourceName - Indicates the mapping name of the data source in the catalog.qryName - Indicates the mapping name of the query.uID - The user id to identify the proper user while several users share the MultiUserCatalogAPI.
Use uID to access the user's private data.
true if deletes successfully; false otherwise.
public boolean deleteTable(java.lang.String qryName,
java.lang.String tablename,
java.lang.String uID)
qryName - Indicates the mapping name of the query.tablename - Indicates the mapping name of the table to be deleted.uID - The user id to identify the proper user while several users share the MultiUserCatalogAPI.
Use uID to access the user's private data.
true if deletes successfully; false otherwise.
public boolean deleteTable(java.lang.String dataSourceName,
java.lang.String qryName,
java.lang.String tablename,
java.lang.String uID)
dataSourceName - Indicates the mapping name of the data source.qryName - Indicates the mapping name of the query.tablename - Indicates the mapping name of the table to be deleted.uID - The user id to identify the proper user while several users share the MultiUserCatalogAPI.
Use uID to access the user's private data.
true if deletes successfully; false otherwise.
public boolean deleteColumn(java.lang.String qryName,
java.lang.String tablename,
java.lang.String columnname,
java.lang.String uID)
qryName - Indicates the mapping name of the query.tablename - the table name of the deleted field.columnname - the column name of the deleted field.uID - The user id to identify the proper user while several users share the MultiUserCatalogAPI.
Use uID to access the user's private data.
true if deletes successfully; false otherwise.
public boolean deleteColumn(java.lang.String dataSourceName,
java.lang.String qryName,
java.lang.String tablename,
java.lang.String columnname,
java.lang.String uID)
dataSourceName - Indicates the mapping name of the data source in the catalog.qryName - Indicates the mapping name of the query.tablename - The table name of the deleted field.columnname - The column name of the deleted field.uID - The user id to identify the proper user while several users share the MultiUserCatalogAPI.
Use uID to access the user's private data.
true if deletes successfully; false otherwise.
public boolean delete(java.lang.String qryName,
java.lang.String tableFrom,
java.lang.String columnFrom,
java.lang.String operator,
java.lang.String tableTo,
java.lang.String columnTo,
java.lang.String uID)
delete in class CatalogAPIqryName - Indicates the mapping name of the query.tableFrom - The name of the table from which the join links.columnFrom - The name of the column from which the join links.tableTo - The name of the table to which the join links.columnTo - The name of the column to which the join links.operator - The String operator of the join to be deleted.uID - The user id to identify the proper user while several users share the MultiUserCatalogAPI.
Use uID to access the user's private data.
true if deletes successfully; false otherwise.
public boolean delete(java.lang.String dataSourceName,
java.lang.String qryName,
java.lang.String tableFrom,
java.lang.String columnFrom,
java.lang.String operator,
java.lang.String tableTo,
java.lang.String columnTo,
java.lang.String uID)
dataSourceName - Indicates the mapping name of the data source.qryName - Indicates the mapping name of the query.tableFrom - The name of the table from which the join links.columnFrom - The name of the column from which the join links.tableTo - The name of the table to which the join links.columnTo - The name of the column to which the join links.operator - The String operator of the join to be deleted.uID - The user id to identify the proper user while several users share the MultiUserCatalogAPI.
Use uID to access the user's private data.
true if deletes successfully; false otherwise.
public boolean deleteQBE(java.lang.String qryName,
java.lang.String tablename,
java.lang.String columnname,
java.lang.String expression,
java.lang.String uID)
deleteQBE in class CatalogAPIqryName - Indicates the mapping name of the query.tablename - The name of the table where the QBE condition is.columnname - The name of the column where the QBE condition is.expression - The expression of the QBE condition.uID - The user id to identify the proper user while several users share the MultiUserCatalogAPI.
Use uID to access the user's private data.
true if deletes successfully; false otherwise.
public boolean deleteQBE(java.lang.String dataSourceName,
java.lang.String qryName,
java.lang.String tablename,
java.lang.String columnname,
java.lang.String expression,
java.lang.String uID)
dataSourceName - Indicates the mapping name of the data source in the catalog.qryName - Indicates the mapping name of the query.tablename - The name of the table where the QBE condition is.columnname - The name of the column where the QBE condition is.expression - The expression of the QBE condition.uID - The user id to identify the proper user while several users share the MultiUserCatalogAPI.
Use uID to access the user's private data.
true if deletes successfully; false otherwise.
public boolean deleteAND(java.lang.String qryName,
java.lang.String sExpression1,
java.lang.String sOperator,
java.lang.String sExpression2,
java.lang.String sLogic,
java.lang.String uID)
qryName - Indicates the query name in which the where clause stored.sLogic - The logic string of the where condition to be deleted.
The logic describes the relationship between this sentence
and the next condition, such as "AND" and "OR".sExpression1 - The first expression of the where condition to be deleted.sOperator - The operator of the where condition to be deleted.sExpression2 - The second expression of the where condition to be deleted.uID - The user id to identify the proper user while several users share the MultiUserCatalogAPI.
Use uID to access the user's private data.
true if deletes successfully; false otherwise.
public boolean deleteAND(java.lang.String dataSourceName,
java.lang.String qryName,
java.lang.String sExpression1,
java.lang.String sOperator,
java.lang.String sExpression2,
java.lang.String sLogic,
java.lang.String uID)
dataSourceName - Indicates the mapping name of data source in catalog.qryName - Indicates the query name in which the where clause stored.sLogic - The logic string of the where condition to be deleted.
The logic describes the relationship between this sentence
and the next condition, such as "AND" and "OR".sExpression1 - The first expression of the where condition to be deleted.sOperator - The operator of the where condition to be deleted.sExpression2 - The second expression of the where condition to be deleted.uID - The user id to identify the proper user while several users share the MultiUserCatalogAPI.
Use uID to access the user's private data.
true if deletes successfully; false otherwise.
public boolean set(java.lang.String qryName,
java.lang.String tablename,
boolean selectAllFields,
java.lang.String uID)
qryName - Indicates the mapping name of the query.tablename - The name of table to be inserted.selectAllFields - whether or not to insert the table with all its fields.
If true, all the columns of table also be inserted into the query; false, only table without columns be inserted.uID - The user id to identify the proper user while several users share the MultiUserCatalogAPI.
Use uID to access the user's private data.
true if inserts successfully; false otherwise.
public boolean setNewTable(java.lang.String dataSourceName,
java.lang.String qryName,
java.lang.String tablename,
boolean selectAllFields,
java.lang.String uID)
dataSourceName - Indicates the mapping name of the data source.qryName - Indicates the mapping name of the query.tablename - the real name of table to be insertedselectAllFields - whether or not to insert the table with all its fields.
If true, all the columns of table also be inserted into the query; false, only table without columns be inserted.uID - The user id to identify the proper user while several users share the MultiUserCatalogAPI.
Use uID to access the user's private data.
true if inserts successfully; false otherwise.
public boolean set(java.lang.String qryName,
java.lang.String tablename,
java.lang.String columnname,
boolean isFormula,
java.lang.String uID)
qryName - Indicates the mapping name of the query to be changed.tablename - Indicates the name of the table to be inserted.
If isFormula is true, this is ignored.columnname - Indicates the column name of the table to be inserted.
If isFormula is true, this is mapping name of the formula.isFormula - Indicates whether or not to insert a formula into the query.uID - The user id to identify the proper user while several users share the MultiUserCatalogAPI.
Use uID to access the user's private data.
true if inserts successfully; false otherwise.
public boolean set(java.lang.String dataSourceName,
java.lang.String qryName,
java.lang.String tablename,
java.lang.String columnname,
boolean isFormula,
java.lang.String uID)
dataSourceName - Indicates the mapping name of the data source in the catalog.qryName - Indicates the mapping name of the query to be changed.tablename - Indicates the real name of the table to be inserted.
If isFormula is true, this is ignored.columnname - Indicates the column real name of the table to be inserted.
If isFormula is true, this is mapping name of the formula.isFormula - Indicates whether or not to insert a formula into the query.uID - The user id to identify the proper user while several users share the MultiUserCatalogAPI.
Use uID to access the user's private data.
true if inserts successfully; false otherwise.
public boolean set(java.lang.String qryName,
java.lang.String tableFrom,
java.lang.String columnFrom,
java.lang.String operator,
java.lang.String tableTo,
java.lang.String columnTo,
java.lang.String uID)
qryName - Indicates the mapping name of the query.tableFrom - Indicates the name of the table from which the join links.columnFrom - Indicates the name of the column from which the join links.tableTo - Indicates the name of the table to which the join links.columnTo - Indicates the name of the column to which the join links.operator - Indicates the operator of the join to be inserted.uID - The user id to identify the proper user while several users share the MultiUserCatalogAPI.
Use uID to access the user's private data.
true if inserts successfully; false otherwise.
public boolean set(java.lang.String dataSourceName,
java.lang.String qryName,
java.lang.String tableFrom,
java.lang.String columnFrom,
java.lang.String operator,
java.lang.String tableTo,
java.lang.String columnTo,
java.lang.String uID)
dataSourceName - Indicates the mapping name of the data source in the catalog.qryName - Indicates the mapping name of the query.tableFrom - Indicates the name of the table from which the join links.columnFrom - Indicates the name of the column from which the join links.tableTo - Indicates the name of the table to which the join links.columnTo - Indicates the name of the column to which the join links.operator - Indicates the operator of the join to be inserted.isSQL92 - Indicates whether or not to apply SQL92 standard to the join sentence.outerJoin - Indicates the type of the outer join. Constants of Join type:
JoinInfo#LEFTOUTER
JoinInfo#RIGHTOUTER
uID - The user id to identify the proper user while several users share the MultiUserCatalogAPI.
Use uID to access the user's private data.
true if inserts successfully; false otherwise.
public boolean setQBE(java.lang.String qryName,
java.lang.String tablename,
java.lang.String columnname,
java.lang.String expression,
java.lang.String uID)
setQBE in class CatalogAPIqryName - Indicates the mapping name of the query to be changed.tablename - The name of the table where the QBE condition will be added.columnname - The name of the column where the QBE condition will be added.expression - The expression of the QBE condition.uID - The user id to identify the proper user while several users share the MultiUserCatalogAPI.
Use uID to access the user's private data.
true if inserts successfully; false otherwise.
public boolean setQBE(java.lang.String dataSourceName,
java.lang.String qryName,
java.lang.String tablename,
java.lang.String columnname,
java.lang.String expression,
java.lang.String uID)
dataSourceName - Indicates the mapping name of the data source in the catalog.qryName - Indicates the mapping name of the query to be changed.tablename - The name of the table where the QBE condition will be added.columnname - The name of the column where the QBE condition will be added.expression - The expression of the QBE condition.uID - The user id to identify the proper user while several users share the MultiUserCatalogAPI.
Use uID to access the user's private data.
true if inserts successfully; false otherwise.
public boolean setAND(java.lang.String qryName,
java.lang.String sExpression1,
java.lang.String sOperator,
java.lang.String sExpression2,
java.lang.String sLogic,
java.lang.String uID)
qryName - Indicates the mapping name of the query to be changed.sLogic - The logic string of the where condition to be inserted.sExpression1 - The first expression of the where condition to be inserted.sOperator - The operator of the where condition to be inserted.sExpression2 - The second expression of the where condition to be inserted.uID - The user id to identify the proper user while several users share the MultiUserCatalogAPI.
Use uID to access the user's private data.
true if inserts successfully; false otherwise.
public boolean setAND(java.lang.String dataSourceName,
java.lang.String qryName,
java.lang.String sExpression1,
java.lang.String sOperator,
java.lang.String sExpression2,
java.lang.String sLogic,
java.lang.String uID)
dataSourceName - Indicates the mapping name of the data source in the catalog.qryName - Indicates the mapping name of the query to be changed.sLogic - The logic string of the where condition to be inserted.sExpression1 - The first expression of the where condition to be inserted.sOperator - The operator of the where condition to be inserted.sExpression2 - The second expression of the where condition to be inserted.uID - The user id to identify the proper user while several users share the MultiUserCatalogAPI.
Use uID to access the user's private data.
true if inserts successfully; false otherwise.
public boolean set(java.lang.String handle,
FormulaInfo info,
java.lang.String uID)
handle - Indicates the handle of the Formula. The handle is the unique
ID of the object in the catalog.info - Indicates the new formula's information.uID - The user id to identify the proper user while several users share the MultiUserCatalogAPI.
Use uID to access the user's private data.
true if modifies data object successfully; false otherwise.
public boolean set(java.lang.String qryName,
UnionInfo unionInfo,
java.lang.String uID)
qryName - Indicates the mapping name of the query to be changed.unionInfo - Union query information.uID - The user id to identify the proper user while several users share the MultiUserCatalogAPI.
Use uID to access the user's private data.
true if inserts successfully; false otherwise.
public boolean set(java.lang.String dataSourceName,
java.lang.String qryName,
UnionInfo unionInfo,
java.lang.String uID)
dataSourceName - Indicates the mapping name of the data source in the catalog.qryName - Indicates the mapping name of the query to be changed.unionInfo - Union query information.uID - The user id to identify the proper user while several users share the MultiUserCatalogAPI.
Use uID to access the user's private data.
true if inserts successfully; false otherwise.
public boolean set(java.lang.String qryName,
SubQueryInfo subqueryInfo,
java.lang.String uID)
qryName - Indicates the mapping name of the query to be changed.subqueryInfo - The class defines the subquery's information.uID - The user id to identify the proper user while several users share the MultiUserCatalogAPI.
Use uID to access the user's private data.
true if inserts successfully; false otherwise.
public boolean set(java.lang.String dataSourceName,
java.lang.String qryName,
SubQueryInfo subqueryInfo,
java.lang.String uID)
dataSourceName - Indicates the mapping name of the data source in the catalog.qryName - Indicates the mapping name of the query to be changed.subqueryInfo - The class defines the subquery's information.uID - The user id to identify the proper user while several users share the MultiUserCatalogAPI.
Use uID to access the user's private data.
true if inserts successfully; false otherwise.
public java.lang.String[] getDBFields(java.lang.String qryName,
java.lang.String uID)
getDBFields in class CatalogAPIdataSourceName - Indicates the mapping name of the data source in the catalog.qryName - Indicates the mapping name of the query.uID - The user id to identify the proper user while several users share the MultiUserCatalogAPI.
Use uID to access the user's private data.
public java.lang.String[] getDBFields(java.lang.String dataSourceName,
java.lang.String qryName,
java.lang.String uID)
dataSourceName - Indicates the mapping name of the data source in the catalog.qryName - Indicates the mapping name of the query.uID - The user id to identify the proper user while several users share the MultiUserCatalogAPI.
Use uID to access the user's private data.
public java.lang.String[] getFormulae(java.lang.String uID)
getFormulae in class CatalogAPIuID - The user id to identify the proper user while several users share the MultiUserCatalogAPI.
Use uID to access the user's private data.
public java.lang.String[] getFormulae(java.lang.String dataSourceName,
java.lang.String uID)
dataSourceName - Indicates the mapping name of the data source.
If it is null or "", it means that it is default data source in the catalog.uID - The user id to identify the proper user while several users share the MultiUserCatalogAPI.
Use uID to access the user's private data.
public java.lang.String[] getSummaries(java.lang.String uID)
getSummaries in class CatalogAPIuID - The user id to identify the proper user while several users share the MultiUserCatalogAPI.
Use uID to access the user's private data.
public java.lang.String[] getSummaries(java.lang.String dataSourceName,
java.lang.String uID)
dataSourceName - Indicates the mapping name of the data source.
If it is null or "", it means that it is default data source in the catalog.uID - The user id to identify the proper user while several users share the MultiUserCatalogAPI.
Use uID to access the user's private data.
public java.lang.String[] getSQLs(java.lang.String uID)
getSQLs in class CatalogAPIuID - The user id to identify the proper user while several users share the MultiUserCatalogAPI.
Use uID to access the user's private data.
public java.lang.String[] getSQLs(java.lang.String dataSourceName,
java.lang.String uID)
dataSourceName - Indicates the mapping name of the data source.
If it is null or "", it means that it is default data source in the catalog.uID - The user id to identify the proper user while several users share the MultiUserCatalogAPI.
Use uID to access the user's private data.
public java.lang.String[] getUDSs(java.lang.String uID)
getUDSs in class CatalogAPIuID - The user id to identify the proper user while several users share the MultiUserCatalogAPI.
Use uID to access the user's private data.
public java.lang.String[] getUDSs(java.lang.String dataSourceName,
java.lang.String uID)
dataSourceName - Indicates the mapping name of the data source.
If it is null or "", it means that it is default data source in the catalog.uID - The user id to identify the proper user while several users share the MultiUserCatalogAPI.
Use uID to access the user's private data.
public java.lang.String[] getParameter(java.lang.String uID)
getParameter in class CatalogAPIuID - The user id to identify the proper user while several users share the MultiUserCatalogAPI.
Use uID to access the user's private data.
public java.lang.String[] getParameter(java.lang.String dataSourceName,
java.lang.String uID)
dataSourceName - Indicates the mapping name of the data source.
If it is null or "", it means that it is default data source in the catalog.uID - The user id to identify the proper user while several users share the MultiUserCatalogAPI.
Use uID to access the user's private data.
public java.lang.String[] getQueries(java.lang.String uID)
getQueries in class CatalogAPIuID - The user id to identify the proper user while several users share the MultiUserCatalogAPI.
Use uID to access the user's private data.
public java.lang.String[] getQueries(java.lang.String dataSourceName,
java.lang.String uID)
dataSourceName - Indicates the mapping name of the data source.
If it is null or "", it means that it is default data source in the catalog.uID - The user id to identify the proper user while several users share the MultiUserCatalogAPI.
Use uID to access the user's private data.
public java.lang.String[] getTables(java.lang.String uID)
getTables in class CatalogAPIuID - The user id to identify the proper user while several users share the MultiUserCatalogAPI.
Use uID to access the user's private data.
public java.lang.String[] getTables(java.lang.String dataSourceName,
java.lang.String uID)
dataSourceName - Indicates the mapping name of the data source.
If it is null or "", it means that it is default data source in the catalog.uID - The user id to identify the proper user while several users share the MultiUserCatalogAPI.
Use uID to access the user's private data.
public QueryTableInfo getColumns(java.lang.String queryName,
boolean allColumns,
java.lang.String uID)
qryName - Indicates the mapping name of the query.uID - The user id to identify the proper user while several users share the MultiUserCatalogAPI.
Use uID to access the user's private data.allColumns - select all columns in selected tables
public QueryTableInfo getColumns(java.lang.String dataSourceName,
java.lang.String queryName,
boolean allColumns,
java.lang.String uID)
dataSourceName - Indicates the mapping name of the data source.
If it is null or "", it means that it is default data source in the catalog.queryName - Indicates the mapping name of the query.allColumns - Indicates where or not to include all columns that are defined
in the selected database tables.uID - The user id to identify the proper user while several users share the MultiUserCatalogAPI.
Use uID to access the user's private data.
public java.lang.String[] getCompColumns(java.lang.String queryName,
java.lang.String uID)
getCompColumns in class CatalogAPIqueryName - the query nameuID - The user id to identify the proper user while several users share the MultiUserCatalogAPI.
Use uID to access the user's private data.
public java.lang.String[] getCompColumns(java.lang.String dataSourceName,
java.lang.String queryName,
java.lang.String uID)
dataSourceName - Indicates the mapping name of the data source.
If it is null or "", it means that it is default data source in the catalog.queryName - the query nameuID - The user id to identify the proper user while several users share the MultiUserCatalogAPI.
Use uID to access the user's private data.
public java.lang.String[][] getJoins(java.lang.String queryName,
java.lang.String uID)
getJoins in class CatalogAPIqueryName - The mapping name of the query.uID - The user id to identify the proper user while several users share the MultiUserCatalogAPI.
Use uID to access the user's private data.
public java.lang.String[][] getJoins(java.lang.String dataSourceName,
java.lang.String queryName,
java.lang.String uID)
dataSourceName - the name of data sourcequeryName - the query nameuID - The user id to identify the proper user while several users share the MultiUserCatalogAPI.
Use uID to access the user's private data.
public java.lang.String[][] getQBEInfo(java.lang.String queryName,
java.lang.String uID)
getQBEInfo in class CatalogAPIqueryName - the query nameuID - The user id to identify the proper user while several users share the MultiUserCatalogAPI.
Use uID to access the user's private data.
public java.lang.String[][] getQBEInfo(java.lang.String dataSourceName,
java.lang.String queryName,
java.lang.String uID)
dataSourceName - the data source nameuID - The user id to identify the proper user while several users share the MultiUserCatalogAPI.
Use uID to access the user's private data.queryName - the query name
public java.lang.String[][] getAndConditions(java.lang.String queryName,
java.lang.String uID)
getAndConditions in class CatalogAPIqueryName - the query nameuID - The user id to identify the proper user while several users share the MultiUserCatalogAPI.
Use uID to access the user's private data.
public java.lang.String[][] getAndConditions(java.lang.String dataSourceName,
java.lang.String queryName,
java.lang.String uID)
dataSourceName - the data source nameuID - The user id to identify the proper user while several users share the MultiUserCatalogAPI.
Use uID to access the user's private data.queryName - the query name
public java.lang.String[] getColumnMappingnames(java.lang.String queryName,
java.lang.String uID)
getColumnMappingnames in class CatalogAPIqueryName - the query nameuID - The user id to identify the proper user while several users share the MultiUserCatalogAPI.
Use uID to access the user's private data.
public java.lang.String[] getColumnMappingnames(java.lang.String dataSourceName,
java.lang.String queryName,
java.lang.String uID)
dataSourceName - the data source namequeryName - the query nameuID - The user id to identify the proper user while several users share the MultiUserCatalogAPI.
Use uID to access the user's private data.
public QueryTableInfo getColumnsCanBeGroupedBy(java.lang.String queryName,
java.lang.String uID)
getColumnsCanBeGroupedBy in class CatalogAPIqueryName - the query nameuID - The user id to identify the proper user while several users share the MultiUserCatalogAPI.
Use uID to access the user's private data.
public QueryTableInfo getColumnsCanBeGroupedBy(java.lang.String dataSourceName,
java.lang.String queryName,
java.lang.String uID)
dataSourceName - the data source namequeryName - the query nameuID - The user id to identify the proper user while several users share the MultiUserCatalogAPI.
Use uID to access the user's private data.
public java.lang.String[] getFormulaeForQuery(java.lang.String queryName,
java.lang.String uID)
getFormulaeForQuery in class CatalogAPIqueryName - the query nameuID - The user id to identify the proper user while several users share the MultiUserCatalogAPI.
Use uID to access the user's private data.
public java.lang.String[] getFormulaeForQuery(java.lang.String dataSourceName,
java.lang.String queryName,
java.lang.String uID)
dataSourceName - the data source namequeryName - the query nameuID - The user id to identify the proper user while several users share the MultiUserCatalogAPI.
Use uID to access the user's private data.
public java.lang.String[] getSummariesForQuery(java.lang.String queryName,
java.lang.String uID)
getSummariesForQuery in class CatalogAPIqueryName - the query nameuID - The user id to identify the proper user while several users share the MultiUserCatalogAPI.
Use uID to access the user's private data.
public java.lang.String[] getSummariesForQuery(java.lang.String dataSourceName,
java.lang.String queryName,
java.lang.String uID)
dataSourceName - the data source namequeryName - the query nameuID - The user id to identify the proper user while several users share the MultiUserCatalogAPI.
Use uID to access the user's private data.
public java.lang.String[] getFmlCanBeGroupedBy(java.lang.String queryName,
java.lang.String uID)
queryName - the query nameuID - The user id to identify the proper user while several users share the MultiUserCatalogAPI.
Use uID to access the user's private data.
public java.lang.String[] getFmlCanBeGroupedBy(java.lang.String dataSourceName,
java.lang.String queryName,
java.lang.String uID)
dataSourceName - the data source namequeryName - the query nameuID - The user id to identify the proper user while several users share the MultiUserCatalogAPI.
Use uID to access the user's private data.
public java.lang.String[] getFormulaeCanBeGroupedBy(java.lang.String queryName,
java.lang.String groupBy,
java.lang.String uID)
getFormulaeCanBeGroupedBy in class CatalogAPIqueryName - the query nameuID - The user id to identify the proper user while several users share the MultiUserCatalogAPI.
Use uID to access the user's private data.groupBy - Indicates the resource name of the query.
public java.lang.String[] getFormulaeCanBeGroupedBy(java.lang.String dataSourceName,
java.lang.String queryName,
java.lang.String groupBy,
java.lang.String uID)
dataSourceName - the data source namequeryName - the query nameuID - The user id to identify the proper user while several users share the MultiUserCatalogAPI.
Use uID to access the user's private data.
public java.lang.String[] getChartFunctions(java.lang.String queryName,
java.lang.String groupBy,
java.lang.String uID)
getChartFunctions in class CatalogAPIqueryName - the query namegroupBy - the groupBy field nameuID - The user id to identify the proper user while several users share the MultiUserCatalogAPI.
Use uID to access the user's private data.
public java.lang.String[] getChartFunctions(java.lang.String dataSourceName,
java.lang.String queryName,
java.lang.String groupBy,
java.lang.String uID)
dataSourceName - the data source namequeryName - the query namegroupBy - the groupBy field nameuID - The user id to identify the proper user while several users share the MultiUserCatalogAPI.
Use uID to access the user's private data.
public java.lang.String[] getParameterCanBeGroupedBy(java.lang.String uID)
getParameterCanBeGroupedBy in class CatalogAPIuID - the User ID
public java.lang.String[] getParameterCanBeGroupedBy(java.lang.String dataSourceName,
java.lang.String uID)
dataSourceName - the data source nameuID - the User ID
public java.lang.String[] getSummaryCanBeSortedBy(java.lang.String queryName,
java.lang.String groupBy,
java.lang.String uID)
getSummaryCanBeSortedBy in class CatalogAPIqueryName - the query namegroupBy - the groupBy fielduID - the User ID
public java.lang.String[] getSummaryCanBeSortedBy(java.lang.String dataSourceName,
java.lang.String queryName,
java.lang.String groupBy,
java.lang.String uID)
dataSourceName - the data source namequeryName - the query namegroupBy - the groupBy fielduID - the User ID
public boolean isModified()
isModified in class CatalogAPI
public java.lang.String getHandle(java.lang.String resourceName,
java.lang.String uID)
resourceName - object mapping nameuID - user ID
public java.lang.String getHandle(java.lang.String dataSourceName,
java.lang.String resourceName,
java.lang.String uID)
resourceName - object mapping nameuID - user ID
public java.lang.String getHandle(java.lang.String resourceName,
int type,
java.lang.String uID)
resourceName - object mapping nametype - object typeuID - user ID
public java.lang.String getHandle(java.lang.String dataSourceName,
java.lang.String resourceName,
int type,
java.lang.String uID)
dataSourceName - Indicates the mapping name of the data source to get
the object's handle. If it is null or "", it means it is the default data source
in the catalog.resourceName - Indicates the mapping name of the object in the specified
data source.type - Indicates the type of the object by constant object type value.
The CatalogAPI class provides a number of convenient constants
that you can use to specify catalog objects. For example,
CatalogAPI.CONNECTION CatalogAPI.QUERY CatalogAPI.TABLE CatalogAPI.PARAMETER
null if there is no matching object, otherwise returns a String specifying
the handle of the object.
public java.lang.String rename(java.lang.String resourceName,
java.lang.String newName,
int type,
java.lang.String uID)
resourceName - Resource name(mapping name) of the object.newName - New resource name of the object.type - Indicates the type of the object by constant object type value.
The CatalogAPI class provides a number of convenient constants
that you can use to specify catalog objects. For example,
CatalogAPI.CONNECTION CatalogAPI.QUERY CatalogAPI.TABLE CatalogAPI.PARAMETER- Returns:
- the new resource name if it renames successfully;
nullotherwise.
public java.lang.String rename(java.lang.String dataSourceName,
java.lang.String resourceName,
java.lang.String newName,
int type,
java.lang.String uID)
dataSourceName - Indicates the mapping name of the data source in the catalog.resourceName - Resource name(mapping name) of the object.newName - New resource name of the object.type - Indicates the type of the object by constant object type value.
The CatalogAPI class provides a number of convenient constants
that you can use to specify catalog objects. For example,
CatalogAPI.CONNECTION CatalogAPI.QUERY CatalogAPI.TABLE CatalogAPI.PARAMETER- Returns:
- the new resource name if it renames successfully;
nullotherwise.
public java.lang.String insertCompCol(java.lang.String qryName,
java.lang.String columnName,
java.lang.String sExpression,
java.lang.String uID)
insertCompCol in class CatalogAPIqryName - Indicates the mapping name of the query.columnName - the resource name of computed columnsExpression - the expression of this columnuID - Indicates the expression String of this computed column.
public java.lang.String insertCompCol(java.lang.String dataSourceName,
java.lang.String qryName,
java.lang.String columnName,
java.lang.String sExpression,
java.lang.String uID)
dataSourceName - the name of data sourceqryName - Indicates the mapping name of the query.columnName - the resource name of computed columnsExpression - the expression of this column
public boolean deleteCompCol(java.lang.String qryName,
java.lang.String columnName,
java.lang.String uID)
deleteCompCol in class CatalogAPIqryName - Indicates the mapping name of the query.columnName - the resource name of computed columnuID - Indicates the mapping name of the computed column.
public boolean deleteCompCol(java.lang.String dataSourceName,
java.lang.String qryName,
java.lang.String columnName,
java.lang.String uID)
dataSourceName - the name of data sourceqryName - Indicates the mapping name of the query.columnName - the resource name of computed column
public boolean setCompCol(java.lang.String qryName,
java.lang.String columnName,
java.lang.String sExpression,
java.lang.String uID)
setCompCol in class CatalogAPIqryName - Indicates the mapping name of the query.columnName - the resource name of computed columnsExpression - the expression of this columnuID - Indicates the new expression String of the computed column.
public boolean setCompCol(java.lang.String dataSourceName,
java.lang.String qryName,
java.lang.String columnName,
java.lang.String sExpression,
java.lang.String uID)
dataSourceName - the name of data sourceqryName - Indicates the mapping name of the query.columnName - the resource name of computed columnsExpression - the expression of this column
public java.lang.String insertSql(java.lang.String dataSourceName,
java.lang.String SQLName,
java.lang.String filename,
java.lang.String uID)
insertSql in class CatalogAPIdataSourceName - the data source nameSQLName - the SQL namefilename - the imported file nameuID - Indicates the full path file name of the imported query.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||