KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > lutris > appserver > server > sql > oracle > OracleDBConnection


1 /*
2  * Enhydra Java Application Server Project
3  *
4  * The contents of this file are subject to the Enhydra Public License
5  * Version 1.1 (the "License"); you may not use this file except in
6  * compliance with the License. You may obtain a copy of the License on
7  * the Enhydra web site ( http://www.enhydra.org/ ).
8  *
9  * Software distributed under the License is distributed on an "AS IS"
10  * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
11  * the License for the specific terms governing rights and limitations
12  * under the License.
13  *
14  * The Initial Developer of the Enhydra Application Server is Lutris
15  * Technologies, Inc. The Enhydra Application Server and portions created
16  * by Lutris Technologies, Inc. are Copyright Lutris Technologies, Inc.
17  * All Rights Reserved.
18  *
19  * Contributor(s):
20  *
21  * $Id: OracleDBConnection.java,v 1.1 2004/09/03 13:42:52 sinisa Exp $
22  */

23 package com.lutris.appserver.server.sql.oracle;
24
25 import java.sql.SQLException JavaDoc;
26
27 import com.lutris.appserver.server.sql.ConnectionAllocator;
28 import com.lutris.appserver.server.sql.standard.StandardDBConnection;
29
30 /**
31  * An Oracle database connection object used by the Oracle logical database.
32  *
33  * @see StandardDBConnection
34  * @author Paul Morgan
35  * @since LBS1.8
36  * @version $Revision: 1.1 $
37  */

38 public class OracleDBConnection extends StandardDBConnection {
39
40     /**
41      * Create a connection to a JDBC database with oracle specific symantics.
42      *
43      * @see StandardDBConnection#StandardDBConnection
44      * @param url
45      * JDBC URL of database.
46      * @param user
47      * SQL user name.
48      * @param password
49      * SQL password.
50      * @param maxPreparedStatements
51      * maximum number of preparse statements. a value of less than zero
52      * queries JDBC for the value.
53      * @param connectionAllocator
54      * the connection allocator that this connection belongs to.
55      * @param logging
56      * specifying <CODE>true</CODE> enables SQL logging.
57      * @param generation
58      * a generation number used to drop old connection when they
59      * are released.
60      * @exception SQLException
61      * If a connection can't be established.
62      */

63     protected OracleDBConnection(OracleConnectionAllocator connectionAllocator,
64             String JavaDoc url, String JavaDoc user, String JavaDoc password,
65             int maxPreparedStatements,
66             boolean logging, int generation)
67         throws SQLException JavaDoc {
68         super((ConnectionAllocator)connectionAllocator, url, user, password, maxPreparedStatements,
69                 logging, generation);
70     }
71 }
72
Popular Tags