sbyrne Posted March 20, 2015 Share Posted March 20, 2015 Is it possible to register a JRClauseFunction that will be used for any query executor?I have a custom ExtensionRegistry implementation. In Server 6.0.0, getExtensions(Class) is called with parameter net.sf.jasperreports.engine.query.QueryClauseFunctionBundle. I was hoping I could use this to support a custom clause to make string replacements in any query language. But on Studio Pro 6.0.0, I do not get a call to getExtensions(Class).The documenation (Ultimate Guide Third Edition page 80) says:New clause functions (in addition to the built-in IN and NOTIN) can be added by implementing net.sf.jasperreports.engine.query.JRClauseFunction and by extending the query executer to register the new functions.I do not see anywhere in JRQueryExecutor to register a JRClauseFunction. Does this imply that I must do it internal to my JRQueryExecutor implementation, and cannot register one for use with arbitrary query languages? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now