Can JDBC3.0 code coexist with J2SE 1.4 ?

I am working on a large project that currently is deployed on J2SE 1.3.1.
One class implements java.sql.Connection and, as there are new methods
on the Connection interface in J2SE 1.4, this class
won't compile with 1.4.
I can add the additional methods to MyConnection, but
there is no separate jdbc.jar for jdbc 3.0 which means
I can't execute the modified class with J2SE 1.3.
Am I missing something here?
Is there really no way the same code that implements java.sql.Connection can run in both 1.3 and 1.4?
Peter Booth

The class is a customized connection that works with our own connection pool.
The problem is that to have the class compile with Java 1.4, I need to implement
new methods such as the following. The first method works
fine but the second depends upon the existence of
java.sql.SavePoint - which would require the Java 1.4
JDBC classes.
I am sure I am not the only person encountering this.
Is there any reason why a JDBC 3 jar isn't available
as a separate download?.
public PreparedStatement prepareStatement(String sql, String[] columnNames) throws SQLException
throw new java.lang.UnsupportedOperationException(
"MyConnection: Method prepareStatement(String , String[] ) not implemented yet. \nThis is a Java 1.4 method and we're still using Java 1.3.1 in production");
public void releaseSavepoint(Savepoint savepoint) throws SQLException
{                                                                                      throw new java.lang.UnsupportedOperationException(  "MyConnection: Method releaseSavepoint(Savepoint ) not implemented yet. \nThis is a Java 1.4 method and we're still using Java 1.3.1");                                       
}

Similar Messages

  • Can a java code interact with trigger

    Hi guyz ,
    is there any way by which a trigger can interact with JDBC ?
    I want to check the database each time its updated and if some condition is violated , the info((row from table which has voilated some rule) is passed to java code which can then take necessary action . Can anyone help me out in this because i am not aware of any way by which a trigger can interact with java code .
    Regards,
    Nikhi

    nikhil456123 wrote:
    Hi guyz ,
    is there any way by which a trigger can interact with JDBC ?
    I want to check the database each time its updated and if some condition is violated , the info((row from table which has voilated some rule) is passed to java code which can then take necessary action . Can anyone help me out in this because i am not aware of any way by which a trigger can interact with java code .Note that even though it might be possible you might want to consider that it isn't necessarily a good idea.
    Say the action is "send email". Then every time an insert/update/delete occurs then an email is sent. That would obviously slow down those operations a lot. Not to mention that if 1000 inserts occur then someone is going to get 1000 emails.
    There can be alternatives that are much better.

  • Can Flex Builder 2 coexist with Flex Builder 3?

    Hi -
    I'm new to the technology and the Flex Builder env. I've
    downloaded the Flex 3 and got it going no problem. I want to
    download the Flex Builder 3 trial addition or maybe Eclipse and
    then the Builder plugin but... I'm scheduled for a class 1st week
    of April and they want us to use Flex Builder 2 :(
    Does anyone know if I can have both simultaneously installed
    without issues?
    tia -
    Jay

    To be honest I simply use two eclipse installations.
    Eclipse 3.2 for flexbuilder 2
    Eclipse Europe (3.3) for flexbuilder 3.
    Ries

  • Can Acrobat 8 Professional coexist with FrameMaker 8.0?

    I run FrameMaker 8.0p273 on a Dell Latitude D630 laptop running Windows XP Professional Version 2002, Service Pack 2.
    When I try to install Acrobat 8 Professional, I get a setup message stating "Setup has detected that you already have a more functional product installed. Setup will now terminate."
    I also have Adobe Reader 8.1.2 installed. (I had thought that Reader might have been the application that Acrobat was complaining about, but uninstalling Reader didn't help.)
    I have created PDF files from FrameMaker 8 in the hopes of using the commenting and sticky-note features, but the PDFs that I create do not have that functionality.
    Should I uninstall FrameMaker 8, install Acrobat 8 Professional, and then reinstall FrameMaker?
    Or is there some other way to get the full functionality of Acrobat 8 that my FrameMaker installation seems to think I already have?

    Thanks, Arnis: Your suggestion worked well. Here are the exact steps I took:
    1. Uninstalled FrameMaker 8, the PDF Creation Add-On, and the two FM patches I'd installed (8.0p266 and 8.0p273). (I might not have needed to uninstall the two patches, but I wanted a clean slate.)
    2. Installed Acrobat 8 Professional.
    3. Reinstalled FM 8 without the PDF Creation Add-On. (There was a separate window to choose the latter installation, which I declined.)
    4. Reinstalled patches p266 and p273.
    5. Restarted my system.
    6. Restarted FM 8, opened a FM file, and successfully created a PDF file (File > Save As PDF).
    Thanks for your help--
    Kevin

  • Can I use JDBC 2.x with j2se 1.4

    I am using j2se 1.4 with Oracle 8i. I know j2se 1.4 comes with jdbc 3.0, but Oracle supports jdbc2.0. Can I use jdbc2.0 with j2se 1.4? Is jdbc3.0 backward compatible with jdbc2.0? What is the possible way of using jdbc2.0 with j2se 1.4.

    Should be no problem, I use jdk 1.4 / jdbc 2.0 with a DB2 database at work. Thats just my experience. Typically the JDBC api are backwards compatable. For example, we just switched to JDBC 2.0 from JDBC 1.2, and all of the old code still works.

  • CS 5.5 coexist with CS 6.0 causes FrameMaker issue - can't import SVG file!

    Due to some project demands, we installed Adobe CS back to 5.5 on a computer which has CS6.0 already installed. After the installation, everything worked in normal except one problem - we could not import SVG into FM file for all versions of FrameMaker on this computer.
    Does the coexistence of CS 5.5 and 6.0 cause this issue? Or can CS 5.5 coexist with CS6.0 on a same machine? or any other reasons? Please comments!
    Thanks in advance for your help!

    Due to some project demands, we installed Adobe CS back to 5.5 on a computer which has CS6.0 already installed. After the installation, everything worked in normal except one problem - we could not import SVG into FM file for all versions of FrameMaker on this computer.
    Does the coexistence of CS 5.5 and 6.0 cause this issue? Or can CS 5.5 coexist with CS6.0 on a same machine? or any other reasons? Please comments!
    Thanks in advance for your help!

  • Will 1.3 code compiled with 1.4 run on JVM/JRE 1.3?

    Will byte code created with j2se 1.4.2 only run on JRE 1.4.2 and forthcoming versions even if my java source code only contains classes that were available already in version 1.3?
    If so, is it a good idea to install and use the earliest version of java compiler that will digest my code in order to create an applet that is accessible to more users without downloading the latest JRE/JVM?
    Grateful for any help,
    /Sven

    Byte code generated by 1.4.2 javac will run on 1.2 and up (assuming that coming versions keep backwards compatibility). You might want to have a look at javac's cross-compilation capabilities (aka -target switch):
    http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javac.html#options
    HTH, Markus

  • I brought a iTunes card and the the code on the back is not there it has faded away can u please help me with this problem

    i brought a iTunes card and the the code on the back is not there it has faded away can u please help me with this problem

    Hi Daniel ...
    Try here > iTunes Store: Invalid, inactive, or illegible codes

  • I have a Adobe Creative Cloud's code, this is alphanumeric, but the registry only works with numeric codes ¿where i can use my code?.

    Hi, i have a problem with my Adobe Creative Cloud's code, this is alphanumeric, but the registry only works with numeric codes ¿where i can use my code? is a year-long Creative Cloud subscription.

    You most likely have a redemption code... especially if you did not buy direct from Adobe
    Redemption Code http://helpx.adobe.com/x-productkb/global/redemption-code-help.html
    -or https://forums.adobe.com/thread/1572504

  • Can the Zen Stone Plus coexist with iTun

    I am a runner and I am interested in the Zen Stone Plus. I use iTunes and various iPods. How would the Zen software coexist with iTunes.
    Most of the music in my library is from?my own CD's?and not from the iTunes Store. Thank you. Bob Michiel?

    Yes, the softwares can co-exists with each other. However the iTunes would not work with the Zen Stone Plus.

  • Can SS9 coexist with SS8 on the same box?

    Hello,
    First off, congratulations on the SS9 release!
    I'm about to try it out, but I can't make sense of some what's said in the release notes.
    "If you have Forte Developer 6 software, Sun ONE Studio 7 software, Sun ONE Studio 8 software, or Sun Studio 8 software installed, be sure to follow the installation instructions and install the Sun Studio 9 software in a different directory."
    The next paragraph says:
    "If you have Sun ONE Studio 8, Compiler Collection software or the Sun Studio 8 software installed, be sure to follow the installation instructions and install the Sun Studio 9 software on a different system."
    The install guide says:
    "If you installed an Early Access version of the Studio 9 software or any other version of the Sun Studio software on your system, then install the current version of the Sun Studio 9 software in a different directory."
    So can SS9 coexist with SS8 on the same box, albeit in a different directory, or not? I have an S8 box with SS8 on it.
    Regards,
    Sergey

    I don't have the installation guide handy, but the Release Notes say something different. The Install Guide is wrong about the EA and CA versions. The wording about installing on a different "system" is also wrong. I'll forward this information and see what can be done about correcting it. (No matter how many times a doc is reviewed, it's still wrong ... )
    The rules for Sun Studio 9 installation are actually simple, and are the same as for all previous releases:
    1. You can install any number of different releases on one system, but each must be installed in a different base directory.
    2. You can install only copy of a given release on one system.
    The default base directory is /opt, and if any release is installed there, additional releases must be installed somewhere else. For example, you could install Sun Studio 9 in /SS9 or /export/SS9 or any place other than /opt.
    Because of #2, you must uninstall an EA or CA version of a release before installing another version of that release. For example, if you install the first EA version, you must uninstall it before installing the second EA version, or CA version or final release version. If you installed the CA version, you must uninstall it before installing the final release version.
    Patches to an existing installation don't count as a new version. A patch by definition is installed on top of the release that it patches.

  • I can not register this product with the code supplied? [was:Photoshop]

    I can not register this product with the code supplied?

    Welcome to the forum.
    Along with Trevor's important questions, I have a few more, please:
    Did you buy Ps directly from Adobe (the Adobe Store), or from a certified reseller, such as directly from Amazon?
    Did you buy Ps with physical media, or as a download?
    If the former, did you get the S/N from the envelope that the media came in?
    If the latter, did you get the S/N directly via e-mail from Adobe?
    Do you get any error messages?
    If so, what is the exact text of each one?
    When you say "register," do you mean Activation, or actually registering with Adobe?
    Good luck,
    Hunt

  • After downloading itune to my dell computer (with windows vista), the DVD RW drive is disabled. The device status shows "device can not start (code 10)" Any suggestions? Thanks.

    after downloading itune to my dell computer (with windows vista), the DVD RW drive is disabled. The device status shows "device can not start (code 10)" Any suggestions? Thanks.

    additional info.
    I have found the correct error definition in english.
    "can not start the device (Code 10)"
    I have updated my bios to the latest version.
    I have just tried to uninstall all USB-drivers, and reinstall them.. Still no luck
    I have tried to uninstall and reinstall all webcam drivers - no luck

  • Can i copy COD 4 mac app store download to disk and then install. on my other mac if the other mac is compatible? I won,t be sharing it with anyone else.

    Can i copy COD 4 mac app store download to disk and then install it on my other mac? I won,t be sharing with anyone else.

    if you are connected with the same appleID on the other mac then you can just download it for free again in the app store
    you can only buy an app 1 time they don't bind to the computer or ios device for that matter they bind to the appleID

  • Can someone pls help me with this code

    The method createScreen() creates the first screen wherein the user makes a selection if he wants all the data ,in a range or single data.The problem comes in when the user makes a selection of single.that then displays the singleScreen() method.Then the user has to input a key data like date or invoice no on the basis of which all the information for that set of data is selected.Now if the user inputs a wrong key that does not exist for the first time the program says invalid entry of data,after u click ok on the option pane it prompts him to enter the data again.But since then whenever the user inputs wrong data the program says wrong data but after displaying the singlescreen again does not wait for input from the user it again flashes the option pane with the invalid entry message.and this goes on doubling everytime the user inputs wrong data.the second wrong entry of data flashes the error message twice,the third wrong entry flashes the option pane message 4 times and so on.What actually happens is it does not wait at the singlescreen() for user to input data ,it straight goes into displaying the JOptionPane message for wrong data entry so we have to click the optiion pane twice,four times and so on.
    Can someone pls help me with this!!!!!!!!!
    import java.util.*;
    import javax.swing.*;
    import javax.swing.event.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.text.*;
    import java.util.*;
    public class MainMenu extends JFrame implements ActionListener,ItemListener{
    //class     
         FileReaderDemo1 fd=new FileReaderDemo1();
         FileReaderDemo1 fr;
         Swing1Win sw;
    //primary
         int monthkey=1,counter=0;
         boolean flag=false,splitflag=false;
         String selection,monthselection,dateselection="01",yearselection="00",s,searchcriteria="By Date",datekey,smonthkey,invoiceno;
    //arrays
         String singlesearcharray[];
         String[] monthlist={"Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sept","Oct","Nov","Dec"};
         String[] datelist=new String[31];
         String[] yearlist=new String[100];
         String[] searchlist={"By Date","By Invoiceno"};
    //collection
         Hashtable allinvoicesdata=new Hashtable();
         Vector data=new Vector();
         Enumeration keydata;
    //components
         JButton next=new JButton("NEXT>>");
         JComboBox month,date,year,search;
         JLabel bydate,byinvno,trial;
         JTextField yeartext,invtext;
         JPanel panel1,panel2,panel3,panel4;
         JRadioButton single,range,all;
         ButtonGroup group;
         JButton select=new JButton("SELECT");
    //frame and layout declarations
         JFrame jf;
         Container con;
         GridBagLayout gridbag=new GridBagLayout();
         GridBagConstraints gc=new GridBagConstraints();
    //constructor
         MainMenu(){
              jf=new JFrame();
              con=getContentPane();
              con.setLayout(null);
              fr=new FileReaderDemo1();
              createScreen();
              setSize(500,250);
              setLocation(250,250);
              setVisible(true);
    //This is thefirst screen displayed
         public void createScreen(){
              group=new ButtonGroup();
              single=new JRadioButton("SINGLE");
              range=new JRadioButton("RANGE");
              all=new JRadioButton("ALL");
              search=new JComboBox(searchlist);
              group.add(single);
              group.add(range);
              group.add(all);
              single.setBounds(100,50,100,20);
              search.setBounds(200,50,100,20);
              range.setBounds(100,90,100,20);
              all.setBounds(100,130,100,20);
              select.setBounds(200,200,100,20);
              con.add(single);
              con.add(search);
              con.add(range);
              con.add(all);
              con.add(select);
              search.setEnabled(false);
              single.addItemListener(this);
              search.addActionListener(new MyActionListener());     
              range.addItemListener(this);
              all.addItemListener(this);
              select.addActionListener(this);
         public class MyActionListener implements ActionListener{
              public void actionPerformed(ActionEvent a){
                   JComboBox cb=(JComboBox)a.getSource();
                   if(a.getSource().equals(month))
                        monthkey=((cb.getSelectedIndex())+1);
                   if(a.getSource().equals(date)){
                        dateselection=(String)cb.getSelectedItem();
                   if(a.getSource().equals(year))
                        yearselection=(String)cb.getSelectedItem();
                   if(a.getSource().equals(search)){
                        searchcriteria=(String)cb.getSelectedItem();
         public void itemStateChanged(ItemEvent ie){
              if(ie.getItem()==single){
                   selection="single";     
                   search.setEnabled(true);
              else if (ie.getItem()==all){
                   selection="all";
                   search.setEnabled(false);
              else if (ie.getItem()==range){
                   search.setEnabled(false);
         public void actionPerformed(ActionEvent ae){          
              if(ae.getSource().equals(select))
                        if(selection.equals("single")){
                             singleScreen();
                        if(selection.equals("all"))
                             sw=new Swing1Win();
              if(ae.getSource().equals(next)){
                   if(monthkey<9)
                        smonthkey="0"+monthkey;
                   System.out.println(smonthkey+"/"+dateselection+"/"+yearselection+"it prints this");
                   allinvoicesdata=fr.read(searchcriteria);
                   if (searchcriteria.equals("By Date")){
                        System.out.println("it goes in this");
                        singleinvoice(smonthkey+"/"+dateselection+"/"+yearselection);
                   else if (searchcriteria.equals("By Invoiceno")){
                        invoiceno=invtext.getText();
                        singleinvoice(invoiceno);
                   if (flag == false){
                        System.out.println("flag is false");
                        singleScreen();
                   else{
                   System.out.println("its in here");
                   singlesearcharray=new String[data.size()];
                   data.copyInto(singlesearcharray);
                   sw=new Swing1Win(singlesearcharray);
         public void singleinvoice(String searchdata){
              keydata=allinvoicesdata.keys();
              while(keydata.hasMoreElements()){
                        s=(String)keydata.nextElement();
                        if(s.equals(searchdata)){
                             System.out.println(s);
                             flag=true;
                             break;
              if (flag==true){
                   System.out.println("vector found");
                   System.exit(0);
                   data= ((Vector)(allinvoicesdata.get(s)));
              else{
                   JOptionPane.showMessageDialog(jf,"Invalid entry of date : choose again");     
         public void singleScreen(){
              System.out.println("its at the start");
              con.removeAll();
              SwingUtilities.updateComponentTreeUI(con);
              con.setLayout(null);
              counter=0;
              panel2=new JPanel(gridbag);
              bydate=new JLabel("By Date : ");
              byinvno=new JLabel("By Invoice No : ");
              dateComboBox();
              invtext=new JTextField(6);
              gc.gridx=0;
              gc.gridy=0;
              gc.gridwidth=1;
              gridbag.setConstraints(month,gc);
              panel2.add(month);
              gc.gridx=1;
              gc.gridy=0;
              gridbag.setConstraints(date,gc);
              panel2.add(date);
              gc.gridx=2;
              gc.gridy=0;
              gc.gridwidth=1;
              gridbag.setConstraints(year,gc);
              panel2.add(year);
              bydate.setBounds(100,30,60,20);
              con.add(bydate);
              panel2.setBounds(170,30,200,30);
              con.add(panel2);
              byinvno.setBounds(100,70,100,20);
              invtext.setBounds(200,70,50,20);
              con.add(byinvno);
              con.add(invtext);
              next.setBounds(300,200,100,20);
              con.add(next);
              if (searchcriteria.equals("By Invoiceno")){
                   month.setEnabled(false);
                   date.setEnabled(false);
                   year.setEnabled(false);
              else if(searchcriteria.equals("By Date")){
                   byinvno.setEnabled(false);
                   invtext.setEnabled(false);
              monthkey=1;
              dateselection="01";
              yearselection="00";
              month.addActionListener(new MyActionListener());
              date.addActionListener(new MyActionListener());
              year.addActionListener(new MyActionListener());
              next.addActionListener(this);
              invtext.addKeyListener(new KeyAdapter(){
                   public void keyTyped(KeyEvent ke){
                        char c=ke.getKeyChar();
                        if ((c == KeyEvent.VK_BACK_SPACE) ||(c == KeyEvent.VK_DELETE)){
                             System.out.println(counter+"before");
                             counter--;               
                             System.out.println(counter+"after");
                        else
                             counter++;
                        if(counter>6){
                             System.out.println(counter);
                             counter--;
                             ke.consume();
                        else                    
                        if(!((Character.isDigit(c) || (c == KeyEvent.VK_BACK_SPACE) || (c == KeyEvent.VK_DELETE)))){
                             getToolkit().beep();
                             counter--;     
                             JOptionPane.showMessageDialog(null,"please enter numerical value");
                             ke.consume();
              System.out.println("its at the end");
         public void dateComboBox(){          
              for (int counter=0,day=01;day<=31;counter++,day++)
                   if(day<=9)
                        datelist[counter]="0"+String.valueOf(day);
                   else
                        datelist[counter]=String.valueOf(day);
              for(int counter=0,yr=00;yr<=99;yr++,counter++)
                   if(yr<=9)
                        yearlist[counter]="0"+String.valueOf(yr);
                   else
                        yearlist[counter]=String.valueOf(yr);
              month=new JComboBox(monthlist);
              date=new JComboBox(datelist);
              year=new JComboBox(yearlist);
         public static void main(String[] args){
              MainMenu mm=new MainMenu();
         public class WindowHandler extends WindowAdapter{
              public void windowClosing(WindowEvent we){
                   jf.dispose();
                   System.exit(0);
    }     

    Hi,
    I had a similar problem with a message dialog. Don't know if it is a bug, I was in a hurry and had no time to search the bug database... I found a solution by using keyPressed() and keyReleased() instead of keyTyped():
       private boolean pressed = false;
       public void keyPressed(KeyEvent e) {
          pressed = true;
       public void keyReleased(KeyEvent e) {
          if (!pressed) {
             e.consume();
             return;
          // Here you can test whatever key you want
       //...I don't know if it will help you, but it worked for me.
    Regards.

Maybe you are looking for

  • Installation error during creation of user SAPJSF

    Hello, i'm performing SOLMAN installation and the installation stops in "Import Abap" step with problem creating the SAPJSF user. Several posts regarding the same error did not helped. When the sapinst is trying to create the SAPJSF user, i notice th

  • Acrobat 8 standard cannot reactivate

    I have just deactivated my Acrobat 8 standard so I can put in on my machine checked the serial number before doing this.  When I proceeded to load it on my new pc it says invalid serial number.  Help required as I need it to help the shop floor and o

  • Displaying xml content in the browser

    Hi, In my application i am generating an XML content which i was storing into a file. Now as per the new requirement, this xml content needs to be displayed in the browser. (The way it gets displayed when we double click on an xml file). Can some one

  • Unclear if Illustrator or InDesign should be used - advice needed

    Hi, I've been using Illustrator for 10+ years to design my companies brochures, logos, business cards, forms, advertisements, instruction manuals, etc.  LOTS of stuff.  Lately it's been bothering me that I have so much duplicated content spread acros

  • Guidelines for Using Ovi branded icon inside an ap...

    Does anyone have inputs on any guidlines for using ovi branded icons within the application? Is it ok to have an ovi branded icon within an application to route to the ovi store page of your content?