public interface VDPManager
extends java.io.Serializable
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
generateOrderByExpressionWithPK(int vdpDataSourceID,
java.util.Collection<java.lang.String> pkFields)
Returns a default ORDER BY expression generated from the selected PK fields.
|
java.lang.String |
generateOrderByExpressionWithPK(int vdpDataSourceID,
java.lang.String viewName)
Returns a default ORDER BY expression generated from the selected view's PK.
|
java.util.Collection<java.lang.String> |
getCatalogNames(int vdpDataSourceID)
Returns a collection with the names of the catalogs/databases of the VDP Server defined by
the identifier of the data source.
|
java.util.Collection<java.lang.String> |
getDateFieldsFromView(int vdpDataSourceID,
java.lang.String viewName)
Returns the date-type fields of a VDP view.
|
java.util.Collection<VDPViewElement> |
getElements(int vdpDataSourceID,
VDPViewElementFilter elementFilter)
Returns a collection of the elements of the database defined in elementFilter and VDP Server defined by
the identifier of the data source.
|
java.util.Collection<java.lang.String> |
getJDBCTableViewNames(int vdpDataSourceID,
java.lang.String catalogName,
java.lang.String viewNameFilter)
Returns a collection with the names of the base views over a jdbc table of the VDP Server defined by the
identifier of the data source.
|
java.util.Collection<java.lang.String> |
getSummaryViewNames(int vdpDataSourceID,
java.lang.String catalogName,
java.lang.String viewNameFilter)
Returns a collection with the names of the base views over a summary of the VDP Server defined by the identifier
of the data source
|
java.util.Collection<java.lang.String> |
getTextFieldsFromView(int vdpDataSourceID,
java.lang.String viewName)
Returns the text-type fields of a VDP view.
|
java.util.Collection<<any>> |
getVDPI18NList(int vdpDataSourceID)
Returns a collection of i18n labels
from the VDP Server using the data source identified by vdpDataSourceID.
|
VDPLocale |
getVDPLocale(int vdpDataSourceID,
java.lang.String code)
Returns the VDP Locale defined by code parameter
from VDP Server using the data source identified by vdpDataSourceID.
|
VDPViewInfo |
getViewInfo(int vdpDataSourceID,
java.lang.String viewName)
Returns the creation query, pks and fields of a VDP view and which ones are mandatory.
|
java.util.Collection<java.lang.String> |
getViewNames(int vdpDataSourceID)
Returns a collection with the names of the views (base and derived) of the VDP Server defined by
the identifier of the data source.
|
java.util.Collection<java.lang.String> |
getViewNames(int vdpDataSourceID,
java.lang.String catalogName,
java.lang.String viewNameFilter)
Returns a collection with the names of the views (base and derived) of the VDP Server defined by the identifier
of the data source.
|
java.util.Collection<java.lang.String> |
getViewsWithPKNames(int vdpDataSourceID)
Returns a collection with the names of the views (base and derived) of the VDP Server defined by
the identifier of the data source.
|
java.util.Collection<java.lang.String> |
getViewsWithPKNames(int vdpDataSourceID,
java.lang.String catalogName)
Returns a collection with the names of the views (base and derived) of the VDP Server defined by
the identifier of the data source.
|
java.util.Collection<java.lang.String> |
getViewsWithPKNames(int vdpDataSourceID,
java.lang.String catalogName,
java.lang.String viewNameFilter)
Returns a collection with the names of the views (base and derived) of the VDP Server defined by the identifier
of the data source.
|
java.lang.String |
validateQuery(int vdpDataSourceID,
java.lang.String query)
Checks if a query is valid (without executing it).
|
java.lang.String |
validateQuery(int vdpDataSourceID,
java.lang.String query,
java.lang.String contextOpts)
Checks if a query is valid (without executing it).
|
java.util.Collection<java.lang.String> getViewNames(int vdpDataSourceID)
throws VDPConnectException,
InstanceNotFoundException,
InternalErrorException
vdpDataSourceID - the identifier of the VDP data source created in Scheduler.VDPConnectException - if a connection error occurs against VDP. Typically, the connection
was refused remotely or the authentication was wrong.InstanceNotFoundException - if the data source does not exist.InternalErrorException - if an error occurs during the process.java.util.Collection<java.lang.String> getViewsWithPKNames(int vdpDataSourceID)
throws VDPConnectException,
InstanceNotFoundException,
InternalErrorException
vdpDataSourceID - the identifier of the VDP data source created in Scheduler.VDPConnectException - if a connection error occurs against VDP. Typically, the connection
was refused remotely or the authentication was wrong.InstanceNotFoundException - if the data source does not exist.InternalErrorException - if an error occurs during the process.java.util.Collection<java.lang.String> getViewsWithPKNames(int vdpDataSourceID,
java.lang.String catalogName)
throws VDPConnectException,
InstanceNotFoundException,
InternalErrorException
vdpDataSourceID - the identifier of the VDP data source created in Scheduler.catalogName - the name of the database.VDPConnectException - if a connection error occurs against VDP. Typically, the connection
was refused remotely or the authentication was wrong.InstanceNotFoundException - if the data source does not exist.InternalErrorException - if an error occurs during the process.java.util.Collection<java.lang.String> getViewsWithPKNames(int vdpDataSourceID,
java.lang.String catalogName,
java.lang.String viewNameFilter)
throws VDPConnectException,
InstanceNotFoundException,
InternalErrorException
vdpDataSourceID - the identifier of the VDP data source created in Scheduler.catalogName - the name of the database. null accepted to search all databasesviewNameFilter - filters view names. null or empty string accepted if no filter neededVDPConnectException - if a connection error occurs against VDP. Typically, the connection was refused
remotely or the authentication was wrong.InstanceNotFoundException - if the data source does not exist.InternalErrorException - if an error occurs during the process.java.lang.String generateOrderByExpressionWithPK(int vdpDataSourceID,
java.lang.String viewName)
throws VDPConnectException,
InstanceNotFoundException,
InternalErrorException
ORDER BY pk_field_1 ASC[, pk_field_n ASC]*. An empty string
will be returned in case the selected view does not have a PK.vdpDataSourceID - the identifier of the VDP data source created in Scheduler.viewName - the name of the view.VDPConnectException - if a connection error occurs against VDP. Typically, the connection
was refused remotely or the authentication was wrong.InstanceNotFoundException - if the data source does not exist.InternalErrorException - if an error occurs during the process.java.lang.String generateOrderByExpressionWithPK(int vdpDataSourceID,
java.util.Collection<java.lang.String> pkFields)
throws VDPConnectException,
InstanceNotFoundException,
InternalErrorException
ORDER BY pk_field_1 ASC[, pk_field_n ASC]*.vdpDataSourceID - the identifier of the VDP data source created in Scheduler.pkFields - the PK fields to generate the ORDER BY expression.VDPConnectException - if a connection error occurs against VDP. Typically, the connection
was refused remotely or the authentication was wrong.InstanceNotFoundException - if the data source does not exist.InternalErrorException - if an error occurs during the process.java.util.Collection<java.lang.String> getDateFieldsFromView(int vdpDataSourceID,
java.lang.String viewName)
throws VDPConnectException,
InstanceNotFoundException,
InternalErrorException
null.vdpDataSourceID - the identifier of the VDP data source created in Scheduler.viewName - the name of the view.VDPConnectException - if a connection error occurs against VDP. Typically, the connection
was refused remotely or the authentication was wrong.InstanceNotFoundException - if the data source does not exist.InternalErrorException - if an error occurs during the process.java.util.Collection<java.lang.String> getTextFieldsFromView(int vdpDataSourceID,
java.lang.String viewName)
throws VDPConnectException,
InstanceNotFoundException,
InternalErrorException
null.vdpDataSourceID - the identifier of the VDP data source created in Scheduler.viewName - the name of the view.VDPConnectException - if a connection error occurs against VDP. Typically, the connection
was refused remotely or the authentication was wrong.InstanceNotFoundException - if the data source does not exist.InternalErrorException - if an error occurs during the process.java.lang.String validateQuery(int vdpDataSourceID,
java.lang.String query)
throws InstanceNotFoundException,
VDPConnectException,
InternalErrorException
vdpDataSourceID - the identifier of the VDP data source created in Scheduler.query - the query to test.String with the error message; null,
otherwise.InstanceNotFoundException - if the data source does not exist.VDPConnectException - if a connection error occurs against VDP. Typically, the connection
was refused remotely or the authentication was wrong.InternalErrorException - if an error occurs during the process.java.lang.String validateQuery(int vdpDataSourceID,
java.lang.String query,
java.lang.String contextOpts)
throws InstanceNotFoundException,
VDPConnectException,
InternalErrorException
vdpDataSourceID - the identifier of the VDP data source created in Scheduler.query - the query to test.contextOpts - the query context options. For instance: "'prop1'='val1','propN'='valN'"String with the error message; null,
otherwise.InstanceNotFoundException - if the data source does not exist.VDPConnectException - if a connection error occurs against VDP. Typically, the connection
was refused remotely or the authentication was wrong.InternalErrorException - if an error occurs during the process.java.util.Collection<java.lang.String> getViewNames(int vdpDataSourceID,
java.lang.String catalogName,
java.lang.String viewNameFilter)
throws VDPConnectException,
InstanceNotFoundException,
InternalErrorException
vdpDataSourceID - the identifier of the VDP data source created in Scheduler.catalogName - the name of the database. null accepted to search all databasesviewNameFilter - filters view names. null or empty string accepted if no filter neededVDPConnectException - if a connection error occurs against VDP. Typically, the connection was refused
remotely or the authentication was wrong.InstanceNotFoundException - if the data source does not exist.InternalErrorException - if an error occurs during the process.java.util.Collection<java.lang.String> getJDBCTableViewNames(int vdpDataSourceID,
java.lang.String catalogName,
java.lang.String viewNameFilter)
throws VDPConnectException,
InstanceNotFoundException,
InternalErrorException
vdpDataSourceID - the identifier of the VDP data source created in Scheduler.catalogName - the name of the database. null accepted to search all databasesviewNameFilter - filters view names. null or empty string accepted if no filter neededVDPConnectException - if a connection error occurs against VDP. Typically, the connection was refused
remotely or the authentication was wrong.InstanceNotFoundException - if the data source does not exist.InternalErrorException - if an error occurs during the process.java.util.Collection<java.lang.String> getSummaryViewNames(int vdpDataSourceID,
java.lang.String catalogName,
java.lang.String viewNameFilter)
throws VDPConnectException,
InstanceNotFoundException,
InternalErrorException
vdpDataSourceID - the identifier of the VDP data source created in Scheduler.catalogName - the name of the database. null accepted to search all databasesviewNameFilter - filters view names. null or empty string accepted if no filter neededVDPConnectException - if a connection error occurs against VDP. Typically, the connection was refused
remotely or the authentication was wrong.InstanceNotFoundException - if the data source does not exist.InternalErrorException - if an error occurs during the process.VDPViewInfo getViewInfo(int vdpDataSourceID, java.lang.String viewName) throws VDPConnectException, InstanceNotFoundException, InternalErrorException
vdpDataSourceID - the identifier of the VDP data source created in Scheduler.viewName - the name of the view. Can also contain the catalog using 'catalog.viewname' format.VDPConnectException - if a connection error occurs against VDP. Typically, the connection
was refused remotely or the authentication was wrong.InstanceNotFoundException - if the data source does not exist.InternalErrorException - if an error occurs during the process.java.util.Collection<java.lang.String> getCatalogNames(int vdpDataSourceID)
throws VDPConnectException,
InstanceNotFoundException,
InternalErrorException
vdpDataSourceID - the identifier of the VDP data source created in Scheduler.VDPConnectException - if a connection error occurs against VDP. Typically, the connection
was refused remotely or the authentication was wrong.InstanceNotFoundException - if the data source does not exist.InternalErrorException - if an error occurs during the process.java.util.Collection<VDPViewElement> getElements(int vdpDataSourceID, VDPViewElementFilter elementFilter) throws VDPConnectException, InstanceNotFoundException, InternalErrorException
vdpDataSourceID - the identifier of the VDP data source created in Scheduler.elementFilter - data to filter retrieved elements, like name of database or subtype.VDPConnectException - if a connection error occurs against VDP. Typically, the connection
was refused remotely or the authentication was wrong.InstanceNotFoundException - if the data source does not exist.InternalErrorException - if an error occurs during the process.java.util.Collection<<any>> getVDPI18NList(int vdpDataSourceID)
throws VDPConnectException,
InstanceNotFoundException,
InternalErrorException
vdpDataSourceID - the identifier of the VDP data source created in Scheduler.VDPConnectException - if a connection error occurs against VDP. Typically, the connection was
refused remotely or the authentication was wrong.InstanceNotFoundException - if the data source does not exist.InternalErrorException - if an error occurs during the process.VDPLocale getVDPLocale(int vdpDataSourceID, java.lang.String code) throws VDPConnectException, InstanceNotFoundException, InternalErrorException
vdpDataSourceID - the identifier of the VDP data source created in Scheduler.code - code of the localeVDPConnectException - if a connection error occurs against VDP. Typically, the connection was
refused remotely or the authentication was wrong.InstanceNotFoundException - if the data source does not exist.InternalErrorException - if an error occurs during the process.Copyright © 2024 Denodo Technologies. All rights reserved.