Class AbstractDataAccessObject
- java.lang.Object
-
- oracle.spatial.network.nfe.vis.maps.model.AbstractDataAccessObject
-
public abstract class AbstractDataAccessObject extends java.lang.ObjectRepresents a basic data access object
-
-
Field Summary
Fields Modifier and Type Field Description protected AbstractDataSourcedataSourceData sourceprotected java.util.PropertiespropsGeneric properties that can be assigned to this object for accessind data.
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractDataAccessObject(AbstractDataSource dsrc)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract booleanclearCachedSessions()Clear the current edit session definitions from the server's in-memory cache.voidclearProperties()abstract booleancloseConnection()abstract booleancreateAnnotationTextMetadata(java.lang.String table, java.lang.String column, java.lang.Double baseScale, java.lang.String textExpression, java.lang.String textAttributes)abstract booleancreateEditSession(java.lang.String sessionName, java.lang.String description, boolean versionEnabled)Creates a new edit session on server.abstract booleancreateSequence(java.lang.String sequence, long startWith)abstract booleancreateTable(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 tableabstract booleancreateTopology(java.lang.String topology, double tolerance, int srid)abstract booleandataTableExists(java.lang.String table)Returns if input data table existsabstract JGeometrydifference(JGeometry sourceGeom, JGeometry[] otherGeoms, double tolerance)Returns the difference between source geometry and other geometries.abstract JGeometrydifference(AbstractFeature sourceGeom, AbstractFeature[] otherGeoms, double tolerance)Returns the difference between source geometry and other geometries.abstract booleandisableVersioning(java.lang.String dataName, boolean isTopology, boolean force, boolean ignoreLastError)Disables table or topology versioning.abstract booleanenableVersioning(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 booleanendEditingSession(java.lang.String sessionName)End the editing session on the server sideAbstractDataSourcegetDataSource()abstract java.lang.String[]getEditorSessions()Returns the session names for data source editor.abstract java.lang.StringgetEditSession(java.lang.String sessionName)Gets the EditSession XML string from the serverabstract 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 namesabstract 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 longgetNetworkMaxId(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.StringgetProperty(java.lang.String propName)abstract longgetRecordCount(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 longgetSequenceCurrentValue(java.lang.String sequence)abstract longgetSequenceNextValue(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.SpatialColumnExtentgetSpatialColumnExtent(java.lang.String owner, java.lang.String tableName, java.lang.String spatialColumn, java.lang.String spatialType)Gets the extent of a spatial columnabstract 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.SRSgetSRS(java.lang.String srid)Gets a SRS object from a specified SRIDabstract TableAttributesMetadatagetTableAttributesMetadata(java.lang.String table, java.lang.String spatialColumn, java.lang.String spatialType)Returns the table attributes metadata.abstract java.lang.StringgetTablePrimaryKey(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 booleangoToWorkspace(WorkSpace workspace)Moves connection to the specified workspace.abstract JGeometryintersection(JGeometry sourceGeom, JGeometry[] otherGeoms, double tolerance)Returns the intersection between source geometry and other geometries.abstract JGeometryintersection(AbstractFeature sourceGeom, AbstractFeature[] otherGeoms, double tolerance)Returns the intersection between source geometry and other geometries.abstract booleanisTableVersioned(java.lang.String table, java.lang.String workspace)Returns if table is versioned (workspace enabled) and workspace exists (if provided)abstract oracle.mapviewer.share.AnnotationTextMetadataloadAnnotationTextMetadata(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 intloadDataInto(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 valuesabstract oracle.mapviewer.share.NetworkMetadataloadNetworkMetadata(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 layersabstract oracle.mapviewer.share.TopologyMetadataloadTopologyMetadata(java.lang.String topology, java.lang.String featureTable, java.lang.String topoColumn)Loads the topology metadata for feature table.abstract oracle.mapviewer.share.TopologyPrimitivesloadTopologyPrimitives(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.TopologyPrimitivesloadTopologyPrimitives(java.lang.String topology, java.awt.geom.Rectangle2D mbr, WorkSpace workspace)Loads the topology primitives nodes, edges and faces.abstract booleanlockTopologyRows(java.lang.String workspace, java.lang.String topology, double xmin, double ymin, double xmax, double ymax)Locks the topology rows withing specified area.abstract booleanmergeTableWorkspaces(java.lang.String sessionName, java.lang.String layerName)Merge the table child workspace with its parent workspace.abstract booleanopenConnection()abstract booleanrelateFeatureTableWithTopology(java.lang.String topology, java.lang.String featureTable, java.lang.String topoColumn, java.lang.String topoFeatureType, int childLayerId)abstract booleanremoveEditSession(java.lang.String sessionName)Removes an edit session from the server.abstract intresolveTableWorkspaceConflicts(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 booleansaveDataModel(AbstractDataModel model)abstract booleansaveDataSet(AbstractDataSet set)abstract booleansequenceExists(java.lang.String sequence)voidsetProperty(java.lang.String propName, java.lang.String propValue)abstract booleansetTablePrimaryKey(java.lang.String table, java.lang.String keyAttribute)Sets the primaty key column for a table.abstract booleanstartEditingSession(java.lang.String sessionName, JGeometry area)Start the editing session on the server sideabstract booleantableHasAttributeWithValue(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 booleantopoEdgesHaveMismatchOfFeatures(java.lang.String topoModel, long firstEdge, long secondEdge)Returns if topology edges have mismatch in topology features.abstract booleantopoFacesHaveMismatchOfFeatures(java.lang.String topoModel, long faceLeft, long faceRight)Returns if topology faces have mismatch in topology features.abstract JGeometryunion(JGeometry sourceGeom, JGeometry[] otherGeoms, double tolerance)Returns the union between source geometry and other geometries.abstract JGeometryunion(AbstractFeature sourceGeom, AbstractFeature[] otherGeoms, double tolerance)Returns the union between source geometry and other geometries.abstract booleanunlockTopologyRows(java.lang.String workspace, java.lang.String topology, double xmin, double ymin, double xmax, double ymax)Unlocks the topology rows withing specified area.abstract booleanupdateAnnotationTextMetadata(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.
-
-
-
Field Detail
-
dataSource
protected AbstractDataSource dataSource
Data source
-
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
-
getDataSource
public AbstractDataSource getDataSource()
- Returns:
-
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.ExceptionMDSException
-
getSequenceCurrentValue
public abstract long getSequenceCurrentValue(java.lang.String sequence) throws java.lang.Exception, MDSException- Returns:
- Throws:
java.lang.ExceptionMDSException
-
sequenceExists
public abstract boolean sequenceExists(java.lang.String sequence) throws java.lang.Exception, MDSException- Parameters:
sequence-- Returns:
- Throws:
java.lang.ExceptionMDSException
-
createSequence
public abstract boolean createSequence(java.lang.String sequence, long startWith) throws java.lang.Exception, MDSException- Parameters:
sequence-startWith-- Returns:
- Throws:
java.lang.ExceptionMDSException
-
getSequences
public abstract java.util.Vector<oracle.mapviewer.share.Sequence> getSequences() throws java.lang.Exception, MDSException- Returns:
- Throws:
java.lang.ExceptionMDSException
-
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.ExceptionMDSException
-
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 expressionisGeodeticSRID- if SRID is geodetic.- Returns:
- a set of features.
- Throws:
java.lang.ExceptionMDSException
-
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 valuestable- table namekeyColumn- key attribute namespatialColumn- spatial attribute nameworkspace- versioning informationaccessMode- 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.ExceptionMDSException
-
loadTopologyMetadata
public abstract oracle.mapviewer.share.TopologyMetadata loadTopologyMetadata(java.lang.String topology, java.lang.String featureTable, java.lang.String topoColumn) throws java.lang.Exception, MDSExceptionLoads 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.ExceptionMDSException
-
loadTopologyLayersMetadata
public abstract oracle.mapviewer.share.TopologyMetadata[] loadTopologyLayersMetadata(java.lang.String topology) throws java.lang.Exception, MDSExceptionLoads the topology metadata for all topology layers- Parameters:
topology- topolgy name (can have owner OWNER.TOPOLOGY)- Throws:
java.lang.ExceptionMDSException
-
loadTopologyPrimitives
public abstract oracle.mapviewer.share.TopologyPrimitives loadTopologyPrimitives(java.lang.String topology, java.awt.geom.Rectangle2D mbr, WorkSpace workspace) throws java.lang.Exception, MDSExceptionLoads the topology primitives nodes, edges and faces.- Parameters:
topology-mbr-workspace-- Returns:
- Throws:
java.lang.ExceptionMDSException
-
loadTopologyPrimitives
public abstract oracle.mapviewer.share.TopologyPrimitives loadTopologyPrimitives(java.lang.String topology, int[] faceIds, int[] edgeIds, int[] nodeIds, WorkSpace workspace) throws java.lang.Exception, MDSExceptionLoads the specified topology primitives nodes, edges and faces.- Parameters:
topology-faceIds-edgeIds-nodeIds-workspace-- Returns:
- Throws:
java.lang.ExceptionMDSException
-
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.ExceptionMDSException
-
getTopologyFeatureTables
public abstract java.lang.String[] getTopologyFeatureTables(java.lang.String topology) throws java.lang.Exception, MDSExceptionReturns the feature tables associated with a topology.- Parameters:
topology-- Returns:
- Throws:
java.lang.ExceptionMDSException
-
getFeatureTableTopologies
public abstract java.lang.String[] getFeatureTableTopologies(java.lang.String featureTable, java.lang.String topoColumn) throws java.lang.Exception, MDSExceptionReturns the topoloy names associated with table and column.- Parameters:
featureTable-topoColumn-- Returns:
- Throws:
java.lang.ExceptionMDSException
-
getRelationsForTopologyPrimitive
public abstract oracle.mapviewer.share.TopologyRelation[] getRelationsForTopologyPrimitive(java.lang.String topology, int topo_id, int topo_type, WorkSpace workspace) throws java.lang.Exception, MDSExceptionReturns 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.ExceptionMDSException
-
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, MDSExceptionReturns 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.ExceptionMDSException
-
getTopologyNames
public abstract java.lang.String[] getTopologyNames() throws java.lang.Exception, MDSExceptionReturns the topoloy names associated with table and column.- Returns:
- Throws:
java.lang.ExceptionMDSException
-
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.ExceptionMDSException
-
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.ExceptionMDSException
-
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.ExceptionMDSException
-
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.ExceptionMDSException
-
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.ExceptionMDSException
-
saveDataSet
public abstract boolean saveDataSet(AbstractDataSet set) throws java.lang.Exception, MDSException
- Parameters:
set-- Returns:
- Throws:
java.lang.ExceptionMDSException
-
saveDataModel
public abstract boolean saveDataModel(AbstractDataModel model) throws java.lang.Exception, MDSException
- Parameters:
model-- Returns:
- Throws:
java.lang.ExceptionMDSException
-
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, MDSExceptionReturns the network names associated with table and column.- Returns:
- Throws:
java.lang.ExceptionMDSException
-
getNetworkMaxId
public abstract long getNetworkMaxId(java.lang.String network, java.lang.String netEntity) throws java.lang.Exception, MDSExceptionReturns the current maximum network id.- Parameters:
network- network namenetEntity- network entity (node or link- Returns:
- Throws:
java.lang.ExceptionMDSException
-
dataTableExists
public abstract boolean dataTableExists(java.lang.String table) throws java.lang.ExceptionReturns 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.ExceptionReturns 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.ExceptionReturns 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.ExceptionReturns 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, MDSExceptionReturns 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 nameattr- attribute namevalue- attribute value (must not be null)workspace- table version (optional, if null LIVE is assumed).- Returns:
- true or false
- Throws:
java.lang.ExceptionMDSException
-
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.ExceptionMDSException
-
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.ExceptionMDSException
-
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.ExceptionMDSException
-
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.ExceptionMDSException
-
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.ExceptionMDSException
-
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.ExceptionMDSException
-
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, MDSExceptionValidates the feature geometries, and returns pairs of feature key/validation code. Applies to geometry features.- Parameters:
keyAttribute-features-tolerance-- Returns:
- Throws:
java.lang.ExceptionMDSException
-
getTablePrimaryKey
public abstract java.lang.String getTablePrimaryKey(java.lang.String table) throws java.lang.Exception, MDSExceptionReturns the table primary key.- Parameters:
table-- Returns:
- null if table does not have a primary key.
- Throws:
java.lang.ExceptionMDSException
-
setTablePrimaryKey
public abstract boolean setTablePrimaryKey(java.lang.String table, java.lang.String keyAttribute) throws java.lang.Exception, MDSExceptionSets 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.ExceptionMDSException
-
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, MDSExceptionEnables versioning on table or topology for use with workspace manager.- Parameters:
dataName- table or topology name if it is a topologyisTopology- 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.ExceptionMDSException
-
isTableVersioned
public abstract boolean isTableVersioned(java.lang.String table, java.lang.String workspace) throws java.lang.Exception, MDSExceptionReturns if table is versioned (workspace enabled) and workspace exists (if provided)- Parameters:
table-workspace-- Returns:
- Throws:
java.lang.ExceptionMDSException
-
disableVersioning
public abstract boolean disableVersioning(java.lang.String dataName, boolean isTopology, boolean force, boolean ignoreLastError) throws java.lang.Exception, MDSExceptionDisables table or topology versioning.- Parameters:
dataName- table or topology nameisTopology- is data is an Oracle topologyforce- 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.ExceptionMDSException
-
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, MDSExceptionReturns the edit session workspace conflicts with parent workspace.- Parameters:
workspace-table-keyColumn-- Returns:
- Throws:
java.lang.ExceptionMDSException
-
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, MDSExceptionResolves the edit session workspace conflicts with parent workspace.- Parameters:
workspace-baseTable-keyAttribute-conflicts-- Returns:
- Throws:
java.lang.ExceptionMDSException
-
mergeTableWorkspaces
public abstract boolean mergeTableWorkspaces(java.lang.String sessionName, java.lang.String layerName) throws java.lang.Exception, MDSExceptionMerge the table child workspace with its parent workspace. All coflicts must be resolved before calling this method.- Parameters:
sessionName-layerName-- Returns:
- Throws:
java.lang.ExceptionMDSException
-
getSessionWorkspaceModifiedLayers
public abstract java.lang.String[] getSessionWorkspaceModifiedLayers(java.lang.String sessionName) throws java.lang.Exception, MDSExceptionReturns session layers that are modified. Applies to workspaces other than LIVE.- Parameters:
sessionName-- Returns:
- Throws:
java.lang.ExceptionMDSException
-
getModifiedTablesForWorkspace
public abstract java.lang.String[] getModifiedTablesForWorkspace(java.lang.String workspaceName) throws java.lang.Exception, MDSExceptionReturns the modified tables associated with the workspace.- Parameters:
workspaceName-- Returns:
- Throws:
java.lang.ExceptionMDSException
-
getModifiedWorkspacesForTable
public abstract java.lang.String[] getModifiedWorkspacesForTable(java.lang.String tableName) throws java.lang.Exception, MDSExceptionReturns the workspaces in which the table has been modified.- Parameters:
tableName-- Returns:
- Throws:
java.lang.ExceptionMDSException
-
getModifiedWorkspacesForTopology
public abstract java.lang.String[] getModifiedWorkspacesForTopology(java.lang.String topologyName) throws java.lang.Exception, MDSExceptionReturns the workspaces in which any topology table has been modified.- Parameters:
topologyName-- Returns:
- Throws:
java.lang.ExceptionMDSException
-
getVersionedTables
public abstract java.lang.String[] getVersionedTables() throws java.lang.Exception, MDSExceptionReturns the versioned tables.- Returns:
- Throws:
java.lang.ExceptionMDSException
-
getGeometryAttributes
public abstract java.lang.String[] getGeometryAttributes(java.lang.String table) throws java.lang.Exception, MDSExceptionReturns the geometry attributes of a table.- Parameters:
table-- Returns:
- Throws:
java.lang.ExceptionMDSException
-
getNonComplexAttributes
public abstract java.lang.String[] getNonComplexAttributes(java.lang.String table) throws java.lang.Exception, MDSExceptionReturns the non complex attributes of a table.- Parameters:
table-- Returns:
- Throws:
java.lang.ExceptionMDSException
-
getMapViewerThemesMetadata
public abstract java.util.Vector<oracle.mapviewer.share.MVThemeMetadata> getMapViewerThemesMetadata() throws java.lang.ExceptionReturns 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.ExceptionReturns 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, MDSExceptionReturns some metadata information about spatial tables registered on user_sdo_geom_metadata view.- Returns:
- Throws:
java.lang.ExceptionMDSException
-
createEditSession
public abstract boolean createEditSession(java.lang.String sessionName, java.lang.String description, boolean versionEnabled) throws java.lang.Exception, MDSExceptionCreates a new edit session on server.- Parameters:
sessionName-description-- Returns:
- Throws:
java.lang.ExceptionMDSException
-
removeEditSession
public abstract boolean removeEditSession(java.lang.String sessionName) throws java.lang.Exception, MDSExceptionRemoves an edit session from the server.- Parameters:
sessionName-- Returns:
- Throws:
java.lang.ExceptionMDSException
-
getEditorSessions
public abstract java.lang.String[] getEditorSessions() throws java.lang.Exception, MDSExceptionReturns the session names for data source editor.- Returns:
- Throws:
java.lang.ExceptionMDSException
-
getEditSession
public abstract java.lang.String getEditSession(java.lang.String sessionName) throws java.lang.Exception, MDSExceptionGets the EditSession XML string from the server- Parameters:
sessionName-- Returns:
- Throws:
java.lang.ExceptionMDSException
-
startEditingSession
public abstract boolean startEditingSession(java.lang.String sessionName, JGeometry area) throws java.lang.Exception, MDSExceptionStart the editing session on the server side- Parameters:
sessionName-area-- Returns:
- Throws:
java.lang.ExceptionMDSException
-
endEditingSession
public abstract boolean endEditingSession(java.lang.String sessionName) throws java.lang.Exception, MDSExceptionEnd the editing session on the server side- Parameters:
sessionName-- Returns:
- Throws:
java.lang.ExceptionMDSException
-
clearCachedSessions
public abstract boolean clearCachedSessions() throws java.lang.Exception, MDSExceptionClear the current edit session definitions from the server's in-memory cache.- Returns:
- Throws:
java.lang.ExceptionMDSException
-
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.ExceptionMDSException
-
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, MDSExceptionCreates a new table- Parameters:
tableName-columns-types-notNull-primaryKey-spatialMetadata-- Returns:
- Throws:
java.lang.ExceptionMDSException
-
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, MDSExceptionGets the extent of a spatial column- Parameters:
tableName-spatialColumn-spatialType-- Returns:
- Throws:
java.lang.ExceptionMDSException
-
getSRS
public abstract oracle.sdovis.SRS getSRS(java.lang.String srid) throws java.lang.Exception, MDSExceptionGets a SRS object from a specified SRID- Parameters:
srid- can be a #, or SDO:# or and ESG code like EPSG:#- Returns:
- Throws:
java.lang.ExceptionMDSException
-
getMapViewerBaseMaps
public abstract java.util.Vector<java.lang.String> getMapViewerBaseMaps() throws java.lang.Exception, MDSExceptionReturns MapViewer base map names.- Returns:
- Throws:
java.lang.ExceptionMDSException
-
getMapViewerBasemapThemeNames
public abstract java.lang.String[] getMapViewerBasemapThemeNames(java.lang.String basemap) throws java.lang.Exception, MDSExceptionReturn the base map theme names- Returns:
- Throws:
java.lang.ExceptionMDSException
-
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, MDSExceptionLocks the topology rows withing specified area.- Parameters:
workspace-topology-xmin-ymin-xmax-ymax-- Returns:
- Throws:
java.lang.ExceptionMDSException
-
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, MDSExceptionUnlocks the topology rows withing specified area.- Parameters:
workspace-topology-xmin-ymin-xmax-ymax-- Returns:
- Throws:
java.lang.ExceptionMDSException
-
-