ilog.views.maps.export
Class IlvSDOExporter

java.lang.Object
  extended by ilog.views.maps.export.IlvSDOExporter
All Implemented Interfaces:
IlvMapExportManager.IlvMapExporter

public class IlvSDOExporter
extends Object
implements IlvMapExportManager.IlvMapExporter

A IlvMapExporter specialized in exporting maps to Oracle SDO database. This class is supposed to be used with the IlvMapExportManager and the IlvMapExportDialog classes.

 exportBtn.addActionListener(new ActionListener() {
   public void actionPerformed(ActionEvent e) {
     IlvMapExportDialog exportDialog = new IlvMapExportDialog(view);
     exportDialog.registerVectorExporter(new IlvSDOExporter());
     exportDialog.setVisible(true);
   }
 }
 

Since:
JViews 7.5

Constructor Summary
IlvSDOExporter()
          Creates a new IlvSDOExporter.
 
Method Summary
 void exportFeature(IlvMapFeature feature, IlvMapLayer mapLayer)
          Export one IlvMapFeature
 void finishExport()
          This method is called by the IlvMapExportManager when all features are exported.
 void initExport(IlvMapLayer[] mapLayers)
          Prepare this exporter to export a collection of IlvMapFeature objects.
 void setConnection(IlvSDOConnection sdoConnection)
          Sets the current connection to be used by this IlvSDOExporter instance.
 void setSRID(Long srID)
          Changes the coordinate system for all export.
 void showConfigurationDialog(JDialog parent)
          Shows a configuration dialog for this exporter
 String toString()
          Returns A String describing this exporter (displayable in a combo box in the maps exporter GUI)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IlvSDOExporter

public IlvSDOExporter()
Creates a new IlvSDOExporter.

Method Detail

toString

public String toString()
Returns A String describing this exporter (displayable in a combo box in the maps exporter GUI)

Specified by:
toString in interface IlvMapExportManager.IlvMapExporter
Overrides:
toString in class Object
Returns:
A String describing this exporter (displayable in a combo box in the maps exporter GUI)

exportFeature

public void exportFeature(IlvMapFeature feature,
                          IlvMapLayer mapLayer)
Export one IlvMapFeature

Specified by:
exportFeature in interface IlvMapExportManager.IlvMapExporter
Parameters:
feature - the IlvMapFeature to export.
mapLayer - the IlvMapLayer containing the IlvMapFeature in parameter

setConnection

public void setConnection(IlvSDOConnection sdoConnection)
Sets the current connection to be used by this IlvSDOExporter instance.

Parameters:
sdoConnection - The connection.
Since:
JViews 8.1

initExport

public void initExport(IlvMapLayer[] mapLayers)
Prepare this exporter to export a collection of IlvMapFeature objects.

Specified by:
initExport in interface IlvMapExportManager.IlvMapExporter
Parameters:
mapLayers - an array of IlvMapLayer whose objects are going to be exported through the exportFeature method.

finishExport

public void finishExport()
This method is called by the IlvMapExportManager when all features are exported. This method could close opened file input streams, for instance.

Specified by:
finishExport in interface IlvMapExportManager.IlvMapExporter

setSRID

public void setSRID(Long srID)
Changes the coordinate system for all export.

Parameters:
srID - The id of the Coordinate System as described in the CS_SRS table. This id will be saved in the [USER_]SDO_GEOM_METADATA in the SRID column. You can pass it as null.
Since:
JViews 7.5

showConfigurationDialog

public void showConfigurationDialog(JDialog parent)
Shows a configuration dialog for this exporter

Specified by:
showConfigurationDialog in interface IlvMapExportManager.IlvMapExporter
Parameters:
parent - the JDialog that should be used as a parent when displaying a sub dialog


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