[teiid-issues] [JBoss JIRA] (TEIID-4444) Add a built-in delegating translator that allows overriding all supports

Ramesh Reddy (JIRA) issues at jboss.org
Fri Sep 23 13:01:03 EDT 2016


    [ https://issues.jboss.org/browse/TEIID-4444?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13298019#comment-13298019 ] 

Ramesh Reddy commented on TEIID-4444:
-------------------------------------

Ok, Will be adding
{code}
@TranslatorProperty(display = "Add Supported Functions(CSV)", description = "Add comma separated names to system functions", advanced = true)
public void addSupportedFunctions(String functionNames) {
	if (supportedFunctions == null) {
		supportedFunctions = new ArrayList<String>();
		supportedFunctions.addAll(this.delegate.getSupportedFunctions());
	}
	StringTokenizer st = new StringTokenizer(functionNames, ",");
	while(st.hasMoreTokens()) {
		supportedFunctions.add(st.nextToken().trim());
	}
}

@TranslatorProperty(display = "Remove Supported Functions(CSV)", description = "Remove comma separated names from system functions", advanced = true)
public void removeSupportedFunctions(String functionNames) {
	if (supportedFunctions == null) {
		supportedFunctions = new ArrayList<String>();
		supportedFunctions.addAll(this.delegate.getSupportedFunctions());
	}
	StringTokenizer st = new StringTokenizer(functionNames, ",");
	while(st.hasMoreTokens()) {
		supportedFunctions.remove(st.nextToken().trim());
	}
}
{code}

> Add a built-in delegating translator that allows overriding all supports
> ------------------------------------------------------------------------
>
>                 Key: TEIID-4444
>                 URL: https://issues.jboss.org/browse/TEIID-4444
>             Project: Teiid
>          Issue Type: Feature Request
>          Components: Misc. Connectors
>            Reporter: Steven Hawkins
>            Assignee: Ramesh Reddy
>             Fix For: Open To Community, 9.1
>
>
> To assist in toggling specific capabilities without a patch, we should provide a built-in delegating translator that can selective toggle capabilities.



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the teiid-issues mailing list