Class JDBCWorkspaceIOService
- java.lang.Object
-
- oracle.spatial.network.nfe.io.jdbc.service.JDBCAbstractIOService
-
- oracle.spatial.network.nfe.io.jdbc.service.JDBCWorkspaceIOService
-
- All Implemented Interfaces:
NFEIOService,NFEWorkspaceIOService
public class JDBCWorkspaceIOService extends JDBCAbstractIOService implements NFEWorkspaceIOService
Provides the default implementation for the workspace service.
-
-
Constructor Summary
Constructors Constructor Description JDBCWorkspaceIOService(NFEIOServiceProvider serviceProvider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddisableAllVersioning()Disables the versioning for the model general tables and feature layers tables.voiddisableVersioningForFeatureLayers(java.util.List<NFEFeatureLayer> featureLayersToVersionList)Disables the versioning for the feature layers table: feature table, relation table and hierarchy table.voiddisableVersioningForGeneralTables()Disables the versioning for the model general tables: RULE_INSTANCE, FT_RULE_REL, FT_CLASS_REL and network tables (links and nodes).voidenableAllVersioning()Enables the versioning for the model general tables and feature layers tables.voidenableVersioningForFeatureLayers(java.util.List<NFEFeatureLayer> featureLayersToVersionList)Enables versioning for the feature layers table: feature table, relation table and hierarchy table.voidenableVersioningForGeneralTables()Enables versioning for the model general tables: RULE_INSTANCE, FT_RULE_REL, FT_CLASS_REL and network tables (links and nodes).java.util.List<NFEWorkspace>getModelWorkspaces(long modelId)Returns the workspaces and the data related to the workspaces work area for the specified model.java.lang.StringgetParentWorkspace(java.lang.String workspaceName)Gets the parent workspace of the specified workspace.NFEConflictsDescriptorgetWorkspaceConflicts(java.lang.String childWorkspace, java.lang.String parentWorkspace)Returns the workspace conflicts.voidmergeWorkspace(java.lang.String workspaceName, java.lang.String parentWorkspace, boolean refreshLinkGeometries)Merges child and parent workspaces.voidremoveWorkspace(java.lang.String workspace)Removes the workspace and the related record in the model workspace relationship table USER_SDO_NFE_MODEL_WORKSPACE.voidresolveConflicts(java.util.List<FeatureAttributeDescriptor> featureAttributeDescriptorList, java.lang.String childWorkspace, java.lang.String parentWorkspace, java.lang.String choosenWorkspace)This function resolves workspace conflicts for the specified attributes by using the attributes values in the parent or child workspace as specified in the chosen workspace parameter.voidsaveWorkspace(java.lang.String parentWorkspace, NFEWorkspace nfeWorkspace)Saves the workspace and create a record in the model workspace relationship table USER_SDO_NFE_MODEL_WORKSPACE.voidupdateVersioning(boolean isVersionable)Updates the column USER_SDO_NFE_MODEL_METADATA.VERSIONABLE_IND with the value isVersionable.voidupdateWorkspace(NFEWorkspace nfeWorkspace)Updates the workspace related record in the table USER_SDO_NFE_MODEL_WORKSPACE with the data in the object NFEWorkspace.-
Methods inherited from class oracle.spatial.network.nfe.io.jdbc.service.JDBCAbstractIOService
close, commit, commitAndClose, getDataSource, getModel, getServiceProvider, rollback, rollbackAndClose, setDataSource, setModel
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface oracle.spatial.network.nfe.io.service.NFEIOService
getDataSource, getModel, getServiceProvider, setDataSource, setModel
-
-
-
-
Constructor Detail
-
JDBCWorkspaceIOService
public JDBCWorkspaceIOService(NFEIOServiceProvider serviceProvider)
-
-
Method Detail
-
enableVersioningForFeatureLayers
public void enableVersioningForFeatureLayers(java.util.List<NFEFeatureLayer> featureLayersToVersionList) throws NFEIOException
Description copied from interface:NFEWorkspaceIOServiceEnables versioning for the feature layers table: feature table, relation table and hierarchy table.- Specified by:
enableVersioningForFeatureLayersin interfaceNFEWorkspaceIOService- Parameters:
featureLayersToVersionList- feature layers- Throws:
NFEIOException- if an NFE error occurs.
-
enableVersioningForGeneralTables
public void enableVersioningForGeneralTables() throws NFEIOExceptionDescription copied from interface:NFEWorkspaceIOServiceEnables versioning for the model general tables: RULE_INSTANCE, FT_RULE_REL, FT_CLASS_REL and network tables (links and nodes).- Specified by:
enableVersioningForGeneralTablesin interfaceNFEWorkspaceIOService- Throws:
NFEIOException- if an NFE error occurs.
-
enableAllVersioning
public void enableAllVersioning() throws NFEIOExceptionDescription copied from interface:NFEWorkspaceIOServiceEnables the versioning for the model general tables and feature layers tables.- Specified by:
enableAllVersioningin interfaceNFEWorkspaceIOService- Throws:
NFEIOException- if an NFE error occurs.
-
disableVersioningForFeatureLayers
public void disableVersioningForFeatureLayers(java.util.List<NFEFeatureLayer> featureLayersToVersionList) throws NFEIOException
Description copied from interface:NFEWorkspaceIOServiceDisables the versioning for the feature layers table: feature table, relation table and hierarchy table.- Specified by:
disableVersioningForFeatureLayersin interfaceNFEWorkspaceIOService- Parameters:
featureLayersToVersionList- feature layers- Throws:
NFEIOException- if an NFE error occurs.
-
disableVersioningForGeneralTables
public void disableVersioningForGeneralTables() throws NFEIOExceptionDescription copied from interface:NFEWorkspaceIOServiceDisables the versioning for the model general tables: RULE_INSTANCE, FT_RULE_REL, FT_CLASS_REL and network tables (links and nodes).- Specified by:
disableVersioningForGeneralTablesin interfaceNFEWorkspaceIOService- Throws:
NFEIOException- if an NFE error occurs.
-
disableAllVersioning
public void disableAllVersioning() throws NFEIOExceptionDescription copied from interface:NFEWorkspaceIOServiceDisables the versioning for the model general tables and feature layers tables.- Specified by:
disableAllVersioningin interfaceNFEWorkspaceIOService- Throws:
NFEIOException- if an NFE error occurs.
-
mergeWorkspace
public void mergeWorkspace(java.lang.String workspaceName, java.lang.String parentWorkspace, boolean refreshLinkGeometries) throws NFEIOExceptionDescription copied from interface:NFEWorkspaceIOServiceMerges child and parent workspaces. Any conflicts must be resolved before a workspace can be merged. Reload the model after to execute this function.- Specified by:
mergeWorkspacein interfaceNFEWorkspaceIOService- Parameters:
workspaceName- child workspace to mergeparentWorkspace- parent workspace to mergerefreshLinkGeometries- if true refresh the modified link geometries to ensure that the start and end of the link are the same than the start and end node geometries of the link.- Throws:
NFEIOException- if an NFE error occurs.
-
resolveConflicts
public void resolveConflicts(java.util.List<FeatureAttributeDescriptor> featureAttributeDescriptorList, java.lang.String childWorkspace, java.lang.String parentWorkspace, java.lang.String choosenWorkspace) throws NFEIOException
Description copied from interface:NFEWorkspaceIOServiceThis function resolves workspace conflicts for the specified attributes by using the attributes values in the parent or child workspace as specified in the chosen workspace parameter. The attributes in conflict can be loaded with the function getWorkspaceConflicts. Merge the workspace after to execute this function and reload the model.- Specified by:
resolveConflictsin interfaceNFEWorkspaceIOService- Parameters:
featureAttributeDescriptorList- the conflicts involving the attributes in the list will resolvedchildWorkspace- child workspaceparentWorkspace- parent workspacechoosenWorkspace- chosen workspace- Throws:
NFEIOException- if an NFE error occurs.
-
getParentWorkspace
public java.lang.String getParentWorkspace(java.lang.String workspaceName) throws NFEIOExceptionDescription copied from interface:NFEWorkspaceIOServiceGets the parent workspace of the specified workspace.- Specified by:
getParentWorkspacein interfaceNFEWorkspaceIOService- Parameters:
workspaceName- workspace- Returns:
- parent workspace
- Throws:
NFEIOException- if an NFE error occurs.
-
getWorkspaceConflicts
public NFEConflictsDescriptor getWorkspaceConflicts(java.lang.String childWorkspace, java.lang.String parentWorkspace) throws NFEIOException
Description copied from interface:NFEWorkspaceIOServiceReturns the workspace conflicts. The conflicts are described by the NFEConflictsDescriptor object.- Specified by:
getWorkspaceConflictsin interfaceNFEWorkspaceIOService- Parameters:
childWorkspace- child workspaceparentWorkspace- parent workspace- Returns:
- conflict descriptor
- Throws:
NFEIOException- if an NFE error occurs.
-
getModelWorkspaces
public java.util.List<NFEWorkspace> getModelWorkspaces(long modelId) throws NFEIOException
Description copied from interface:NFEWorkspaceIOServiceReturns the workspaces and the data related to the workspaces work area for the specified model.- Specified by:
getModelWorkspacesin interfaceNFEWorkspaceIOService- Parameters:
modelId- model identifier- Returns:
- model workspaces
- Throws:
NFEIOException- if an NFE error occurs.
-
updateVersioning
public void updateVersioning(boolean isVersionable) throws NFEIOExceptionDescription copied from interface:NFEWorkspaceIOServiceUpdates the column USER_SDO_NFE_MODEL_METADATA.VERSIONABLE_IND with the value isVersionable. This method will not version enable any table.- Specified by:
updateVersioningin interfaceNFEWorkspaceIOService- Parameters:
isVersionable- true if the model is versionable, false otherwise- Throws:
NFEIOException- if an NFE error occurs.
-
saveWorkspace
public void saveWorkspace(java.lang.String parentWorkspace, NFEWorkspace nfeWorkspace) throws NFEIOExceptionDescription copied from interface:NFEWorkspaceIOServiceSaves the workspace and create a record in the model workspace relationship table USER_SDO_NFE_MODEL_WORKSPACE.- Specified by:
saveWorkspacein interfaceNFEWorkspaceIOService- Parameters:
parentWorkspace- parent workspace of the saved workspacenfeWorkspace- workspace data- Throws:
NFEIOException- if an NFE error occurs.
-
removeWorkspace
public void removeWorkspace(java.lang.String workspace) throws NFEIOExceptionDescription copied from interface:NFEWorkspaceIOServiceRemoves the workspace and the related record in the model workspace relationship table USER_SDO_NFE_MODEL_WORKSPACE.- Specified by:
removeWorkspacein interfaceNFEWorkspaceIOService- Parameters:
workspace- workspace to remove- Throws:
NFEIOException- if an NFE error occurs.
-
updateWorkspace
public void updateWorkspace(NFEWorkspace nfeWorkspace) throws NFEIOException
Description copied from interface:NFEWorkspaceIOServiceUpdates the workspace related record in the table USER_SDO_NFE_MODEL_WORKSPACE with the data in the object NFEWorkspace.- Specified by:
updateWorkspacein interfaceNFEWorkspaceIOService- Parameters:
nfeWorkspace- workspace data- Throws:
NFEIOException- if an NFE error occurs.
-
-