Oracle Data Mining Java API Reference
10g Release 1 (10.1)

B12276-01

oracle.dmt.odm
Interface Connection


public interface Connection

The interface Connection defines methods to communicate with a Data Mining Server (DMS) in an Oracle database.


Method Summary
 java.sql.Connection getDBConnection()
          Returns the database connection from the connection instance.
 java.util.Locale getLocale()
          Returns the locale of the connected Data Mining Server.
 java.lang.String getPassword()
          Deprecated. This method is deprecated in 10.1 for security. This method returns null value.
 java.lang.String getURL()
          Returns the URL to the connected Data Mining Server.
 java.lang.String getUser()
          Returns the login user name.
 void setLocale(java.util.Locale locale)
          Sets the locale in the Data Mining Server.

 

Method Detail

getUser

public java.lang.String getUser()
Returns the login user name.
Returns:
The name of the login user

getPassword

public java.lang.String getPassword()
Deprecated. This method is deprecated in 10.1 for security. This method returns null value.
Returns the login user password.
Returns:
The login password

getDBConnection

public java.sql.Connection getDBConnection()
Returns the database connection from the connection instance.
Returns:
The database connection

getURL

public java.lang.String getURL()
Returns the URL to the connected Data Mining Server.
Returns:
The URL of the DMS

setLocale

public void setLocale(java.util.Locale locale)
               throws java.sql.SQLException
Sets the locale in the Data Mining Server.
Parameters:
locale - A new locale
Throws:
java.sql.SQLException - when an error occurs during the execution.

getLocale

public java.util.Locale getLocale()
Returns the locale of the connected Data Mining Server.
Returns:
The locale of the DMS

Copyright © 2003 Oracle Corporation. All Rights Reserved.