ilog.views.maps.format.oracle
Class IlvDefaultSDOJConnectionFactory

java.lang.Object
  extended by ilog.views.maps.format.oracle.IlvDefaultSDOJConnectionFactory
All Implemented Interfaces:
IlvSDOConnectionFactory

public class IlvDefaultSDOJConnectionFactory
extends Object
implements IlvSDOConnectionFactory

The connection factory using a Swing dialog box. This class can be used when an .ivl file containing an IlvSDOLayer object is read. If the password required to open the connection to an Oracle database was not saved in the file, this connection factory displays a Swing dialog box where the user can enter the connection parameters.

The default connection factory uses an AWT dialog box, but this Swing connection factory can be installed by an application using IlvSDOConnection.SetConnectionFactory.

Since:
JViews 3.0
See Also:
IlvSDOConnection.SetConnectionFactory(ilog.views.maps.format.oracle.IlvSDOConnectionFactory)

Constructor Summary
IlvDefaultSDOJConnectionFactory()
          Initializes an instance of IlvDefaultSDOJConnectionFactory.
 
Method Summary
 JDialog getDialog()
          Returns the dialog box used to enter the connection parameters.
 void makeConnection(IlvSDOConnection conn)
          This method is called when an IlvSDOLayer object requires an Oracle connection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IlvDefaultSDOJConnectionFactory

public IlvDefaultSDOJConnectionFactory()
Initializes an instance of IlvDefaultSDOJConnectionFactory.

Method Detail

getDialog

public JDialog getDialog()
Returns the dialog box used to enter the connection parameters.


makeConnection

public void makeConnection(IlvSDOConnection conn)
This method is called when an IlvSDOLayer object requires an Oracle connection. If the connection information is not sufficient to create a connection to an Oracle database, a dialog box is displayed asking the user to enter the connection parameters.

Specified by:
makeConnection in interface IlvSDOConnectionFactory


Copyright © 1996-2007 ILOG S.A. All rights reserved.   Documentation homepage.