Results 1 to 6 of 6
Thread: Java functions
- 10-26-2011, 02:02 PM #1
Member
- Join Date
- Oct 2011
- Posts
- 4
- Rep Power
- 0
Java functions
Hello.
If a function doesn't exist in my java project, can I redirect and run another generic function?
The project I'm trying to implement will try to execute a lot of functions whose names will be known only at run time.
So I would like to implement a generic function that will be executed when java will try to execute a inexistent function.
Thank you.
- 10-26-2011, 02:44 PM #2
Member
- Join Date
- Oct 2011
- Posts
- 90
- Rep Power
- 0
Re: Java functions
I would suggest that this could be handled differently. What are you trying to do, specifically?
- 10-26-2011, 03:00 PM #3
Member
- Join Date
- Oct 2011
- Posts
- 4
- Rep Power
- 0
Re: Java functions
I would be happy to to this any another way.
I need to connect to different databases types and analyze the tables and the relations between these tables. I tried Hibernate for this project.
So if I have a table called customers with a column "name", then I must have the function "getName" in the class "customer.java". This is how Hibernate works
But I must do this at run time and at run time I don't have the class customer.java created.
I already asked on Hibernate forum if I can do something in Hibernate to fix this but I don't have an answer yet.
And here I asked if java can help about this problem at a upper level.
Hope this is not interpreted as a double post...
Thank you.Last edited by victorq; 10-26-2011 at 08:47 PM.
- 10-26-2011, 03:16 PM #4
Member
- Join Date
- Oct 2011
- Posts
- 90
- Rep Power
- 0
Re: Java functions
And what run time event triggers which database you connect to?
- 10-26-2011, 06:14 PM #5
Member
- Join Date
- Oct 2011
- Posts
- 4
- Rep Power
- 0
Re: Java functions
I choose the database so this is not a problem.
- 10-26-2011, 08:40 PM #6
Member
- Join Date
- Oct 2011
- Posts
- 4
- Rep Power
- 0
Similar Threads
-
How to return object or class from functions using Java Native Interface
By shai1981 in forum Advanced JavaReplies: 0Last Post: 10-03-2011, 08:27 AM -
Calling java functions from c++
By khajalid in forum New To JavaReplies: 13Last Post: 10-12-2010, 10:50 PM -
Java functions related to Convert.ToBase64String() in .Net
By identita in forum Advanced JavaReplies: 0Last Post: 03-09-2010, 06:26 AM -
JSP functions and Java Bean methods
By lisa.lipsky in forum JavaServer Pages (JSP) and JSTLReplies: 4Last Post: 07-07-2009, 07:29 AM -
java copy paste cut and undo functions
By Mr tuition in forum AWT / SwingReplies: 1Last Post: 12-09-2007, 12:02 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks