public class JDBCModelIOService extends JDBCAbstractIOService implements NFEModelIOService
Constructor and Description |
---|
JDBCModelIOService(NFEIOServiceProvider serviceProvider) |
Modifier and Type | Method and Description |
---|---|
NFEFeatureLayer |
createFeatureLayer(java.lang.String featureLayerName, java.lang.String featureTable, java.lang.String relationTable, java.lang.String hierarchyTable, java.util.Collection<NFEAttributeDescriptor> attrDescriptors, int hierarchyLevel, int zOrder)
Creates a feature layer.
|
NFEModel |
createFromScratchModel(java.lang.String modelName, boolean directedNetwork, NFEGeometryDescriptor geomDescriptor)
Creates a model in from scratch mode.
|
NFEModel |
createOverExistingNetworkModel(java.lang.String modelName, java.lang.String networkName)
Creates a model in from existing network mode.
|
void |
deleteCatalog(long catalogId)
Deletes the specified catalog.
|
void |
deleteFeatureClass(NFEFeatureClass featClass)
Deletes the feature class.
|
void |
deleteFeatureLayer(NFEFeatureLayer featLayer)
Deletes the feature layer.
|
void |
deleteFeatureLayerAttributes(NFEFeatureLayer featLayer, java.util.Collection<NFEAttributeDescriptor> attrDescriptors)
Deletes the feature layer attributes.
|
void |
deleteModel()
Deletes the model.
|
void |
enableAnalysisInModel()
Enables the analysis searching creating the path layer.
|
java.util.Collection<NFECatalog> |
getCatalogs()
Returns all the catalogs related to the model.
|
java.util.Map<java.lang.Long,java.util.Collection<java.lang.String>> |
getFeatureLayersAttributesUsingCatalog(long catalogId)
Returns a map with as key the feature layer identifiers and as values the list of attributes using the catalog.
|
java.util.Map<java.lang.Long,java.lang.String> |
getModelsIdentificators()
Returns a map with identifiers and names of all the existing models.
|
NFEModel |
loadModel(java.lang.String modelName)
Loads the NFE model.
|
void |
persistCatalog(NFECatalog catalog)
Persists a catalog.
|
void |
persistFeatureClass(NFEFeatureClass featClass)
Persists a feature class.
|
void |
persistFeatureLayerAttributes(NFEFeatureLayer featLayer, java.util.Collection<NFEAttributeDescriptor> attrDescriptors)
Persists the feature layer attributes.
|
void |
persistRules(java.util.Collection<NFEConnectivityRule> newRules, java.util.Collection<NFEConnectivityRule> deletedRules, java.util.Collection<NFEConnectivityRule> updatedRules)
Persists the NFE rules.
|
long |
registerRuleHandler(java.lang.String handlerFQClassName, NFEConnectivityRule.ConnectivityRuleType ruleType)
Registers the rule handler for the specified rule.
|
void |
updateAttributeConstraints(java.lang.Long featureClassId, java.lang.String attributeName, java.lang.String newValue)
Updates the attribute default value for the specified feature class.
|
void |
updateCatalog(NFECatalog catalog)
Updates the catalog values of the specified catalog.
|
void |
updateFeatureClass(NFEFeatureClass featClass)
Updates the feature class.
|
void |
updateFeatureLayersZOrder(java.util.Collection<NFEFeatureLayer> featLayers)
Updates the feature layers Z-order.
|
getDataSource, getModel, getServiceProvider, setDataSource, setModel
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDataSource, getModel, getServiceProvider, setDataSource, setModel
public JDBCModelIOService(NFEIOServiceProvider serviceProvider)
public NFEModel createFromScratchModel(java.lang.String modelName, boolean directedNetwork, NFEGeometryDescriptor geomDescriptor) throws NFEIOException
NFEModelIOService
createFromScratchModel
in interface NFEModelIOService
modelName
- NFE model namedirectedNetwork
- true if the network to create has to be directed, false otherwisegeomDescriptor
- network geometry descriptorNFEIOException
- if an NFE error occurs.public NFEModel createOverExistingNetworkModel(java.lang.String modelName, java.lang.String networkName) throws NFEIOException
NFEModelIOService
createOverExistingNetworkModel
in interface NFEModelIOService
modelName
- model namenetworkName
- network nameNFEIOException
- if an NFE error occurs.public NFEFeatureLayer createFeatureLayer(java.lang.String featureLayerName, java.lang.String featureTable, java.lang.String relationTable, java.lang.String hierarchyTable, java.util.Collection<NFEAttributeDescriptor> attrDescriptors, int hierarchyLevel, int zOrder) throws NFEIOException
NFEModelIOService
createFeatureLayer
in interface NFEModelIOService
featureLayerName
- feature layer namefeatureTable
- feature tablerelationTable
- relation tablehierarchyTable
- hierarchy tableattrDescriptors
- attributes descriptorshierarchyLevel
- hierarchy level of the feature layerzOrder
- Z-order of the feature layer. The Z-order determines which feature layer appears on top of the other.NFEIOException
- if an NFE error occurs.public void enableAnalysisInModel() throws NFEIOException
NFEModelIOService
enableAnalysisInModel
in interface NFEModelIOService
NFEIOException
public NFEModel loadModel(java.lang.String modelName) throws NFEIOException
NFEModelIOService
loadModel
in interface NFEModelIOService
modelName
- model nameNFEIOException
- if an NFE error occurs.public void persistFeatureClass(NFEFeatureClass featClass) throws NFEIOException
NFEModelIOService
persistFeatureClass
in interface NFEModelIOService
featClass
- feature classNFEIOException
- if an NFE error occurs.public void persistFeatureLayerAttributes(NFEFeatureLayer featLayer, java.util.Collection<NFEAttributeDescriptor> attrDescriptors) throws NFEIOException
NFEModelIOService
persistFeatureLayerAttributes
in interface NFEModelIOService
featLayer
- feature layerattrDescriptors
- attributes descriptorsNFEIOException
- if an NFE error occurs.public void persistCatalog(NFECatalog catalog) throws NFEIOException
NFEModelIOService
persistCatalog
in interface NFEModelIOService
catalog
- catalogNFEIOException
- if an NFE error occurs.public void updateFeatureLayersZOrder(java.util.Collection<NFEFeatureLayer> featLayers) throws NFEIOException
NFEModelIOService
updateFeatureLayersZOrder
in interface NFEModelIOService
featLayers
- feature layers to updateNFEIOException
- if an NFE error occurs.public void updateFeatureClass(NFEFeatureClass featClass) throws NFEIOException
NFEModelIOService
updateFeatureClass
in interface NFEModelIOService
featClass
- feature classNFEIOException
- if an NFE error occurs.public void updateAttributeConstraints(java.lang.Long featureClassId, java.lang.String attributeName, java.lang.String newValue) throws NFEIOException
NFEModelIOService
updateAttributeConstraints
in interface NFEModelIOService
featureClassId
- feature class idattributeName
- attribute namenewValue
- new attribute default valueNFEIOException
- if an NFE error occurs.public void updateCatalog(NFECatalog catalog) throws NFEIOException
NFEModelIOService
updateCatalog
in interface NFEModelIOService
catalog
- catalogNFEIOException
- if an NFE error occurs.public void deleteModel() throws NFEIOException
NFEModelIOService
deleteModel
in interface NFEModelIOService
NFEIOException
- if an NFE error occurs.public void deleteFeatureLayer(NFEFeatureLayer featLayer) throws NFEIOException
NFEModelIOService
deleteFeatureLayer
in interface NFEModelIOService
featLayer
- feature layerNFEIOException
- if an NFE error occurs.public void deleteFeatureClass(NFEFeatureClass featClass) throws NFEIOException
NFEModelIOService
deleteFeatureClass
in interface NFEModelIOService
featClass
- feature classNFEIOException
- if an NFE error occurs.public void deleteFeatureLayerAttributes(NFEFeatureLayer featLayer, java.util.Collection<NFEAttributeDescriptor> attrDescriptors) throws NFEIOException
NFEModelIOService
deleteFeatureLayerAttributes
in interface NFEModelIOService
featLayer
- feature layerattrDescriptors
- attributes to deleteNFEIOException
- if an NFE error occurs.public void deleteCatalog(long catalogId) throws NFEIOException
NFEModelIOService
deleteCatalog
in interface NFEModelIOService
catalogId
- catalog idNFEIOException
- if an NFE error occurs.public java.util.Map<java.lang.Long,java.lang.String> getModelsIdentificators() throws NFEIOException
NFEModelIOService
getModelsIdentificators
in interface NFEModelIOService
NFEIOException
- if an NFE error occurs.public java.util.Collection<NFECatalog> getCatalogs() throws NFEIOException
NFEModelIOService
getCatalogs
in interface NFEModelIOService
NFEIOException
- if an NFE error occurs.public java.util.Map<java.lang.Long,java.util.Collection<java.lang.String>> getFeatureLayersAttributesUsingCatalog(long catalogId) throws NFEIOException
NFEModelIOService
getFeatureLayersAttributesUsingCatalog
in interface NFEModelIOService
catalogId
- catalog idNFEIOException
- if an NFE error occurs.public void persistRules(java.util.Collection<NFEConnectivityRule> newRules, java.util.Collection<NFEConnectivityRule> deletedRules, java.util.Collection<NFEConnectivityRule> updatedRules) throws NFEIOException
NFEModelIOService
persistRules
in interface NFEModelIOService
newRules
- rules to adddeletedRules
- rules to deleteupdatedRules
- rules to updateNFEIOException
- if an NFE error occurs.public long registerRuleHandler(java.lang.String handlerFQClassName, NFEConnectivityRule.ConnectivityRuleType ruleType) throws NFEIOException
NFEModelIOService
registerRuleHandler
in interface NFEModelIOService
handlerFQClassName
- rule handler full qualified class nameruleType
- type of rule the handler is forNFEIOException
- if an NFE error occurs.