Hi everyone,
I'm working on a plugin migration which happens to use a DAO class that extends JdbcDaoSupport.
Now that it is not available anymore (JdbcDaoSupport) I was wondering how could I execute an SQL statement without changing everything to use ActiveObjects.
If someone could give me a hint, that'd be great!
Regards,
Ripka
Community moderators have prevented the ability to post new answers.
org.ofbiz.core.entity.jdbc.SQLProcessor sqlProcessor = null;
sqlProcessor = new org.ofbiz.core.entity.jdbc.SQLProcessor("defaultDS");
ResultSet rs=sqlProcessor.executeQuery("QUERY");
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Is there any ORM framework provided by Jira as we can't know what the underlying database is.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I determined the data source name like this:
ComponentAccessor.getOfBizDelegator().getDelegatorInterface().getEntityHelperName("Issue")
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Try to use org.ofbiz.core.entity.jdbc.SQLProcessor if you're looking for another way, but as Mizan said, why not just add the required dependency to your project?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
How about adding this class/ package as a dependency in your plugin ? what you mean by
Now that it is not available anymore
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
org.ofbiz.core.entity.jdbc.SQLProcessor sqlProcessor = null;
sqlProcessor = new org.ofbiz.core.entity.jdbc.SQLProcessor("defaultDS");
ResultSet rs=sqlProcessor.executeQuery(SQL_QUERY);
Regards
Onkar Ahire
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Community moderators have prevented the ability to post new answers.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.