it.eng.spagobi.mapcatalogue.dao
Interface ISbiGeoMapsDAO

All Superinterfaces:
ISpagoBIDao
All Known Implementing Classes:
SbiGeoMapsDAOHibImpl

public interface ISbiGeoMapsDAO
extends ISpagoBIDao

Author:
giachino

Method Summary
 void eraseMap(GeoMap aMap)
          Implements the query to erase a map.
 java.util.List getFeaturesFromSVG(byte[] content)
          Gets the features (tag ) from the SVG File.
 boolean hasFeaturesAssociated(java.lang.String mapId)
          Tells if a map is associated to any Features.
 void insertMap(GeoMap aMap, byte[] content)
          Implements the query to insert a map.
 java.util.List loadAllMaps()
          Loads all detail information for all maps.
 GeoMap loadMapByID(java.lang.Integer mapID)
          Loads all detail information for a map identified by its mapID.
 GeoMap loadMapByName(java.lang.String name)
          Loads all detail information for maps whose name is equal to name.
 void modifyMap(GeoMap aMap, byte[] content)
          Implements the query to modify a map.
 
Methods inherited from interface it.eng.spagobi.commons.dao.ISpagoBIDao
getUserProfile, setUserID, setUserProfile
 

Method Detail

loadMapByID

GeoMap loadMapByID(java.lang.Integer mapID)
                   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:
mapID - The id for the map to load
Returns:
An map object containing all loaded information
Throws:
it.eng.spago.error.EMFUserError - If an Exception occurred

loadMapByName

GeoMap loadMapByName(java.lang.String name)
                     throws it.eng.spago.error.EMFUserError
Loads all detail information for maps whose name is equal to name.

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

loadAllMaps

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

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

modifyMap

void modifyMap(GeoMap aMap,
               byte[] content)
               throws it.eng.spago.error.EMFUserError
Implements the query to modify a map. All information needed is stored into the input map object.

Parameters:
aMap - The object containing all modify information
content - the content of svg file
Throws:
it.eng.spago.error.EMFUserError - If an Exception occurred

insertMap

void insertMap(GeoMap aMap,
               byte[] content)
               throws it.eng.spago.error.EMFUserError
Implements the query to insert a map. All information needed is stored into the input map object.

Parameters:
aMap - The object containing all insert information
content - the content of svg file
Throws:
it.eng.spago.error.EMFUserError - If an Exception occurred

eraseMap

void eraseMap(GeoMap aMap)
              throws it.eng.spago.error.EMFUserError
Implements the query to erase a map. All information needed is stored into the input map object.

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

hasFeaturesAssociated

boolean hasFeaturesAssociated(java.lang.String mapId)
                              throws it.eng.spago.error.EMFUserError
Tells if a map is associated to any Features. It is useful because a map cannot be deleted if it is used by one or more BI Features.

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

getFeaturesFromSVG

java.util.List getFeaturesFromSVG(byte[] content)
                                  throws java.lang.Exception
Gets the features (tag ) from the SVG File.

Parameters:
content - The content file
Throws:
java.lang.Exception - raised If there are some problems