Reference Database Console in Java Code

Answered

I just got IntelliJ Ultimate (hurray!) and I have been messing with the database tools and I was wondering if its possible for my Java code to reference the queries in saved consoles. I have a console, named "Select User" and it has my query I use for fetching user data based on a parameter (using ?). As of right now I just save the query in a "private static final String" field that I call. I would like to be able to remove that and just reference the console if at all possible. Thanks.

0
1 comment

It's not possible. Your Java code is supposed to be standalone and compilable / executable outside of the IDE so it cannot depend on the IDE specific features.

0

Please sign in to leave a comment.