SQLManager.java

00001 /*
00002  * JOnAS: Java(TM) Open Application Server
00003  * Copyright (C) 1999 Bull S.A.
00004  * Contact: jonas-team@objectweb.org
00005  *
00006  * This library is free software; you can redistribute it and/or
00007  * modify it under the terms of the GNU Lesser General Public
00008  * License as published by the Free Software Foundation; either
00009  * version 2.1 of the License, or any later version.
00010  *
00011  * This library is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014  * Lesser General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU Lesser General Public
00017  * License along with this library; if not, write to the Free Software
00018  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307
00019  * USA
00020  *
00021  * --------------------------------------------------------------------------
00022  * $Id: SQLManager.java,v 1.3 2004/10/29 23:33:37 ehardesty Exp $
00023  * --------------------------------------------------------------------------
00024  */
00025 package org.objectweb.jonas.resource;
00026 
00027 import java.sql.PreparedStatement;
00028 import java.sql.SQLException;
00029 
00035 public interface SQLManager {
00036 
00046      PreparedStatement getPStatement(MCInfo mcinfo,
00047                                              Object conn,
00048                                              String user,
00049                                              String sql)
00050          throws SQLException;
00051 
00063      PreparedStatement getPStatement(MCInfo mcinfo,
00064                                      Object conn,
00065                                      String user,
00066                                      String sql,
00067                                      int resultSetType,
00068                                      int resultSetConcurrency)
00069          throws SQLException;
00070 
00071 
00072 // JDK 1.4
00083      PreparedStatement getPStatement(MCInfo mcinfo,
00084                                      Object conn,
00085                                      String user,
00086                                      String sql,
00087                                      int autoGeneratedKeys)
00088          throws SQLException;
00089 
00100      PreparedStatement getPStatement(MCInfo mcinfo,
00101                                      Object conn,
00102                                      String user,
00103                                      String sql,
00104                                      int[] columnIndexes)
00105          throws SQLException;
00106 
00119      PreparedStatement getPStatement(MCInfo mcinfo,
00120                                      Object conn,
00121                                      String user,
00122                                      String sql,
00123                                     int resultSetType,
00124                                     int resultSetConcurrency,
00125                                     int resultSetHoldability)
00126          throws SQLException;
00127 
00138       PreparedStatement getPStatement(MCInfo mcinfo,
00139                                       Object conn,
00140                                       String user,
00141                                       String sql,
00142                                       String[] columnNames)
00143          throws SQLException;
00144  }

Generated on Tue Feb 15 15:05:21 2005 for JOnAS by  doxygen 1.3.9.1