it.eng.spagobi.bo.dao.hibernate
Class ViewpointDAOHimpl

java.lang.Object
  extended by it.eng.spagobi.bo.dao.hibernate.AbstractHibernateDAO
      extended by it.eng.spagobi.bo.dao.hibernate.ViewpointDAOHimpl
All Implemented Interfaces:
IViewpointDAO

public class ViewpointDAOHimpl
extends AbstractHibernateDAO
implements IViewpointDAO

Defines the Hibernate implementations for all DAO methods, for a viewpoint.

Author:
Giachino

Constructor Summary
ViewpointDAOHimpl()
           
 
Method Summary
 void eraseViewpoint(java.lang.Integer id)
          Implements the query to erase a viewpoint.
 void insertViewpoint(Viewpoint viewpoint)
          Implements the query to insert a viewpoint.
 java.util.List loadAllViewpoints()
          Loads all detail information for all viewpoints.
 java.util.List loadAllViewpointsByObjID(java.lang.Integer objId)
          Loads all detail information for all viewpoints of a object specified.
 Viewpoint loadViewpointByID(java.lang.Integer id)
          Loads all detail information for a viewpoint identified by its id.
 Viewpoint loadViewpointByName(java.lang.String name)
          Loads all detail information for a viewpoint identified by its name.
 Viewpoint toViewpoint(SbiViewpoints hibViewpoint)
          From the hibernate BI value viewpoint at input, gives the corrispondent Viepoint object.
 
Methods inherited from class it.eng.spagobi.bo.dao.hibernate.AbstractHibernateDAO
getSession, logException
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ViewpointDAOHimpl

public ViewpointDAOHimpl()
Method Detail

loadAllViewpoints

public java.util.List loadAllViewpoints()
                                 throws it.eng.spago.error.EMFUserError
Description copied from interface: IViewpointDAO
Loads all detail information for all viewpoints. For each of them, detail information is stored into a ViewPoint object. After that, all value constraints are stored into a List, which is returned.

Specified by:
loadAllViewpoints in interface IViewpointDAO
Returns:
A list containing all viewpoints objects
Throws:
it.eng.spago.error.EMFUserError - If an Exception occurred
See Also:
IViewpointDAO.loadAllViewpoints()

loadAllViewpointsByObjID

public java.util.List loadAllViewpointsByObjID(java.lang.Integer objId)
                                        throws it.eng.spago.error.EMFUserError
Description copied from interface: IViewpointDAO
Loads all detail information for all viewpoints of a object specified. For each of them, detail information is stored into a ViewPoint object. After that, all value constraints are stored into a List, which is returned.

Specified by:
loadAllViewpointsByObjID in interface IViewpointDAO
Returns:
A list containing all viewpoints objects
Throws:
it.eng.spago.error.EMFUserError - If an Exception occurred
See Also:
IViewpointDAO.loadAllViewpoints()

loadViewpointByID

public Viewpoint loadViewpointByID(java.lang.Integer id)
                            throws it.eng.spago.error.EMFUserError
Description copied from interface: IViewpointDAO
Loads all detail information for a viewpoint identified by its id. All these information are stored into a Viewpoint object, which is returned.

Specified by:
loadViewpointByID in interface IViewpointDAO
Parameters:
id - The id for the viewpoint to load
Returns:
A Viewpoint object containing all loaded information
Throws:
it.eng.spago.error.EMFUserError - If an Exception occurred
See Also:
IViewpointDAO.loadViewpointByID(java.lang.Integer)

loadViewpointByName

public Viewpoint loadViewpointByName(java.lang.String name)
                              throws it.eng.spago.error.EMFUserError
Description copied from interface: IViewpointDAO
Loads all detail information for a viewpoint identified by its name. All these information are stored into a Viewpoint object, which is returned.

Specified by:
loadViewpointByName in interface IViewpointDAO
Parameters:
name - The name for the viewpoint to load
Returns:
A Viewpoint object containing all loaded information
Throws:
it.eng.spago.error.EMFUserError - If an Exception occurred
See Also:
IViewpointDAO.loadViewpointByName(java.lang.String)

eraseViewpoint

public void eraseViewpoint(java.lang.Integer id)
                    throws it.eng.spago.error.EMFUserError
Description copied from interface: IViewpointDAO
Implements the query to erase a viewpoint. All information needed is stored into the input Viewpoint object.

Specified by:
eraseViewpoint in interface IViewpointDAO
Parameters:
id - The identifier of viewpoint
Throws:
it.eng.spago.error.EMFUserError - If an Exception occurred
See Also:
it.eng.spagobi.bo.dao.IViewpointDAO#eraseViewpoint(it.eng.spagobi.bo.Viewpoint)

insertViewpoint

public void insertViewpoint(Viewpoint viewpoint)
                     throws it.eng.spago.error.EMFUserError
Description copied from interface: IViewpointDAO
Implements the query to insert a viewpoint. All information needed is stored into the input Viewpoint object.

Specified by:
insertViewpoint in interface IViewpointDAO
Throws:
it.eng.spago.error.EMFUserError - If an Exception occurred
See Also:
IViewpointDAO.insertViewpoint(it.eng.spagobi.bo.Viewpoint)

toViewpoint

public Viewpoint toViewpoint(SbiViewpoints hibViewpoint)
From the hibernate BI value viewpoint at input, gives the corrispondent Viepoint object.

Parameters:
hibViewpoint - The hybernate viewpoint at input
Returns:
The corrispondent Viewpoint object