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, setModelequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDataSource, getModel, getServiceProvider, setDataSource, setModelpublic JDBCModelIOService(NFEIOServiceProvider serviceProvider)
public NFEModel createFromScratchModel(java.lang.String modelName, boolean directedNetwork, NFEGeometryDescriptor geomDescriptor) throws NFEIOException
NFEModelIOServicecreateFromScratchModel in interface NFEModelIOServicemodelName - 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
NFEModelIOServicecreateOverExistingNetworkModel in interface NFEModelIOServicemodelName - 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
NFEModelIOServicecreateFeatureLayer in interface NFEModelIOServicefeatureLayerName - 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
NFEModelIOServiceenableAnalysisInModel in interface NFEModelIOServiceNFEIOExceptionpublic NFEModel loadModel(java.lang.String modelName) throws NFEIOException
NFEModelIOServiceloadModel in interface NFEModelIOServicemodelName - model nameNFEIOException - if an NFE error occurs.public void persistFeatureClass(NFEFeatureClass featClass) throws NFEIOException
NFEModelIOServicepersistFeatureClass in interface NFEModelIOServicefeatClass - feature classNFEIOException - if an NFE error occurs.public void persistFeatureLayerAttributes(NFEFeatureLayer featLayer, java.util.Collection<NFEAttributeDescriptor> attrDescriptors) throws NFEIOException
NFEModelIOServicepersistFeatureLayerAttributes in interface NFEModelIOServicefeatLayer - feature layerattrDescriptors - attributes descriptorsNFEIOException - if an NFE error occurs.public void persistCatalog(NFECatalog catalog) throws NFEIOException
NFEModelIOServicepersistCatalog in interface NFEModelIOServicecatalog - catalogNFEIOException - if an NFE error occurs.public void updateFeatureLayersZOrder(java.util.Collection<NFEFeatureLayer> featLayers) throws NFEIOException
NFEModelIOServiceupdateFeatureLayersZOrder in interface NFEModelIOServicefeatLayers - feature layers to updateNFEIOException - if an NFE error occurs.public void updateFeatureClass(NFEFeatureClass featClass) throws NFEIOException
NFEModelIOServiceupdateFeatureClass in interface NFEModelIOServicefeatClass - feature classNFEIOException - if an NFE error occurs.
public void updateAttributeConstraints(java.lang.Long featureClassId,
java.lang.String attributeName,
java.lang.String newValue)
throws NFEIOException
NFEModelIOServiceupdateAttributeConstraints in interface NFEModelIOServicefeatureClassId - feature class idattributeName - attribute namenewValue - new attribute default valueNFEIOException - if an NFE error occurs.public void updateCatalog(NFECatalog catalog) throws NFEIOException
NFEModelIOServiceupdateCatalog in interface NFEModelIOServicecatalog - catalogNFEIOException - if an NFE error occurs.
public void deleteModel()
throws NFEIOException
NFEModelIOServicedeleteModel in interface NFEModelIOServiceNFEIOException - if an NFE error occurs.public void deleteFeatureLayer(NFEFeatureLayer featLayer) throws NFEIOException
NFEModelIOServicedeleteFeatureLayer in interface NFEModelIOServicefeatLayer - feature layerNFEIOException - if an NFE error occurs.public void deleteFeatureClass(NFEFeatureClass featClass) throws NFEIOException
NFEModelIOServicedeleteFeatureClass in interface NFEModelIOServicefeatClass - feature classNFEIOException - if an NFE error occurs.public void deleteFeatureLayerAttributes(NFEFeatureLayer featLayer, java.util.Collection<NFEAttributeDescriptor> attrDescriptors) throws NFEIOException
NFEModelIOServicedeleteFeatureLayerAttributes in interface NFEModelIOServicefeatLayer - feature layerattrDescriptors - attributes to deleteNFEIOException - if an NFE error occurs.
public void deleteCatalog(long catalogId)
throws NFEIOException
NFEModelIOServicedeleteCatalog in interface NFEModelIOServicecatalogId - catalog idNFEIOException - if an NFE error occurs.
public java.util.Map<java.lang.Long,java.lang.String> getModelsIdentificators()
throws NFEIOException
NFEModelIOServicegetModelsIdentificators in interface NFEModelIOServiceNFEIOException - if an NFE error occurs.public java.util.Collection<NFECatalog> getCatalogs() throws NFEIOException
NFEModelIOServicegetCatalogs in interface NFEModelIOServiceNFEIOException - if an NFE error occurs.
public java.util.Map<java.lang.Long,java.util.Collection<java.lang.String>> getFeatureLayersAttributesUsingCatalog(long catalogId)
throws NFEIOException
NFEModelIOServicegetFeatureLayersAttributesUsingCatalog in interface NFEModelIOServicecatalogId - 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
NFEModelIOServicepersistRules in interface NFEModelIOServicenewRules - 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
NFEModelIOServiceregisterRuleHandler in interface NFEModelIOServicehandlerFQClassName - rule handler full qualified class nameruleType - type of rule the handler is forNFEIOException - if an NFE error occurs.