gov.sns.tools.database
Class OracleDatabaseAdaptor
java.lang.Object
|
+--gov.sns.tools.database.DatabaseAdaptor
|
+--gov.sns.tools.database.OracleDatabaseAdaptor
- public class OracleDatabaseAdaptor
- extends DatabaseAdaptor
OracleDatabaseAdaptor is a concrete subclass of DatabaseAdaptor for implementing methods
specifically for the Oracle database.
|
Method Summary |
java.sql.Array |
getArray(java.lang.String type,
java.sql.Connection connection,
java.lang.Object array)
Get an SQL Array given an SQL array type, connection and a primitive array |
java.sql.Connection |
getConnection(java.lang.String urlSpec,
java.lang.String user,
java.lang.String password)
Get a new database connection |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
arrayDescriptorMap
protected java.util.Map arrayDescriptorMap
OracleDatabaseAdaptor
public OracleDatabaseAdaptor()
- Public Constructor
getConnection
public java.sql.Connection getConnection(java.lang.String urlSpec,
java.lang.String user,
java.lang.String password)
throws DatabaseException
- Get a new database connection
- Specified by:
getConnection in class DatabaseAdaptor
- Parameters:
urlSpec - The URL to which to connectuser - The user loggin into the databasepassword - the user's password
- Throws:
DatabaseException - if a database exception is thrown
getArray
public java.sql.Array getArray(java.lang.String type,
java.sql.Connection connection,
java.lang.Object array)
throws DatabaseException
- Get an SQL Array given an SQL array type, connection and a primitive array
- Specified by:
getArray in class DatabaseAdaptor
- Parameters:
type - An SQL array type identifying the type of arrayconnection - An SQL connectionarray - The primitive Java array
- Returns:
- the SQL array which wraps the primitive array
- Throws:
DatabaseException - if a database exception is thrown