it.eng.spagobi.tools.objmetadata.dao
Class ObjMetacontentDAOHibImpl

java.lang.Object
  extended by it.eng.spagobi.commons.dao.AbstractHibernateDAO
      extended by it.eng.spagobi.tools.objmetadata.dao.ObjMetacontentDAOHibImpl
All Implemented Interfaces:
ISpagoBIDao, IObjMetacontentDAO

public class ObjMetacontentDAOHibImpl
extends AbstractHibernateDAO
implements IObjMetacontentDAO

Defines the Hibernate implementations for all DAO methods, for a metadata content


Constructor Summary
ObjMetacontentDAOHibImpl()
           
 
Method Summary
 void eraseObjMetadata(ObjMetacontent aObjMetacontent)
          Erase object's metadata content
 void insertObjMetacontent(ObjMetacontent aObjMetacontent)
          Insert object's metadata content.
 java.util.List loadAllObjMetacontent()
          Load all metadata content.
 ObjMetacontent loadObjMetacontent(java.lang.Integer objMetaId, java.lang.Integer biObjId, java.lang.Integer subObjId)
          Load object's metadata by objMetaId, biObjId and subobjId.
 ObjMetacontent loadObjMetaContentByID(java.lang.Integer id)
          Load object's metadata content by id.
 java.util.List loadObjMetacontentByObjMetaId(java.lang.Integer objMetaId)
          Load object's metadata by objMetaId.
 java.util.List loadObjOrSubObjMetacontents(java.lang.Integer biObjId, java.lang.Integer subObjId)
          Loads all metacontent for one object or for one subobject, if biObjId is not null load all metacontents for object, if subObjId is not null load all metacontents for subobject
 void modifyObjMetacontent(ObjMetacontent aObjMetacontent)
          Modify metadata content.
 
Methods inherited from class it.eng.spagobi.commons.dao.AbstractHibernateDAO
commitIfActiveAndClose, 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

ObjMetacontentDAOHibImpl

public ObjMetacontentDAOHibImpl()
Method Detail

loadObjMetaContentByID

public ObjMetacontent loadObjMetaContentByID(java.lang.Integer id)
                                      throws it.eng.spago.error.EMFUserError
Load object's metadata content by id.

Specified by:
loadObjMetaContentByID in interface IObjMetacontentDAO
Parameters:
id - the identifier
Returns:
the metadata content
Throws:
it.eng.spago.error.EMFUserError - the EMF user error
See Also:
IObjMetacontentDAO.loadObjMetaContentByID(java.lang.Integer)

loadObjMetacontentByObjMetaId

public java.util.List loadObjMetacontentByObjMetaId(java.lang.Integer objMetaId)
                                             throws it.eng.spago.error.EMFUserError
Load object's metadata by objMetaId.

Specified by:
loadObjMetacontentByObjMetaId in interface IObjMetacontentDAO
Parameters:
objMetaId - the objMetaId
Returns:
A list containing all metacontent of specific metadata
Throws:
it.eng.spago.error.EMFUserError - the EMF user error
See Also:
IObjMetacontentDAO.loadObjMetacontentByObjMetaId(java.lang.Integer)

loadObjOrSubObjMetacontents

public java.util.List loadObjOrSubObjMetacontents(java.lang.Integer biObjId,
                                                  java.lang.Integer subObjId)
                                           throws it.eng.spago.error.EMFUserError
Loads all metacontent for one object or for one subobject, if biObjId is not null load all metacontents for object, if subObjId is not null load all metacontents for subobject

Specified by:
loadObjOrSubObjMetacontents in interface IObjMetacontentDAO
Parameters:
biObjId - The biObjId for the object to load
subObjId - The subObjId for the subObject to load
Returns:
A list containing all metadata objects
Throws:
it.eng.spago.error.EMFUserError - If an Exception occurred

loadObjMetacontent

public ObjMetacontent loadObjMetacontent(java.lang.Integer objMetaId,
                                         java.lang.Integer biObjId,
                                         java.lang.Integer subObjId)
                                  throws it.eng.spago.error.EMFUserError
Load object's metadata by objMetaId, biObjId and subobjId.

Specified by:
loadObjMetacontent in interface IObjMetacontentDAO
Parameters:
objMetaId - the objMetaId
biObjId - the biObjId
subObjId - the subObjId
Returns:
A list containing all metadata contents objects of a specific subObjId
Throws:
it.eng.spago.error.EMFUserError - the EMF user error
See Also:
it.eng.spagobi.tools.objmetadata.dao.IObjMetacontentDAO#loadObjMetacontentByObjId(java.lang.Integer, java.lang.Integer)

loadAllObjMetacontent

public java.util.List loadAllObjMetacontent()
                                     throws it.eng.spago.error.EMFUserError
Load all metadata content.

Specified by:
loadAllObjMetacontent in interface IObjMetacontentDAO
Returns:
the list
Throws:
it.eng.spago.error.EMFUserError - the EMF user error
See Also:
IObjMetacontentDAO.loadAllObjMetacontent()

modifyObjMetacontent

public void modifyObjMetacontent(ObjMetacontent aObjMetacontent)
                          throws it.eng.spago.error.EMFUserError
Modify metadata content.

Specified by:
modifyObjMetacontent in interface IObjMetacontentDAO
Parameters:
aObjMetacontent - the meta content
Throws:
it.eng.spago.error.EMFUserError - the EMF user error
See Also:
it.eng.spagobi.tools.objmetadata.dao.IObjMetadataDAO#modifyObjMetacontent(it.eng.spagobi.tools.objmetadata.bo.ObjMetacontent)

insertObjMetacontent

public void insertObjMetacontent(ObjMetacontent aObjMetacontent)
                          throws it.eng.spago.error.EMFUserError
Insert object's metadata content.

Specified by:
insertObjMetacontent in interface IObjMetacontentDAO
Parameters:
aObjMetacontent - the metadata content
Throws:
it.eng.spago.error.EMFUserError - the EMF user error
See Also:
it.eng.spagobi.tools.objmetadata.dao.IObjMetadataDAO#insertObjMetacontent(it.eng.spagobi.tools.objmetadata.bo.ObjMetacontent)

eraseObjMetadata

public void eraseObjMetadata(ObjMetacontent aObjMetacontent)
                      throws it.eng.spago.error.EMFUserError
Erase object's metadata content

Specified by:
eraseObjMetadata in interface IObjMetacontentDAO
Parameters:
ObjMetacontent - the metadata content
Throws:
it.eng.spago.error.EMFUserError - the EMF user error
See Also:
it.eng.spagobi.tools.objmetadata.dao.IObjMetadataDAO#eraseObjMetadata(it.eng.spagobi.tools.objmetadata.bo.ObjMetacontent)