Class TLcdOracleSpatialModelDescriptor

All Implemented Interfaces:
ILcdAnnotatedElement, ILcdDatabaseModelDescriptor, com.luciad.internal.format.database.ILinDatabaseModelDescriptor2, ILcdDataModelDescriptor, ILcdModelDescriptor, ILcdFeaturedDescriptor, ILcdFeaturedDescriptorProvider, Serializable, Cloneable

public class TLcdOracleSpatialModelDescriptor extends TLcdDatabaseModelDescriptor implements ILcdDatabaseModelDescriptor
This ILcdDatabaseModelDescriptor describes a layer from an Oracle Spatial database in the Object-Relational Model.

For accessing an existing Spatial layer, the following information is required:

  • a database driver,
  • a database URL,
  • connection properties,
  • a table name,
  • a column name containing the geometries,
  • a display names,
  • an optional list of feature names,
  • an optional selection filter, with additional selection tables.

For creating a new Spatial layer, the following additional information is required:

  • a Spatial Reference ID,
  • an ellipsoid,
  • a list of data types corresponding to the optional feature names.
See Also:
  • Field Details

  • Constructor Details

    • TLcdOracleSpatialModelDescriptor

      public TLcdOracleSpatialModelDescriptor()
      Constructs a new (invalid) Oracle Spatial layer descriptor with default properties.
    • TLcdOracleSpatialModelDescriptor

      public TLcdOracleSpatialModelDescriptor(String aDriver, String aURL, Properties aConnectionProperties, String aTableName, String aGeometryColumnName)
      Constructs a new Oracle Spatial table descriptor.
      Parameters:
      aDriver - the JDBC driver name.
      aURL - the JDBC connection URL.
      aConnectionProperties - the connection properties, including 'user' and 'password'.
      aTableName - the spatial layer name.
      aGeometryColumnName - the name of the column containing spatial objects.
    • TLcdOracleSpatialModelDescriptor

      public TLcdOracleSpatialModelDescriptor(String aDriver, String aURL, Properties aConnectionProperties, String aTableName, String aGeometryColumnName, String[] aFeatureNames, int aPrimaryFeatureIndex)
      Constructs a new Oracle Spatial table descriptor.
      Parameters:
      aDriver - the JDBC driver name.
      aURL - the JDBC connection URL.
      aConnectionProperties - the connection properties, including 'user' and 'password'.
      aTableName - the spatial layer name.
      aGeometryColumnName - the name of the column containing spatial objects.
      aFeatureNames - the column names of the features that should be retrieved.
      aPrimaryFeatureIndex - the index of the feature that can be used a a primary key on the spatial table.
    • TLcdOracleSpatialModelDescriptor

      public TLcdOracleSpatialModelDescriptor(String aDriver, String aURL, Properties aConnectionProperties, String aTableName, String aGeometryColumnName, String[] aFeatureNames, int aPrimaryFeatureIndex, boolean aPrimaryFeatureAutoGenerated)
      Constructs a new Oracle Spatial table descriptor.
      Parameters:
      aDriver - the JDBC driver name.
      aURL - the JDBC connection URL.
      aConnectionProperties - the connection properties, including 'user' and 'password'.
      aTableName - the spatial layer name.
      aGeometryColumnName - the name of the column containing spatial objects.
      aFeatureNames - the column names of the features that should be retrieved.
      aPrimaryFeatureIndex - the index of the feature that can be used a a primary key on the spatial table.
      aPrimaryFeatureAutoGenerated - specifies whether the primary key is automatically generated by the database.
  • Method Details

    • setDimensions

      public void setDimensions(int aDimensions)
      Sets the number of dimensions of the geometries. Currently, 2 and 3 dimensions are supported.
    • getDimensions

      public int getDimensions()
      Returns the number of dimensions of the geometries.
    • setHints

      public void setHints(String aHints)
      Sets optional hints for database queries.
    • getHints

      public String getHints()
      Returns the optional hints for database queries.