Class AbstractDataAccessObject


  • public abstract class AbstractDataAccessObject
    extends java.lang.Object
    Represents a basic data access object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected AbstractDataSource dataSource
      Data source
      protected java.util.Properties props
      Generic properties that can be assigned to this object for accessind data.
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      abstract boolean clearCachedSessions()
      Clear the current edit session definitions from the server's in-memory cache.
      void clearProperties()  
      abstract boolean closeConnection()  
      abstract boolean createAnnotationTextMetadata​(java.lang.String table, java.lang.String column, java.lang.Double baseScale, java.lang.String textExpression, java.lang.String textAttributes)  
      abstract boolean createEditSession​(java.lang.String sessionName, java.lang.String description, boolean versionEnabled)
      Creates a new edit session on server.
      abstract boolean createSequence​(java.lang.String sequence, long startWith)  
      abstract boolean createTable​(java.lang.String tableName, java.lang.String[] columns, java.lang.String[] types, boolean[] notNull, java.lang.String primaryKey, java.util.Vector<oracle.mapviewer.share.SpatialTableMetadata> spatialMetadata)
      Creates a new table
      abstract boolean createTopology​(java.lang.String topology, double tolerance, int srid)  
      abstract boolean dataTableExists​(java.lang.String table)
      Returns if input data table exists
      abstract JGeometry difference​(JGeometry sourceGeom, JGeometry[] otherGeoms, double tolerance)
      Returns the difference between source geometry and other geometries.
      abstract JGeometry difference​(AbstractFeature sourceGeom, AbstractFeature[] otherGeoms, double tolerance)
      Returns the difference between source geometry and other geometries.
      abstract boolean disableVersioning​(java.lang.String dataName, boolean isTopology, boolean force, boolean ignoreLastError)
      Disables table or topology versioning.
      abstract boolean enableVersioning​(java.lang.String dataName, java.lang.String workspace, boolean isTopology, java.lang.String historyMode, java.lang.String undoSpace)
      Enables versioning on table or topology for use with workspace manager.
      abstract boolean endEditingSession​(java.lang.String sessionName)
      End the editing session on the server side
      AbstractDataSource getDataSource()  
      abstract java.lang.String[] getEditorSessions()
      Returns the session names for data source editor.
      abstract java.lang.String getEditSession​(java.lang.String sessionName)
      Gets the EditSession XML string from the server
      abstract java.lang.String[] getFeatureTableTopologies​(java.lang.String featureTable, java.lang.String topoColumn)
      Returns the topoloy names associated with table and column.
      abstract java.lang.String[] getGeometryAttributes​(java.lang.String table)
      Returns the geometry attributes of a table.
      abstract java.util.Vector<java.lang.String> getMapViewerBaseMaps()
      Returns MapViewer base map names.
      abstract java.lang.String[] getMapViewerBasemapThemeNames​(java.lang.String basemap)
      Return the base map theme names
      abstract java.util.Vector<oracle.mapviewer.share.MVThemeMetadata> getMapViewerThemesMetadata()
      Returns some information about the MapViewer predefined theme base table.
      abstract java.util.Vector<oracle.mapviewer.share.MVTileLayerMetadata> getMapViewerTileLayersMetadata()
      Returns some metadata information about MapViewer tile layers.
      abstract java.lang.String[] getModifiedTablesForWorkspace​(java.lang.String workspaceName)
      Returns the modified tables associated with the workspace.
      abstract java.lang.String[] getModifiedWorkspacesForTable​(java.lang.String tableName)
      Returns the workspaces in which the table has been modified.
      abstract java.lang.String[] getModifiedWorkspacesForTopology​(java.lang.String topologyName)
      Returns the workspaces in which any topology table has been modified.
      abstract long getNetworkMaxId​(java.lang.String network, java.lang.String netEntity)
      Returns the current maximum network id.
      abstract java.lang.String[] getNetworkNames()
      Returns the network names associated with table and column.
      abstract java.lang.String[] getNonComplexAttributes​(java.lang.String table)
      Returns the non complex attributes of a table.
      java.lang.String getProperty​(java.lang.String propName)  
      abstract long getRecordCount​(java.lang.String table, java.lang.String whereClause)
      Returns the number of records that satisfy the where clause.
      abstract oracle.mapviewer.share.TopologyRelation[] getRelationsForTopologyChildFeature​(java.lang.String topology, int child_layer_id, int feature_id, WorkSpace workspace)
      Returns the topology relations associated with a topology child feature.
      abstract oracle.mapviewer.share.TopologyRelation[] getRelationsForTopologyPrimitive​(java.lang.String topology, int topo_id, int topo_type, WorkSpace workspace)
      Returns the topology relations associated with a topology primitive.
      abstract long getSequenceCurrentValue​(java.lang.String sequence)  
      abstract long getSequenceNextValue​(java.lang.String sequence)  
      abstract java.util.Vector<oracle.mapviewer.share.Sequence> getSequences()  
      abstract java.lang.String[] getSessionWorkspaceModifiedLayers​(java.lang.String sessionName)
      Returns session layers that are modified.
      abstract oracle.mapviewer.share.SpatialColumnExtent getSpatialColumnExtent​(java.lang.String owner, java.lang.String tableName, java.lang.String spatialColumn, java.lang.String spatialType)
      Gets the extent of a spatial column
      abstract java.util.Vector<oracle.mapviewer.share.SpatialTableMetadata> getSpatialTablesMetadata()
      Returns some metadata information about spatial tables registered on user_sdo_geom_metadata view.
      abstract oracle.sdovis.SRS getSRS​(java.lang.String srid)
      Gets a SRS object from a specified SRID
      abstract TableAttributesMetadata getTableAttributesMetadata​(java.lang.String table, java.lang.String spatialColumn, java.lang.String spatialType)
      Returns the table attributes metadata.
      abstract java.lang.String getTablePrimaryKey​(java.lang.String table)
      Returns the table primary key.
      abstract java.util.Vector<oracle.mapviewer.share.FeatureConflictDescriptor> getTableWorkspaceConflicts​(java.lang.String workspace, java.lang.String table, java.lang.String keyColumn)
      Returns the edit session workspace conflicts with parent workspace.
      abstract java.lang.String[] getTopologyFeatureTables​(java.lang.String topology)
      Returns the feature tables associated with a topology.
      abstract java.lang.String[] getTopologyNames()
      Returns the topoloy names associated with table and column.
      abstract java.lang.String[] getVersionedTables()
      Returns the versioned tables.
      abstract boolean goToWorkspace​(WorkSpace workspace)
      Moves connection to the specified workspace.
      abstract JGeometry intersection​(JGeometry sourceGeom, JGeometry[] otherGeoms, double tolerance)
      Returns the intersection between source geometry and other geometries.
      abstract JGeometry intersection​(AbstractFeature sourceGeom, AbstractFeature[] otherGeoms, double tolerance)
      Returns the intersection between source geometry and other geometries.
      abstract boolean isTableVersioned​(java.lang.String table, java.lang.String workspace)
      Returns if table is versioned (workspace enabled) and workspace exists (if provided)
      abstract oracle.mapviewer.share.AnnotationTextMetadata loadAnnotationTextMetadata​(java.lang.String table, java.lang.String column)  
      abstract java.util.Vector<AbstractFeature> loadData​(java.awt.geom.Rectangle2D mbr, WorkSpace workspace, java.lang.String dataType, java.lang.String query, java.lang.String baseTable, java.lang.String spatialColumn, long srid, boolean isGeodeticSRID)
      Loads features from a SQL query.
      abstract int loadDataInto​(java.util.Vector<AbstractFeature> into, java.util.concurrent.Callable callable, java.beans.PropertyChangeSupport propSupport, java.awt.geom.Rectangle2D mbr, WorkSpace workspace, java.lang.String dataType, java.lang.String query, java.lang.String baseTable, java.lang.String spatialColumn, long srid, boolean isGeodeticSRID)
      Streaming version of loadData Features are put in "into" as soon as they're ready The callable is called each time a feature is ready propSupport is for reporting progress (SwingWorker's model)
      abstract java.util.Vector<AbstractFeature> loadFeatures​(java.lang.String[] keys, java.lang.String table, java.lang.String keyColumn, java.lang.String spatialColumn, WorkSpace workspace, int accessMode)
      Loads the features specified by key values
      abstract oracle.mapviewer.share.NetworkMetadata loadNetworkMetadata​(java.lang.String network)  
      abstract java.util.Vector<AbstractFeature> loadTopologyFeatures​(java.lang.String topology, java.lang.String featureTable, java.lang.String topoColumn, java.awt.geom.Rectangle2D mbr, WorkSpace workspace)
      Loads the topology features.
      abstract oracle.mapviewer.share.TopologyMetadata[] loadTopologyLayersMetadata​(java.lang.String topology)
      Loads the topology metadata for all topology layers
      abstract oracle.mapviewer.share.TopologyMetadata loadTopologyMetadata​(java.lang.String topology, java.lang.String featureTable, java.lang.String topoColumn)
      Loads the topology metadata for feature table.
      abstract oracle.mapviewer.share.TopologyPrimitives loadTopologyPrimitives​(java.lang.String topology, int[] faceIds, int[] edgeIds, int[] nodeIds, WorkSpace workspace)
      Loads the specified topology primitives nodes, edges and faces.
      abstract oracle.mapviewer.share.TopologyPrimitives loadTopologyPrimitives​(java.lang.String topology, java.awt.geom.Rectangle2D mbr, WorkSpace workspace)
      Loads the topology primitives nodes, edges and faces.
      abstract boolean lockTopologyRows​(java.lang.String workspace, java.lang.String topology, double xmin, double ymin, double xmax, double ymax)
      Locks the topology rows withing specified area.
      abstract boolean mergeTableWorkspaces​(java.lang.String sessionName, java.lang.String layerName)
      Merge the table child workspace with its parent workspace.
      abstract boolean openConnection()  
      abstract boolean relateFeatureTableWithTopology​(java.lang.String topology, java.lang.String featureTable, java.lang.String topoColumn, java.lang.String topoFeatureType, int childLayerId)  
      abstract boolean removeEditSession​(java.lang.String sessionName)
      Removes an edit session from the server.
      abstract int resolveTableWorkspaceConflicts​(java.lang.String workspace, java.lang.String baseTable, java.lang.String keyAttribute, java.util.Vector<oracle.mapviewer.share.FeatureConflictDescriptor> conflicts)
      Resolves the edit session workspace conflicts with parent workspace.
      abstract boolean saveDataModel​(AbstractDataModel model)  
      abstract boolean saveDataSet​(AbstractDataSet set)  
      abstract boolean sequenceExists​(java.lang.String sequence)  
      void setProperty​(java.lang.String propName, java.lang.String propValue)  
      abstract boolean setTablePrimaryKey​(java.lang.String table, java.lang.String keyAttribute)
      Sets the primaty key column for a table.
      abstract boolean startEditingSession​(java.lang.String sessionName, JGeometry area)
      Start the editing session on the server side
      abstract boolean tableHasAttributeWithValue​(java.lang.String table, java.lang.String attr, java.lang.String value, java.lang.String workspace)
      Returns if table has an attribute with the specified value.
      abstract boolean topoEdgesHaveMismatchOfFeatures​(java.lang.String topoModel, long firstEdge, long secondEdge)
      Returns if topology edges have mismatch in topology features.
      abstract boolean topoFacesHaveMismatchOfFeatures​(java.lang.String topoModel, long faceLeft, long faceRight)
      Returns if topology faces have mismatch in topology features.
      abstract JGeometry union​(JGeometry sourceGeom, JGeometry[] otherGeoms, double tolerance)
      Returns the union between source geometry and other geometries.
      abstract JGeometry union​(AbstractFeature sourceGeom, AbstractFeature[] otherGeoms, double tolerance)
      Returns the union between source geometry and other geometries.
      abstract boolean unlockTopologyRows​(java.lang.String workspace, java.lang.String topology, double xmin, double ymin, double xmax, double ymax)
      Unlocks the topology rows withing specified area.
      abstract boolean updateAnnotationTextMetadata​(java.lang.String table, java.lang.String column, java.lang.Double baseScale, java.lang.String textExpression, java.lang.String textAttributes)  
      abstract java.util.Hashtable<java.lang.String,​java.lang.String> validateFeatureGeometries​(java.lang.String keyAttribute, AbstractFeature[] features, double tolerance)
      Validates the feature geometries, and returns pairs of feature key/validation code.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • props

        protected java.util.Properties props
        Generic properties that can be assigned to this object for accessind data.
    • Constructor Detail

      • AbstractDataAccessObject

        protected AbstractDataAccessObject​(AbstractDataSource dsrc)
        Parameters:
        dsrc -
    • Method Detail

      • clearProperties

        public void clearProperties()
      • setProperty

        public void setProperty​(java.lang.String propName,
                                java.lang.String propValue)
        Parameters:
        propName -
        propValue -
      • getProperty

        public java.lang.String getProperty​(java.lang.String propName)
        Parameters:
        propName -
        Returns:
      • openConnection

        public abstract boolean openConnection()
                                        throws java.lang.Exception
        Returns:
        Throws:
        java.lang.Exception
      • closeConnection

        public abstract boolean closeConnection()
                                         throws java.lang.Exception
        Returns:
        Throws:
        java.lang.Exception
      • getSequenceNextValue

        public abstract long getSequenceNextValue​(java.lang.String sequence)
                                           throws java.lang.Exception,
                                                  MDSException
        Returns:
        Throws:
        java.lang.Exception
        MDSException
      • getSequenceCurrentValue

        public abstract long getSequenceCurrentValue​(java.lang.String sequence)
                                              throws java.lang.Exception,
                                                     MDSException
        Returns:
        Throws:
        java.lang.Exception
        MDSException
      • sequenceExists

        public abstract boolean sequenceExists​(java.lang.String sequence)
                                        throws java.lang.Exception,
                                               MDSException
        Parameters:
        sequence -
        Returns:
        Throws:
        java.lang.Exception
        MDSException
      • createSequence

        public abstract boolean createSequence​(java.lang.String sequence,
                                               long startWith)
                                        throws java.lang.Exception,
                                               MDSException
        Parameters:
        sequence -
        startWith -
        Returns:
        Throws:
        java.lang.Exception
        MDSException
      • getSequences

        public abstract java.util.Vector<oracle.mapviewer.share.Sequence> getSequences()
                                                                                throws java.lang.Exception,
                                                                                       MDSException
        Returns:
        Throws:
        java.lang.Exception
        MDSException
      • loadDataInto

        public abstract int loadDataInto​(java.util.Vector<AbstractFeature> into,
                                         java.util.concurrent.Callable callable,
                                         java.beans.PropertyChangeSupport propSupport,
                                         java.awt.geom.Rectangle2D mbr,
                                         WorkSpace workspace,
                                         java.lang.String dataType,
                                         java.lang.String query,
                                         java.lang.String baseTable,
                                         java.lang.String spatialColumn,
                                         long srid,
                                         boolean isGeodeticSRID)
                                  throws java.lang.Exception,
                                         MDSException
        Streaming version of loadData Features are put in "into" as soon as they're ready The callable is called each time a feature is ready propSupport is for reporting progress (SwingWorker's model)
        Parameters:
        into -
        callable -
        propSupport -
        mbr -
        workspace -
        dataType -
        query -
        baseTable -
        spatialColumn -
        srid -
        isGeodeticSRID -
        Returns:
        Throws:
        java.lang.Exception
        MDSException
      • loadData

        public abstract java.util.Vector<AbstractFeature> loadData​(java.awt.geom.Rectangle2D mbr,
                                                                   WorkSpace workspace,
                                                                   java.lang.String dataType,
                                                                   java.lang.String query,
                                                                   java.lang.String baseTable,
                                                                   java.lang.String spatialColumn,
                                                                   long srid,
                                                                   boolean isGeodeticSRID)
                                                            throws java.lang.Exception,
                                                                   MDSException
        Loads features from a SQL query. The feature type will depend on the type of the spatial column.
        Parameters:
        mbr - the area enclosing the features.
        workspace - workspace parameters.
        dataType - data set type.
        query - SQL query.
        spatialColumn - spatial column name.
        srid - Oracle spatial reference id, to be used in filter expression
        isGeodeticSRID - if SRID is geodetic.
        Returns:
        a set of features.
        Throws:
        java.lang.Exception
        MDSException
      • loadFeatures

        public abstract java.util.Vector<AbstractFeature> loadFeatures​(java.lang.String[] keys,
                                                                       java.lang.String table,
                                                                       java.lang.String keyColumn,
                                                                       java.lang.String spatialColumn,
                                                                       WorkSpace workspace,
                                                                       int accessMode)
                                                                throws java.lang.Exception
        Loads the features specified by key values
        Parameters:
        keys - feature key values
        table - table name
        keyColumn - key attribute name
        spatialColumn - spatial attribute name
        workspace - versioning information
        accessMode - access mode
        Returns:
        Throws:
        java.lang.Exception
      • loadNetworkMetadata

        public abstract oracle.mapviewer.share.NetworkMetadata loadNetworkMetadata​(java.lang.String network)
                                                                            throws java.lang.Exception,
                                                                                   MDSException
        Parameters:
        network -
        Returns:
        Throws:
        java.lang.Exception
        MDSException
      • loadTopologyMetadata

        public abstract oracle.mapviewer.share.TopologyMetadata loadTopologyMetadata​(java.lang.String topology,
                                                                                     java.lang.String featureTable,
                                                                                     java.lang.String topoColumn)
                                                                              throws java.lang.Exception,
                                                                                     MDSException
        Loads the topology metadata for feature table. If feature table or topo column is null, then just some information about the topology is loaded.
        Parameters:
        topology - topolgy name (can have owner OWNER.TOPOLOGY)
        featureTable - topology table (can have owner OWNER.TABLE)
        Returns:
        topoColumn topology column
        Throws:
        java.lang.Exception
        MDSException
      • loadTopologyLayersMetadata

        public abstract oracle.mapviewer.share.TopologyMetadata[] loadTopologyLayersMetadata​(java.lang.String topology)
                                                                                      throws java.lang.Exception,
                                                                                             MDSException
        Loads the topology metadata for all topology layers
        Parameters:
        topology - topolgy name (can have owner OWNER.TOPOLOGY)
        Throws:
        java.lang.Exception
        MDSException
      • loadTopologyPrimitives

        public abstract oracle.mapviewer.share.TopologyPrimitives loadTopologyPrimitives​(java.lang.String topology,
                                                                                         java.awt.geom.Rectangle2D mbr,
                                                                                         WorkSpace workspace)
                                                                                  throws java.lang.Exception,
                                                                                         MDSException
        Loads the topology primitives nodes, edges and faces.
        Parameters:
        topology -
        mbr -
        workspace -
        Returns:
        Throws:
        java.lang.Exception
        MDSException
      • loadTopologyPrimitives

        public abstract oracle.mapviewer.share.TopologyPrimitives loadTopologyPrimitives​(java.lang.String topology,
                                                                                         int[] faceIds,
                                                                                         int[] edgeIds,
                                                                                         int[] nodeIds,
                                                                                         WorkSpace workspace)
                                                                                  throws java.lang.Exception,
                                                                                         MDSException
        Loads the specified topology primitives nodes, edges and faces.
        Parameters:
        topology -
        faceIds -
        edgeIds -
        nodeIds -
        workspace -
        Returns:
        Throws:
        java.lang.Exception
        MDSException
      • loadTopologyFeatures

        public abstract java.util.Vector<AbstractFeature> loadTopologyFeatures​(java.lang.String topology,
                                                                               java.lang.String featureTable,
                                                                               java.lang.String topoColumn,
                                                                               java.awt.geom.Rectangle2D mbr,
                                                                               WorkSpace workspace)
                                                                        throws java.lang.Exception,
                                                                               MDSException
        Loads the topology features.
        Parameters:
        topology -
        featureTable -
        topoColumn -
        mbr -
        workspace -
        Returns:
        Throws:
        java.lang.Exception
        MDSException
      • getTopologyFeatureTables

        public abstract java.lang.String[] getTopologyFeatureTables​(java.lang.String topology)
                                                             throws java.lang.Exception,
                                                                    MDSException
        Returns the feature tables associated with a topology.
        Parameters:
        topology -
        Returns:
        Throws:
        java.lang.Exception
        MDSException
      • getFeatureTableTopologies

        public abstract java.lang.String[] getFeatureTableTopologies​(java.lang.String featureTable,
                                                                     java.lang.String topoColumn)
                                                              throws java.lang.Exception,
                                                                     MDSException
        Returns the topoloy names associated with table and column.
        Parameters:
        featureTable -
        topoColumn -
        Returns:
        Throws:
        java.lang.Exception
        MDSException
      • getRelationsForTopologyPrimitive

        public abstract oracle.mapviewer.share.TopologyRelation[] getRelationsForTopologyPrimitive​(java.lang.String topology,
                                                                                                   int topo_id,
                                                                                                   int topo_type,
                                                                                                   WorkSpace workspace)
                                                                                            throws java.lang.Exception,
                                                                                                   MDSException
        Returns the topology relations associated with a topology primitive. If topology has hierarchy the relations are related with bottom layers in thierarchy.
        Parameters:
        topology -
        topo_id -
        topo_type -
        workspace -
        Returns:
        Throws:
        java.lang.Exception
        MDSException
      • getRelationsForTopologyChildFeature

        public abstract oracle.mapviewer.share.TopologyRelation[] getRelationsForTopologyChildFeature​(java.lang.String topology,
                                                                                                      int child_layer_id,
                                                                                                      int feature_id,
                                                                                                      WorkSpace workspace)
                                                                                               throws java.lang.Exception,
                                                                                                      MDSException
        Returns the topology relations associated with a topology child feature. Applies to a child layer in a topology with hierarchy.
        Parameters:
        topology -
        child_layer_id -
        feature_id -
        workspace -
        Returns:
        Throws:
        java.lang.Exception
        MDSException
      • getTopologyNames

        public abstract java.lang.String[] getTopologyNames()
                                                     throws java.lang.Exception,
                                                            MDSException
        Returns the topoloy names associated with table and column.
        Returns:
        Throws:
        java.lang.Exception
        MDSException
      • loadAnnotationTextMetadata

        public abstract oracle.mapviewer.share.AnnotationTextMetadata loadAnnotationTextMetadata​(java.lang.String table,
                                                                                                 java.lang.String column)
                                                                                          throws java.lang.Exception,
                                                                                                 MDSException
        Parameters:
        table -
        column -
        Returns:
        Throws:
        java.lang.Exception
        MDSException
      • createAnnotationTextMetadata

        public abstract boolean createAnnotationTextMetadata​(java.lang.String table,
                                                             java.lang.String column,
                                                             java.lang.Double baseScale,
                                                             java.lang.String textExpression,
                                                             java.lang.String textAttributes)
                                                      throws java.lang.Exception,
                                                             MDSException
        Parameters:
        table -
        column -
        baseScale -
        textExpression -
        textAttributes -
        Returns:
        Throws:
        java.lang.Exception
        MDSException
      • updateAnnotationTextMetadata

        public abstract boolean updateAnnotationTextMetadata​(java.lang.String table,
                                                             java.lang.String column,
                                                             java.lang.Double baseScale,
                                                             java.lang.String textExpression,
                                                             java.lang.String textAttributes)
                                                      throws java.lang.Exception,
                                                             MDSException
        Parameters:
        table -
        column -
        baseScale -
        textExpression -
        textAttributes -
        Returns:
        Throws:
        java.lang.Exception
        MDSException
      • createTopology

        public abstract boolean createTopology​(java.lang.String topology,
                                               double tolerance,
                                               int srid)
                                        throws java.lang.Exception,
                                               MDSException
        Parameters:
        topology -
        tolerance -
        srid -
        Returns:
        Throws:
        java.lang.Exception
        MDSException
      • relateFeatureTableWithTopology

        public abstract boolean relateFeatureTableWithTopology​(java.lang.String topology,
                                                               java.lang.String featureTable,
                                                               java.lang.String topoColumn,
                                                               java.lang.String topoFeatureType,
                                                               int childLayerId)
                                                        throws java.lang.Exception,
                                                               MDSException
        Parameters:
        topology -
        featureTable -
        topoColumn -
        topoFeatureType -
        childLayerId -
        Returns:
        Throws:
        java.lang.Exception
        MDSException
      • goToWorkspace

        public abstract boolean goToWorkspace​(WorkSpace workspace)
                                       throws java.lang.Exception
        Moves connection to the specified workspace.
        Parameters:
        workspace -
        Returns:
        Throws:
        java.lang.Exception
      • getNetworkNames

        public abstract java.lang.String[] getNetworkNames()
                                                    throws java.lang.Exception,
                                                           MDSException
        Returns the network names associated with table and column.
        Returns:
        Throws:
        java.lang.Exception
        MDSException
      • getNetworkMaxId

        public abstract long getNetworkMaxId​(java.lang.String network,
                                             java.lang.String netEntity)
                                      throws java.lang.Exception,
                                             MDSException
        Returns the current maximum network id.
        Parameters:
        network - network name
        netEntity - network entity (node or link
        Returns:
        Throws:
        java.lang.Exception
        MDSException
      • dataTableExists

        public abstract boolean dataTableExists​(java.lang.String table)
                                         throws java.lang.Exception
        Returns if input data table exists
        Parameters:
        table - table name (may have patter OWNER.TABLENAME)
        Returns:
        Throws:
        java.lang.Exception
      • getRecordCount

        public abstract long getRecordCount​(java.lang.String table,
                                            java.lang.String whereClause)
                                     throws java.lang.Exception
        Returns the number of records that satisfy the where clause.
        Parameters:
        table -
        whereClause -
        Returns:
        Throws:
        java.lang.Exception
      • topoFacesHaveMismatchOfFeatures

        public abstract boolean topoFacesHaveMismatchOfFeatures​(java.lang.String topoModel,
                                                                long faceLeft,
                                                                long faceRight)
                                                         throws java.lang.Exception
        Returns if topology faces have mismatch in topology features. This method can be used to check if a topology edge is bounded by different topo features.
        Parameters:
        faceLeft -
        faceRight -
        Returns:
        Throws:
        java.lang.Exception
      • topoEdgesHaveMismatchOfFeatures

        public abstract boolean topoEdgesHaveMismatchOfFeatures​(java.lang.String topoModel,
                                                                long firstEdge,
                                                                long secondEdge)
                                                         throws java.lang.Exception
        Returns if topology edges have mismatch in topology features. This method can be used to check if edges connected at same node are bounded by different topo features.
        Parameters:
        firstEdge -
        secondEdge -
        Returns:
        Throws:
        java.lang.Exception
      • tableHasAttributeWithValue

        public abstract boolean tableHasAttributeWithValue​(java.lang.String table,
                                                           java.lang.String attr,
                                                           java.lang.String value,
                                                           java.lang.String workspace)
                                                    throws java.lang.Exception,
                                                           MDSException
        Returns if table has an attribute with the specified value. Can be used to check if a key attribute has a specific key value.
        Parameters:
        table - table name
        attr - attribute name
        value - attribute value (must not be null)
        workspace - table version (optional, if null LIVE is assumed).
        Returns:
        true or false
        Throws:
        java.lang.Exception
        MDSException
      • union

        public abstract JGeometry union​(JGeometry sourceGeom,
                                        JGeometry[] otherGeoms,
                                        double tolerance)
                                 throws java.lang.Exception,
                                        MDSException
        Returns the union between source geometry and other geometries.
        Parameters:
        sourceGeom -
        otherGeoms -
        tolerance -
        Returns:
        Throws:
        java.lang.Exception
        MDSException
      • union

        public abstract JGeometry union​(AbstractFeature sourceGeom,
                                        AbstractFeature[] otherGeoms,
                                        double tolerance)
                                 throws java.lang.Exception,
                                        MDSException
        Returns the union between source geometry and other geometries.
        Parameters:
        sourceGeom -
        otherGeoms -
        tolerance -
        Returns:
        Throws:
        java.lang.Exception
        MDSException
      • difference

        public abstract JGeometry difference​(JGeometry sourceGeom,
                                             JGeometry[] otherGeoms,
                                             double tolerance)
                                      throws java.lang.Exception,
                                             MDSException
        Returns the difference between source geometry and other geometries.
        Parameters:
        sourceGeom -
        otherGeoms -
        tolerance -
        Returns:
        Throws:
        java.lang.Exception
        MDSException
      • difference

        public abstract JGeometry difference​(AbstractFeature sourceGeom,
                                             AbstractFeature[] otherGeoms,
                                             double tolerance)
                                      throws java.lang.Exception,
                                             MDSException
        Returns the difference between source geometry and other geometries.
        Parameters:
        sourceGeom -
        otherGeoms -
        tolerance -
        Returns:
        Throws:
        java.lang.Exception
        MDSException
      • intersection

        public abstract JGeometry intersection​(JGeometry sourceGeom,
                                               JGeometry[] otherGeoms,
                                               double tolerance)
                                        throws java.lang.Exception,
                                               MDSException
        Returns the intersection between source geometry and other geometries.
        Parameters:
        sourceGeom -
        otherGeoms -
        tolerance -
        Returns:
        Throws:
        java.lang.Exception
        MDSException
      • intersection

        public abstract JGeometry intersection​(AbstractFeature sourceGeom,
                                               AbstractFeature[] otherGeoms,
                                               double tolerance)
                                        throws java.lang.Exception,
                                               MDSException
        Returns the intersection between source geometry and other geometries.
        Parameters:
        sourceGeom -
        otherGeoms -
        tolerance -
        Returns:
        Throws:
        java.lang.Exception
        MDSException
      • validateFeatureGeometries

        public abstract java.util.Hashtable<java.lang.String,​java.lang.String> validateFeatureGeometries​(java.lang.String keyAttribute,
                                                                                                               AbstractFeature[] features,
                                                                                                               double tolerance)
                                                                                                        throws java.lang.Exception,
                                                                                                               MDSException
        Validates the feature geometries, and returns pairs of feature key/validation code. Applies to geometry features.
        Parameters:
        keyAttribute -
        features -
        tolerance -
        Returns:
        Throws:
        java.lang.Exception
        MDSException
      • getTablePrimaryKey

        public abstract java.lang.String getTablePrimaryKey​(java.lang.String table)
                                                     throws java.lang.Exception,
                                                            MDSException
        Returns the table primary key.
        Parameters:
        table -
        Returns:
        null if table does not have a primary key.
        Throws:
        java.lang.Exception
        MDSException
      • setTablePrimaryKey

        public abstract boolean setTablePrimaryKey​(java.lang.String table,
                                                   java.lang.String keyAttribute)
                                            throws java.lang.Exception,
                                                   MDSException
        Sets the primaty key column for a table. workspace manager requires that a table to have a primary key.
        Parameters:
        table -
        keyAttribute -
        Returns:
        Throws:
        java.lang.Exception
        MDSException
      • enableVersioning

        public abstract boolean enableVersioning​(java.lang.String dataName,
                                                 java.lang.String workspace,
                                                 boolean isTopology,
                                                 java.lang.String historyMode,
                                                 java.lang.String undoSpace)
                                          throws java.lang.Exception,
                                                 MDSException
        Enables versioning on table or topology for use with workspace manager.
        Parameters:
        dataName - table or topology name if it is a topology
        isTopology - indicates if data is an Oracle topology.
        historyMode - track modifications in the table. Values: NONE (default), VIEW_W_OVERWRITE,VIEW_WO_OVERWRITE.
        undoSpace - number representing the maximum number of bytes available for undo space. For example: "1048576" for 1 megabyte. If null default value representing UNLIMITED is used.
        Returns:
        Throws:
        java.lang.Exception
        MDSException
      • isTableVersioned

        public abstract boolean isTableVersioned​(java.lang.String table,
                                                 java.lang.String workspace)
                                          throws java.lang.Exception,
                                                 MDSException
        Returns if table is versioned (workspace enabled) and workspace exists (if provided)
        Parameters:
        table -
        workspace -
        Returns:
        Throws:
        java.lang.Exception
        MDSException
      • disableVersioning

        public abstract boolean disableVersioning​(java.lang.String dataName,
                                                  boolean isTopology,
                                                  boolean force,
                                                  boolean ignoreLastError)
                                           throws java.lang.Exception,
                                                  MDSException
        Disables table or topology versioning.
        Parameters:
        dataName - table or topology name
        isTopology - is data is an Oracle topology
        force - if true forces all data in workspaces other than LIVE to be discarded before versioning is disabled. default value is false.
        ignoreLastError - if true ignores the last error, if any, that occurred during the previous call to the DisableVersioning procedure. Default value is FALSE.
        Returns:
        Throws:
        java.lang.Exception
        MDSException
      • getTableWorkspaceConflicts

        public abstract java.util.Vector<oracle.mapviewer.share.FeatureConflictDescriptor> getTableWorkspaceConflicts​(java.lang.String workspace,
                                                                                                                      java.lang.String table,
                                                                                                                      java.lang.String keyColumn)
                                                                                                               throws java.lang.Exception,
                                                                                                                      MDSException
        Returns the edit session workspace conflicts with parent workspace.
        Parameters:
        workspace -
        table -
        keyColumn -
        Returns:
        Throws:
        java.lang.Exception
        MDSException
      • resolveTableWorkspaceConflicts

        public abstract int resolveTableWorkspaceConflicts​(java.lang.String workspace,
                                                           java.lang.String baseTable,
                                                           java.lang.String keyAttribute,
                                                           java.util.Vector<oracle.mapviewer.share.FeatureConflictDescriptor> conflicts)
                                                    throws java.lang.Exception,
                                                           MDSException
        Resolves the edit session workspace conflicts with parent workspace.
        Parameters:
        workspace -
        baseTable -
        keyAttribute -
        conflicts -
        Returns:
        Throws:
        java.lang.Exception
        MDSException
      • mergeTableWorkspaces

        public abstract boolean mergeTableWorkspaces​(java.lang.String sessionName,
                                                     java.lang.String layerName)
                                              throws java.lang.Exception,
                                                     MDSException
        Merge the table child workspace with its parent workspace. All coflicts must be resolved before calling this method.
        Parameters:
        sessionName -
        layerName -
        Returns:
        Throws:
        java.lang.Exception
        MDSException
      • getSessionWorkspaceModifiedLayers

        public abstract java.lang.String[] getSessionWorkspaceModifiedLayers​(java.lang.String sessionName)
                                                                      throws java.lang.Exception,
                                                                             MDSException
        Returns session layers that are modified. Applies to workspaces other than LIVE.
        Parameters:
        sessionName -
        Returns:
        Throws:
        java.lang.Exception
        MDSException
      • getModifiedTablesForWorkspace

        public abstract java.lang.String[] getModifiedTablesForWorkspace​(java.lang.String workspaceName)
                                                                  throws java.lang.Exception,
                                                                         MDSException
        Returns the modified tables associated with the workspace.
        Parameters:
        workspaceName -
        Returns:
        Throws:
        java.lang.Exception
        MDSException
      • getModifiedWorkspacesForTable

        public abstract java.lang.String[] getModifiedWorkspacesForTable​(java.lang.String tableName)
                                                                  throws java.lang.Exception,
                                                                         MDSException
        Returns the workspaces in which the table has been modified.
        Parameters:
        tableName -
        Returns:
        Throws:
        java.lang.Exception
        MDSException
      • getModifiedWorkspacesForTopology

        public abstract java.lang.String[] getModifiedWorkspacesForTopology​(java.lang.String topologyName)
                                                                     throws java.lang.Exception,
                                                                            MDSException
        Returns the workspaces in which any topology table has been modified.
        Parameters:
        topologyName -
        Returns:
        Throws:
        java.lang.Exception
        MDSException
      • getVersionedTables

        public abstract java.lang.String[] getVersionedTables()
                                                       throws java.lang.Exception,
                                                              MDSException
        Returns the versioned tables.
        Returns:
        Throws:
        java.lang.Exception
        MDSException
      • getGeometryAttributes

        public abstract java.lang.String[] getGeometryAttributes​(java.lang.String table)
                                                          throws java.lang.Exception,
                                                                 MDSException
        Returns the geometry attributes of a table.
        Parameters:
        table -
        Returns:
        Throws:
        java.lang.Exception
        MDSException
      • getNonComplexAttributes

        public abstract java.lang.String[] getNonComplexAttributes​(java.lang.String table)
                                                            throws java.lang.Exception,
                                                                   MDSException
        Returns the non complex attributes of a table.
        Parameters:
        table -
        Returns:
        Throws:
        java.lang.Exception
        MDSException
      • getMapViewerThemesMetadata

        public abstract java.util.Vector<oracle.mapviewer.share.MVThemeMetadata> getMapViewerThemesMetadata()
                                                                                                     throws java.lang.Exception
        Returns some information about the MapViewer predefined theme base table.
        Returns:
        Throws:
        java.lang.Exception
      • getMapViewerTileLayersMetadata

        public abstract java.util.Vector<oracle.mapviewer.share.MVTileLayerMetadata> getMapViewerTileLayersMetadata()
                                                                                                             throws java.lang.Exception
        Returns some metadata information about MapViewer tile layers.
        Returns:
        Throws:
        java.lang.Exception
      • getSpatialTablesMetadata

        public abstract java.util.Vector<oracle.mapviewer.share.SpatialTableMetadata> getSpatialTablesMetadata()
                                                                                                        throws java.lang.Exception,
                                                                                                               MDSException
        Returns some metadata information about spatial tables registered on user_sdo_geom_metadata view.
        Returns:
        Throws:
        java.lang.Exception
        MDSException
      • createEditSession

        public abstract boolean createEditSession​(java.lang.String sessionName,
                                                  java.lang.String description,
                                                  boolean versionEnabled)
                                           throws java.lang.Exception,
                                                  MDSException
        Creates a new edit session on server.
        Parameters:
        sessionName -
        description -
        Returns:
        Throws:
        java.lang.Exception
        MDSException
      • removeEditSession

        public abstract boolean removeEditSession​(java.lang.String sessionName)
                                           throws java.lang.Exception,
                                                  MDSException
        Removes an edit session from the server.
        Parameters:
        sessionName -
        Returns:
        Throws:
        java.lang.Exception
        MDSException
      • getEditorSessions

        public abstract java.lang.String[] getEditorSessions()
                                                      throws java.lang.Exception,
                                                             MDSException
        Returns the session names for data source editor.
        Returns:
        Throws:
        java.lang.Exception
        MDSException
      • getEditSession

        public abstract java.lang.String getEditSession​(java.lang.String sessionName)
                                                 throws java.lang.Exception,
                                                        MDSException
        Gets the EditSession XML string from the server
        Parameters:
        sessionName -
        Returns:
        Throws:
        java.lang.Exception
        MDSException
      • startEditingSession

        public abstract boolean startEditingSession​(java.lang.String sessionName,
                                                    JGeometry area)
                                             throws java.lang.Exception,
                                                    MDSException
        Start the editing session on the server side
        Parameters:
        sessionName -
        area -
        Returns:
        Throws:
        java.lang.Exception
        MDSException
      • endEditingSession

        public abstract boolean endEditingSession​(java.lang.String sessionName)
                                           throws java.lang.Exception,
                                                  MDSException
        End the editing session on the server side
        Parameters:
        sessionName -
        Returns:
        Throws:
        java.lang.Exception
        MDSException
      • clearCachedSessions

        public abstract boolean clearCachedSessions()
                                             throws java.lang.Exception,
                                                    MDSException
        Clear the current edit session definitions from the server's in-memory cache.
        Returns:
        Throws:
        java.lang.Exception
        MDSException
      • getTableAttributesMetadata

        public abstract TableAttributesMetadata getTableAttributesMetadata​(java.lang.String table,
                                                                           java.lang.String spatialColumn,
                                                                           java.lang.String spatialType)
                                                                    throws java.lang.Exception,
                                                                           MDSException
        Returns the table attributes metadata. Information about spatial column srid, simple attributes java type, and non null attributes will be returned. For spatial column: name, srid, is geodeitc or not Simple Attributes: name and java type Not null attributes: list of names
        Parameters:
        table -
        spatialColumn -
        spatialType - "geometry","annotationtext",...
        Returns:
        Throws:
        java.lang.Exception
        MDSException
      • createTable

        public abstract boolean createTable​(java.lang.String tableName,
                                            java.lang.String[] columns,
                                            java.lang.String[] types,
                                            boolean[] notNull,
                                            java.lang.String primaryKey,
                                            java.util.Vector<oracle.mapviewer.share.SpatialTableMetadata> spatialMetadata)
                                     throws java.lang.Exception,
                                            MDSException
        Creates a new table
        Parameters:
        tableName -
        columns -
        types -
        notNull -
        primaryKey -
        spatialMetadata -
        Returns:
        Throws:
        java.lang.Exception
        MDSException
      • getSpatialColumnExtent

        public abstract oracle.mapviewer.share.SpatialColumnExtent getSpatialColumnExtent​(java.lang.String owner,
                                                                                          java.lang.String tableName,
                                                                                          java.lang.String spatialColumn,
                                                                                          java.lang.String spatialType)
                                                                                   throws java.lang.Exception,
                                                                                          MDSException
        Gets the extent of a spatial column
        Parameters:
        tableName -
        spatialColumn -
        spatialType -
        Returns:
        Throws:
        java.lang.Exception
        MDSException
      • getSRS

        public abstract oracle.sdovis.SRS getSRS​(java.lang.String srid)
                                          throws java.lang.Exception,
                                                 MDSException
        Gets a SRS object from a specified SRID
        Parameters:
        srid - can be a #, or SDO:# or and ESG code like EPSG:#
        Returns:
        Throws:
        java.lang.Exception
        MDSException
      • getMapViewerBaseMaps

        public abstract java.util.Vector<java.lang.String> getMapViewerBaseMaps()
                                                                         throws java.lang.Exception,
                                                                                MDSException
        Returns MapViewer base map names.
        Returns:
        Throws:
        java.lang.Exception
        MDSException
      • getMapViewerBasemapThemeNames

        public abstract java.lang.String[] getMapViewerBasemapThemeNames​(java.lang.String basemap)
                                                                  throws java.lang.Exception,
                                                                         MDSException
        Return the base map theme names
        Returns:
        Throws:
        java.lang.Exception
        MDSException
      • lockTopologyRows

        public abstract boolean lockTopologyRows​(java.lang.String workspace,
                                                 java.lang.String topology,
                                                 double xmin,
                                                 double ymin,
                                                 double xmax,
                                                 double ymax)
                                          throws java.lang.Exception,
                                                 MDSException
        Locks the topology rows withing specified area.
        Parameters:
        workspace -
        topology -
        xmin -
        ymin -
        xmax -
        ymax -
        Returns:
        Throws:
        java.lang.Exception
        MDSException
      • unlockTopologyRows

        public abstract boolean unlockTopologyRows​(java.lang.String workspace,
                                                   java.lang.String topology,
                                                   double xmin,
                                                   double ymin,
                                                   double xmax,
                                                   double ymax)
                                            throws java.lang.Exception,
                                                   MDSException
        Unlocks the topology rows withing specified area.
        Parameters:
        workspace -
        topology -
        xmin -
        ymin -
        xmax -
        ymax -
        Returns:
        Throws:
        java.lang.Exception
        MDSException