Click here to Skip to main content
15,891,704 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi:

I want to make a separate class for ORACLE connection (OJDBC). And three separate classes for SELECT, UPDATE, DELETE queries.

These select, update, delete queries should get connection from the connection code class. How can I do that??

altogether there will be separate 4 classes in my program. How can I do it?

Classes:
1. connection class
2. select class
3. delete class
4. update class
Posted
Comments
PIEBALDconsult 21-Mar-13 22:53pm    
Yeah, that sounds silly.

1 solution

Not sure why do you want to have seperate classes for DML operations as you can write separate methods for it. Please check this LINK which explains the basics of JDBC.

Cheers,
Sudhakar
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900