it.eng.spagobi.mapcatalogue.dao
Class SbiGeoMapFeaturesDAOHibImpl

java.lang.Object
  extended by it.eng.spagobi.commons.dao.AbstractHibernateDAO
      extended by it.eng.spagobi.mapcatalogue.dao.SbiGeoMapFeaturesDAOHibImpl
All Implemented Interfaces:
ISpagoBIDao, ISbiGeoMapFeaturesDAO

public class SbiGeoMapFeaturesDAOHibImpl
extends AbstractHibernateDAO
implements ISbiGeoMapFeaturesDAO

Author:
giachino

Constructor Summary
SbiGeoMapFeaturesDAOHibImpl()
           
 
Method Summary
 void eraseMapFeatures(GeoMapFeature aMapFeature)
          Erase map features.
 void insertMapFeatures(GeoMapFeature aMapFeature)
          Insert map features.
 java.util.List loadFeatureNamesByMapId(java.lang.Integer mapId)
          Load feature names by map id.
 java.util.List loadFeaturesByMapId(java.lang.Integer mapId)
          Load features by map id.
 GeoMapFeature loadMapFeatures(java.lang.Integer mapId, java.lang.Integer featureId)
          Load map features.
 java.util.List loadMapNamesByFeatureId(java.lang.Integer featureId)
          Load map names by feature id.
 java.util.List loadMapsByFeatureId(java.lang.Integer featureId)
          Load maps by feature id.
 void modifyMapFeatures(GeoMapFeature aMapFeature)
          Modify map features.
 GeoMapFeature toGeoMapFeature(SbiGeoMapFeatures hibMapFeature)
          From the Hibernate MapFeature relation at input, gives the corrispondent GeoMapFeature object.
 
Methods inherited from class it.eng.spagobi.commons.dao.AbstractHibernateDAO
getSession, getUserProfile, logException, rollbackIfActiveAndClose, setUserID, setUserProfile, updateSbiCommonInfo4Insert, updateSbiCommonInfo4Update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface it.eng.spagobi.commons.dao.ISpagoBIDao
getUserProfile, setUserID, setUserProfile
 

Constructor Detail

SbiGeoMapFeaturesDAOHibImpl

public SbiGeoMapFeaturesDAOHibImpl()
Method Detail

loadFeatureNamesByMapId

public java.util.List loadFeatureNamesByMapId(java.lang.Integer mapId)
                                       throws it.eng.spago.error.EMFUserError
Load feature names by map id.

Specified by:
loadFeatureNamesByMapId in interface ISbiGeoMapFeaturesDAO
Parameters:
mapId - the map id
Returns:
the list
Throws:
it.eng.spago.error.EMFUserError - the EMF user error
See Also:
it.eng.spagobi.mapcatalogue.dao.bo.dao.ISbiGeoMapFeaturesDAO#loadFeatureNamesByMapId(java.lang.Integer)

loadFeaturesByMapId

public java.util.List loadFeaturesByMapId(java.lang.Integer mapId)
                                   throws it.eng.spago.error.EMFUserError
Load features by map id.

Specified by:
loadFeaturesByMapId in interface ISbiGeoMapFeaturesDAO
Parameters:
mapId - the map id
Returns:
the list
Throws:
it.eng.spago.error.EMFUserError - the EMF user error
See Also:
it.eng.spagobi.mapcatalogue.dao.bo.dao.ISbiGeoMapFeaturesDAO#loadFeaturesByMapId(java.lang.Integer)

loadMapNamesByFeatureId

public java.util.List loadMapNamesByFeatureId(java.lang.Integer featureId)
                                       throws it.eng.spago.error.EMFUserError
Load map names by feature id.

Specified by:
loadMapNamesByFeatureId in interface ISbiGeoMapFeaturesDAO
Parameters:
featureId - the feature id
Returns:
the list
Throws:
it.eng.spago.error.EMFUserError - the EMF user error
See Also:
it.eng.spagobi.mapcatalogue.dao.bo.dao.ISbiGeoMapFeaturesDAO#loadMapNamesByFeatureId(java.lang.Integer)

loadMapsByFeatureId

public java.util.List loadMapsByFeatureId(java.lang.Integer featureId)
                                   throws it.eng.spago.error.EMFUserError
Load maps by feature id.

Specified by:
loadMapsByFeatureId in interface ISbiGeoMapFeaturesDAO
Parameters:
featureId - the feature id
Returns:
the list
Throws:
it.eng.spago.error.EMFUserError - the EMF user error
See Also:
it.eng.spagobi.mapcatalogue.dao.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
Load map features.

Specified by:
loadMapFeatures in interface ISbiGeoMapFeaturesDAO
Parameters:
mapId - the map id
featureId - the feature id
Returns:
the geo map feature
Throws:
it.eng.spago.error.EMFUserError - the EMF user error
See Also:
it.eng.spagobi.mapcatalogue.dao.bo.dao.ISbiGeoMapFeaturesDAO#loadMapFeatures(java.lang.Integer, java.lang.Integer)

modifyMapFeatures

public void modifyMapFeatures(GeoMapFeature aMapFeature)
                       throws it.eng.spago.error.EMFUserError
Modify map features.

Specified by:
modifyMapFeatures in interface ISbiGeoMapFeaturesDAO
Parameters:
aMapFeature - the a map feature
Throws:
it.eng.spago.error.EMFUserError - the EMF user error
See Also:
it.eng.spagobi.mapcatalogue.dao.geo.geo.bo.dao.ISbiGeoMapFeaturesDAO#modifySbiGeoMapFeatures(it.eng.spagobi.geo.bo.SbiGeoMapFeatures)

insertMapFeatures

public void insertMapFeatures(GeoMapFeature aMapFeature)
                       throws it.eng.spago.error.EMFUserError
Insert map features.

Specified by:
insertMapFeatures in interface ISbiGeoMapFeaturesDAO
Parameters:
aMapFeature - the a map feature
Throws:
it.eng.spago.error.EMFUserError - the EMF user error
See Also:
it.eng.spagobi.mapcatalogue.dao.geo.bo.dao.ISbiGeoMapFeaturesDAO#insertMapFeatures(it.eng.spagobi.geo.bo.SbiGeoMapFeatures)

eraseMapFeatures

public void eraseMapFeatures(GeoMapFeature aMapFeature)
                      throws it.eng.spago.error.EMFUserError
Erase map features.

Specified by:
eraseMapFeatures in interface ISbiGeoMapFeaturesDAO
Parameters:
aMapFeature - the a map feature
Throws:
it.eng.spago.error.EMFUserError - the EMF user error
See Also:
it.eng.spagobi.mapcatalogue.dao.bo.dao.ISbiGeoMapFeaturesDAO#eraseMapFeatures(it.eng.spagobi.mapcatalogue.bo.GeoMapFeature)

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