public interface VDPManager extends Serializable
Modifier and Type | Method and Description |
---|---|
String |
generateOrderByExpressionWithPK(int vdpDataSourceID,
Collection<String> pkFields)
Returns a default ORDER BY expression generated from the selected PK fields.
|
String |
generateOrderByExpressionWithPK(int vdpDataSourceID,
String viewName)
Returns a default ORDER BY expression generated from the selected view's PK.
|
Collection<String> |
getDateFieldsFromView(int vdpDataSourceID,
String viewName)
Returns the date-type fields of a VDP view.
|
VDPViewFields |
getFieldsFromView(int vdpDataSourceID,
String viewName)
Returns the fields of a VDP view and which ones are mandatory.
|
String |
getIncrementalCacheStoredProcedureName(int vdpDataSourceID)
Returns the name of the stored procedure for incremental cache load of the VDP Server defined by
the identifier of the data source.
|
Collection<String> |
getPKFieldsFromView(int vdpDataSourceID,
String viewName)
Returns the PK fields of a VDP view.
|
Collection<String> |
getTextFieldsFromView(int vdpDataSourceID,
String viewName)
Returns the text-type fields of a VDP view.
|
Collection<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.
|
Collection<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.
|
String |
validateQuery(int vdpDataSourceID,
String query)
Checks if a query is valid (without executing it).
|
String |
validateQuery(int vdpDataSourceID,
String query,
String contextOpts)
Checks if a query is valid (without executing it).
|
Collection<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.Collection<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.String getIncrementalCacheStoredProcedureName(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.String generateOrderByExpressionWithPK(int vdpDataSourceID, 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.String generateOrderByExpressionWithPK(int vdpDataSourceID, Collection<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.Collection<String> getPKFieldsFromView(int vdpDataSourceID, 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.Collection<String> getDateFieldsFromView(int vdpDataSourceID, 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.Collection<String> getTextFieldsFromView(int vdpDataSourceID, 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.VDPViewFields getFieldsFromView(int vdpDataSourceID, String viewName) throws VDPConnectException, InstanceNotFoundException, InternalErrorException
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.String validateQuery(int vdpDataSourceID, 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.String validateQuery(int vdpDataSourceID, String query, 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.Copyright © 2021 Denodo Technologies. All rights reserved.