it.eng.spagobi.mapcatalogue.bo.dao
Interface ISbiGeoFeaturesDAO

All Known Implementing Classes:
SbiGeoFeaturesDAOHibImpl

public interface ISbiGeoFeaturesDAO

Author:
giachino

Method Summary
 void eraseFeature(GeoFeature aFeature)
          Implements the query to erase a feature.
 boolean hasMapsAssociated(java.lang.String featureId)
          Tells if a feature is associated to any maps.
 void insertFeature(GeoFeature aFeature)
          Implements the query to insert a feature.
 java.util.List loadAllFeatures()
          Loads all detail information for all features.
 GeoFeature loadFeatureByID(java.lang.Integer featureID)
          Loads all detail information for a map identified by its mapID.
 GeoFeature loadFeatureByName(java.lang.String name)
          Loads all detail information for feature whose name is equal to name.
 void modifyFeature(GeoFeature aFeature)
          Implements the query to modify a feature.
 

Method Detail

loadFeatureByID

GeoFeature loadFeatureByID(java.lang.Integer featureID)
                           throws it.eng.spago.error.EMFUserError
Loads all detail information for a map identified by its mapID. All these information, achived by a query to the DB, are stored into an map object, which is returned.

Parameters:
featureID - The id for the feature to load
Returns:
A SbiGeoFeatures object containing all loaded information
Throws:
it.eng.spago.error.EMFUserError - If an Exception occurred

loadFeatureByName

GeoFeature loadFeatureByName(java.lang.String name)
                             throws it.eng.spago.error.EMFUserError
Loads all detail information for feature whose name is equal to name. Each feature that is added into a SbiGeoFeatures object, which is returned.

Parameters:
name - The name for the feature to load
Returns:
An SbiGeoFeatures object containing all loaded information
Throws:
it.eng.spago.error.EMFUserError - If an Exception occurred

loadAllFeatures

java.util.List loadAllFeatures()
                               throws it.eng.spago.error.EMFUserError
Loads all detail information for all features. For each of them, detail information is stored into an feature object. After that, all features are stored into a List, which is returned.

Returns:
A list containing all feature objects
Throws:
it.eng.spago.error.EMFUserError - If an Exception occurred

modifyFeature

void modifyFeature(GeoFeature aFeature)
                   throws it.eng.spago.error.EMFUserError
Implements the query to modify a feature. All information needed is stored into the input feature object.

Parameters:
afeature - The object containing all modify information
Throws:
it.eng.spago.error.EMFUserError - If an Exception occurred

insertFeature

void insertFeature(GeoFeature aFeature)
                   throws it.eng.spago.error.EMFUserError
Implements the query to insert a feature. All information needed is stored into the input feature object.

Parameters:
aFeature - The object containing all insert information
Throws:
it.eng.spago.error.EMFUserError - If an Exception occurred

eraseFeature

void eraseFeature(GeoFeature aFeature)
                  throws it.eng.spago.error.EMFUserError
Implements the query to erase a feature. All information needed is stored into the input feature object.

Parameters:
afeature - The object containing all delete information
Throws:
it.eng.spago.error.EMFUserError - If an Exception occurred

hasMapsAssociated

boolean hasMapsAssociated(java.lang.String featureId)
                          throws it.eng.spago.error.EMFUserError
Tells if a feature is associated to any maps. It is useful because a feature cannot be exists without a map, so if there arent more maps, the feature must to be deleted.

Parameters:
featureId - The feature identifier
Returns:
True if the feature is used by one or more objects, else false
Throws:
it.eng.spago.error.EMFUserError - If any exception occurred