it.eng.spagobi.tools.objmetadata.dao
Interface IObjMetacontentDAO

All Superinterfaces:
ISpagoBIDao
All Known Implementing Classes:
ObjMetacontentDAOHibImpl

public interface IObjMetacontentDAO
extends ISpagoBIDao

Defines the interfaces for all methods needed to insert, modify and deleting object's metadata.


Method Summary
 void eraseObjMetadata(ObjMetacontent aObjMetacontent)
          Implements the query to erase an object's metadata content.
 void insertObjMetacontent(ObjMetacontent aObjMetacontent)
          Implements the query to insert an object's metadata content.
 java.util.List loadAllObjMetacontent()
          Loads all detail information for all object's metadata.
 ObjMetacontent loadObjMetacontent(java.lang.Integer objMetaId, java.lang.Integer biObjId, java.lang.Integer subObjId)
          Loads all detail information for object's metadata content whose objMetaId is equal to objMetaId and biobj_id is equal to biObjId.
 ObjMetacontent loadObjMetaContentByID(java.lang.Integer id)
          Loads all detail information for a metadata content identified by its id.
 java.util.List loadObjMetacontentByObjMetaId(java.lang.Integer objMetaId)
          Loads all detail information for object's metadata content whose objMetaId is equal to 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)
          Implements the query to modify an object's metadata content.
 
Methods inherited from interface it.eng.spagobi.commons.dao.ISpagoBIDao
getUserProfile, setUserID, setUserProfile
 

Method Detail

loadObjMetaContentByID

ObjMetacontent loadObjMetaContentByID(java.lang.Integer id)
                                      throws it.eng.spago.error.EMFUserError
Loads all detail information for a metadata content identified by its id. All these information, achived by a query to the DB, are stored into a metadata object, which is returned.

Parameters:
id - The id for the metadata to load
Returns:
A objMetadata object containing all loaded information
Throws:
it.eng.spago.error.EMFUserError - If an Exception occurred

loadObjMetacontentByObjMetaId

java.util.List loadObjMetacontentByObjMetaId(java.lang.Integer objMetaId)
                                             throws it.eng.spago.error.EMFUserError
Loads all detail information for object's metadata content whose objMetaId is equal to objMetaId.

Parameters:
objMetaId - The objMetaId for the metadata to load
Returns:
A list containing all metadata objects
Throws:
it.eng.spago.error.EMFUserError - If an Exception occurred

loadObjMetacontent

ObjMetacontent loadObjMetacontent(java.lang.Integer objMetaId,
                                  java.lang.Integer biObjId,
                                  java.lang.Integer subObjId)
                                  throws it.eng.spago.error.EMFUserError
Loads all detail information for object's metadata content whose objMetaId is equal to objMetaId and biobj_id is equal to biObjId.

Parameters:
objMetaId - The objMetaId for the metadata to load
biObjId - The biObjId for the object to load
subObjId - The subObjId for the subObject to load
Returns:
A list containing all metadata objects (it should contains ever only one element)
Throws:
it.eng.spago.error.EMFUserError - If an Exception occurred

loadObjOrSubObjMetacontents

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

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

loadAllObjMetacontent

java.util.List loadAllObjMetacontent()
                                     throws it.eng.spago.error.EMFUserError
Loads all detail information for all object's metadata. For each of them, detail information is stored into a ObjMetadata object. After that, all metadata are stored into a List, which is returned.

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

modifyObjMetacontent

void modifyObjMetacontent(ObjMetacontent aObjMetacontent)
                          throws it.eng.spago.error.EMFUserError
Implements the query to modify an object's metadata content. All information needed is stored into the input ObjMetacontent object.

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

insertObjMetacontent

void insertObjMetacontent(ObjMetacontent aObjMetacontent)
                          throws it.eng.spago.error.EMFUserError
Implements the query to insert an object's metadata content. All information needed is stored into the input ObjMetacontent object.

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

eraseObjMetadata

void eraseObjMetadata(ObjMetacontent aObjMetacontent)
                      throws it.eng.spago.error.EMFUserError
Implements the query to erase an object's metadata content. All information needed is stored into the input ObjMetacontent object.

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