Jump to content
We've recently updated our Privacy Statement, available here ×

Custom JRClauseFunction


sbyrne

Recommended Posts

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

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...