it.eng.spagobi.mapcatalogue.bo.dao.hibernate
Class SbiGeoMapFeaturesDAOHibImpl

java.lang.Object
  extended by it.eng.spagobi.mapcatalogue.bo.dao.hibernate.AbstractHibernateDAO
      extended by it.eng.spagobi.mapcatalogue.bo.dao.hibernate.SbiGeoMapFeaturesDAOHibImpl
All Implemented Interfaces:
ISbiGeoMapFeaturesDAO

public class SbiGeoMapFeaturesDAOHibImpl
extends AbstractHibernateDAO
implements ISbiGeoMapFeaturesDAO

Author:
giachino

Constructor Summary
SbiGeoMapFeaturesDAOHibImpl()
           
 
Method Summary
 void eraseMapFeatures(GeoMapFeature aMapFeature)
          Implements the query to erase a SbiGeoMapFeatures.
 void insertMapFeatures(GeoMapFeature aMapFeature)
          Implements the query to insert a MapFeature.
 java.util.List loadFeatureNamesByMapId(java.lang.Integer mapId)
          Loads all detail information for all features compatible to the map specified at input.
 java.util.List loadFeaturesByMapId(java.lang.Integer mapId)
          Loads all detail information for all features compatible to the map specified at input.
 GeoMapFeature loadMapFeatures(java.lang.Integer mapId, java.lang.Integer featureId)
          Loads the list of MapFeatures associated to the input mapId and featureId.
 java.util.List loadMapNamesByFeatureId(java.lang.Integer featureId)
          Loads all detail information for all maps compatible to the feature specified at input.
 java.util.List loadMapsByFeatureId(java.lang.Integer featureId)
          Loads all detail information for all maps compatible to the feature specified at input.
 void modifyMapFeatures(GeoMapFeature aMapFeature)
          Implements the query to modify a MapFeature.
 GeoMapFeature toGeoMapFeature(SbiGeoMapFeatures hibMapFeature)
          From the Hibernate MapFeature relation at input, gives the corrispondent GeoMapFeature object.
 
Methods inherited from class it.eng.spagobi.mapcatalogue.bo.dao.hibernate.AbstractHibernateDAO
getSession, logException
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SbiGeoMapFeaturesDAOHibImpl

public SbiGeoMapFeaturesDAOHibImpl()
Method Detail

loadFeatureNamesByMapId

public java.util.List loadFeatureNamesByMapId(java.lang.Integer mapId)
                                       throws it.eng.spago.error.EMFUserError
Description copied from interface: ISbiGeoMapFeaturesDAO
Loads all detail information for all features compatible to the map specified at input. For each of them, name is stored into a String object. After that, all names are stored into a List, which is returned.

Specified by:
loadFeatureNamesByMapId in interface ISbiGeoMapFeaturesDAO
Returns:
A list containing all feature objects compatible with the map passed at input
Throws:
it.eng.spago.error.EMFUserError - If an Exception occurred
See Also:
it.eng.spagobi.bo.dao.ISbiGeoMapFeaturesDAO#loadFeatureNamesByMapId(java.lang.Integer)

loadFeaturesByMapId

public java.util.List loadFeaturesByMapId(java.lang.Integer mapId)
                                   throws it.eng.spago.error.EMFUserError
Description copied from interface: ISbiGeoMapFeaturesDAO
Loads all detail information for all features compatible to the map specified at input. For each of them, detail information is stored into an GeoFeature object. After that, all features are stored into a List, which is returned.

Specified by:
loadFeaturesByMapId in interface ISbiGeoMapFeaturesDAO
Returns:
A list containing all feature objects compatible with the map passed at input
Throws:
it.eng.spago.error.EMFUserError - If an Exception occurred
See Also:
it.eng.spagobi.bo.dao.ISbiGeoMapFeaturesDAO#loadFeaturesByMapId(java.lang.Integer)

loadMapNamesByFeatureId

public java.util.List loadMapNamesByFeatureId(java.lang.Integer featureId)
                                       throws it.eng.spago.error.EMFUserError
Description copied from interface: ISbiGeoMapFeaturesDAO
Loads all detail information for all maps compatible to the feature specified at input. For each of them, name information is stored into a String object. After that, all names are stored into a List, which is returned.

Specified by:
loadMapNamesByFeatureId in interface ISbiGeoMapFeaturesDAO
Returns:
A list containing all map objects compatible with the feature passed at input
Throws:
it.eng.spago.error.EMFUserError - If an Exception occurred
See Also:
it.eng.spagobi.bo.dao.ISbiGeoMapFeaturesDAO#loadMapNamesByFeatureId(java.lang.Integer)

loadMapsByFeatureId

public java.util.List loadMapsByFeatureId(java.lang.Integer featureId)
                                   throws it.eng.spago.error.EMFUserError
Description copied from interface: ISbiGeoMapFeaturesDAO
Loads all detail information for all maps compatible to the feature specified at input. For each of them, detail information is stored into an GeoMap object. After that, all maps are stored into a List, which is returned.

Specified by:
loadMapsByFeatureId in interface ISbiGeoMapFeaturesDAO
Returns:
A list containing all map objects compatible with the feature passed at input
Throws:
it.eng.spago.error.EMFUserError - If an Exception occurred
See Also:
it.eng.spagobi.bo.dao.ISbiGeoMapFeaturesDAO#loadMapsByFeatureId(java.lang.Integer)

loadMapFeatures

public GeoMapFeature loadMapFeatures(java.lang.Integer mapId,
                                     java.lang.Integer featureId)
                              throws it.eng.spago.error.EMFUserError
Description copied from interface: ISbiGeoMapFeaturesDAO
Loads the list of MapFeatures associated to the input mapId and featureId. All these information, achived by a query to the DB, are stored into a List of SbiGeoMapFeatures object, which is returned.

Specified by:
loadMapFeatures in interface ISbiGeoMapFeaturesDAO
Parameters:
mapId - The id for the map to load
featureId - The feature id for the feature to load
Returns:
A List of SbiGeoMapFeature object containing all loaded information
Throws:
it.eng.spago.error.EMFUserError - If an Exception occurred
See Also:
it.eng.spagobi.bo.dao.ISbiGeoMapFeaturesDAO#loadMapFeatures(java.lang.Integer, java.lang.Integer)

modifyMapFeatures

public void modifyMapFeatures(GeoMapFeature aMapFeature)
                       throws it.eng.spago.error.EMFUserError
Description copied from interface: ISbiGeoMapFeaturesDAO
Implements the query to modify a MapFeature. All information needed is stored into the input SbiGeoMapFeatures object.

Specified by:
modifyMapFeatures in interface ISbiGeoMapFeaturesDAO
Throws:
it.eng.spago.error.EMFUserError - If an Exception occurred
See Also:
it.eng.spagobi.geo.geo.bo.dao.ISbiGeoMapFeaturesDAO#modifySbiGeoMapFeatures(it.eng.spagobi.geo.bo.SbiGeoMapFeatures)

insertMapFeatures

public void insertMapFeatures(GeoMapFeature aMapFeature)
                       throws it.eng.spago.error.EMFUserError
Description copied from interface: ISbiGeoMapFeaturesDAO
Implements the query to insert a MapFeature. All information needed is stored into the input SbiGeoMapFeatures object.

Specified by:
insertMapFeatures in interface ISbiGeoMapFeaturesDAO
Throws:
it.eng.spago.error.EMFUserError - If an Exception occurred
See Also:
it.eng.spagobi.geo.bo.dao.ISbiGeoMapFeaturesDAO#insertMapFeatures(it.eng.spagobi.geo.bo.SbiGeoMapFeatures)

eraseMapFeatures

public void eraseMapFeatures(GeoMapFeature aMapFeature)
                      throws it.eng.spago.error.EMFUserError
Description copied from interface: ISbiGeoMapFeaturesDAO
Implements the query to erase a SbiGeoMapFeatures. All information needed is stored into the input SbiGeoMapFeatures object.

Specified by:
eraseMapFeatures in interface ISbiGeoMapFeaturesDAO
Throws:
it.eng.spago.error.EMFUserError - If an Exception occurred
See Also:
it.eng.spagobi.bo.dao.ISbiGeoMapFeaturesDAO#eraseObjParuse(it.eng.spagobi.geo.bo.SbiGeoMapFeatures)

toGeoMapFeature

public GeoMapFeature toGeoMapFeature(SbiGeoMapFeatures hibMapFeature)
From the Hibernate MapFeature relation at input, gives the corrispondent GeoMapFeature object.

Parameters:
hibMapFeature - The Hibernate Map object
Returns:
the corrispondent output GeoMap