|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectit.eng.spagobi.commons.dao.AbstractHibernateDAO
it.eng.spagobi.analiticalmodel.document.dao.BIObjectDAOHibImpl
public class BIObjectDAOHibImpl
Defines the Hibernate implementations for all DAO methods, for a BI Object.
Field Summary | |
---|---|
static java.lang.String |
COLUMN_DATE
|
static java.lang.String |
COLUMN_ENGINE
|
static java.lang.String |
COLUMN_LABEL
|
static java.lang.String |
COLUMN_NAME
|
static java.lang.String |
COLUMN_STATE
|
static java.lang.String |
COLUMN_TYPE
|
static java.lang.String |
CONTAINS
|
static java.lang.String |
END_WITH
|
static java.lang.String |
EQUALS_OR_GREATER_THAN
|
static java.lang.String |
EQUALS_OR_LESS_THAN
|
static java.lang.String |
EQUALS_TO
|
static java.lang.String |
GREATER_THAN
|
static java.lang.String |
IS_NULL
|
static java.lang.String |
LESS_THAN
|
static java.lang.String |
NOT_CONTAINS
|
static java.lang.String |
NOT_ENDS_WITH
|
static java.lang.String |
NOT_EQUALS_TO
|
static java.lang.String |
NOT_NULL
|
static java.lang.String |
SCOPE_NODE
|
static java.lang.String |
START_WITH
|
Constructor Summary | |
---|---|
BIObjectDAOHibImpl()
|
Method Summary | |
---|---|
java.lang.Integer |
countBIObjects()
|
void |
eraseBIObject(BIObject obj,
java.lang.Integer idFunct)
Erase bi object. |
java.util.List |
getBIObjectParameters(BIObject aBIObject)
Gets the biparameters associated with to a biobject. |
java.util.List |
getCorrectRolesForExecution(java.lang.Integer id)
Gets the correct roles for execution. |
java.util.List |
getCorrectRolesForExecution(java.lang.Integer id,
it.eng.spago.security.IEngUserProfile profile)
Gets the correct roles for execution. |
void |
insertBIObject(BIObject obj)
Implements the query to insert a BIObject. |
void |
insertBIObject(BIObject obj,
boolean loadParsDC)
Implements the query to insert a BIObject. |
java.lang.Integer |
insertBIObject(BIObject obj,
ObjTemplate objTemp)
Implements the query to insert a BIObject. |
void |
insertBIObject(BIObject obj,
ObjTemplate objTemp,
boolean loadParsDC)
Implements the query to insert a BIObject and its template. |
java.util.List |
loadAllBIObjects()
Loads all the BIObjects. |
java.util.List |
loadAllBIObjects(java.lang.String filterOrder)
Loads all the BIObjects ordered by parameter column. |
java.util.List |
loadAllBIObjectsFromInitialPath(java.lang.String initialPath)
Loads all the BIObjects that belong to sub functionalities of the given functionality path. |
java.util.List |
loadAllBIObjectsFromInitialPath(java.lang.String initialPath,
java.lang.String filterOrder)
Loads all the BIObjects that belong to sub functionalities of the given functionality path and ordered by parameter column. |
BIObject |
loadBIObjectById(java.lang.Integer biObjectID)
Load bi object by id. |
BIObject |
loadBIObjectByLabel(java.lang.String label)
Load bi object by label. |
BIObject |
loadBIObjectForDetail(java.lang.Integer id)
Load bi object for detail. |
BIObject |
loadBIObjectForDetail(java.lang.String path)
Loads all detail information for a BI Object identified by its path in the cms. |
BIObject |
loadBIObjectForExecutionByIdAndRole(java.lang.Integer id,
java.lang.String role)
Load bi object for execution by id and role. |
BIObject |
loadBIObjectForExecutionByLabelAndRole(java.lang.String label,
java.lang.String role)
Loads all information for the execution of a BI Object identified by its label and its role . |
BIObject |
loadBIObjectForTree(java.lang.Integer id)
Load bi object for tree. |
java.util.List |
loadBIObjects(java.lang.Integer folderID,
it.eng.spago.security.IEngUserProfile profile,
boolean isPersonalFolder)
Loads visible objects of the user roles |
java.util.List |
loadBIObjects(java.lang.String type,
java.lang.String state,
java.lang.String folderPath)
Loads all the BIObjects filtering with the input parameters. |
java.util.List |
loadPagedObjectsList(java.lang.Integer offset,
java.lang.Integer fetchSize)
|
void |
modifyBIObject(BIObject obj)
Modify bi object. |
void |
modifyBIObject(BIObject obj,
boolean loadParsDC)
Modify bi object. |
void |
modifyBIObject(BIObject obj,
ObjTemplate objTemp)
Modify bi object. |
void |
modifyBIObject(BIObject obj,
ObjTemplate objTemp,
boolean loadParsDC)
Modify bi object. |
java.util.List |
searchBIObjects(java.lang.String valueFilter,
java.lang.String typeFilter,
java.lang.String columnFilter,
java.lang.String scope,
java.lang.Integer nodeFilter,
it.eng.spago.security.IEngUserProfile profile)
Search objects with the features specified |
BIObject |
toBIObject(SbiObjects hibBIObject)
From the Hibernate BI object at input, gives the corrispondent BI object. |
BIObjectParameter |
toBIObjectParameter(SbiObjPar hiObjPar)
From the hibernate BI object parameter at input, gives the corrispondent BIObjectParameter object. |
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 |
Field Detail |
---|
public static final java.lang.String COLUMN_LABEL
public static final java.lang.String COLUMN_NAME
public static final java.lang.String COLUMN_ENGINE
public static final java.lang.String COLUMN_STATE
public static final java.lang.String COLUMN_TYPE
public static final java.lang.String COLUMN_DATE
public static final java.lang.String SCOPE_NODE
public static final java.lang.String START_WITH
public static final java.lang.String END_WITH
public static final java.lang.String NOT_EQUALS_TO
public static final java.lang.String EQUALS_TO
public static final java.lang.String CONTAINS
public static final java.lang.String LESS_THAN
public static final java.lang.String EQUALS_OR_GREATER_THAN
public static final java.lang.String GREATER_THAN
public static final java.lang.String EQUALS_OR_LESS_THAN
public static final java.lang.String NOT_ENDS_WITH
public static final java.lang.String NOT_CONTAINS
public static final java.lang.String IS_NULL
public static final java.lang.String NOT_NULL
Constructor Detail |
---|
public BIObjectDAOHibImpl()
Method Detail |
---|
public BIObject loadBIObjectForExecutionByIdAndRole(java.lang.Integer id, java.lang.String role) throws it.eng.spago.error.EMFUserError
loadBIObjectForExecutionByIdAndRole
in interface IBIObjectDAO
id
- the idrole
- the role
it.eng.spago.error.EMFUserError
- the EMF user errorIBIObjectDAO.loadBIObjectForExecutionByIdAndRole(java.lang.Integer, java.lang.String)
public BIObject loadBIObjectById(java.lang.Integer biObjectID) throws it.eng.spago.error.EMFUserError
loadBIObjectById
in interface IBIObjectDAO
biObjectID
- the bi object id
it.eng.spago.error.EMFUserError
- the EMF user errorIBIObjectDAO.loadBIObjectById(java.lang.Integer)
public BIObject loadBIObjectForDetail(java.lang.Integer id) throws it.eng.spago.error.EMFUserError
loadBIObjectForDetail
in interface IBIObjectDAO
id
- the id
it.eng.spago.error.EMFUserError
- the EMF user errorIBIObjectDAO.loadBIObjectForDetail(java.lang.Integer)
public BIObject loadBIObjectByLabel(java.lang.String label) throws it.eng.spago.error.EMFUserError
loadBIObjectByLabel
in interface IBIObjectDAO
label
- the label
it.eng.spago.error.EMFUserError
- the EMF user errorIBIObjectDAO.loadBIObjectByLabel(java.lang.String)
public BIObject loadBIObjectForTree(java.lang.Integer id) throws it.eng.spago.error.EMFUserError
loadBIObjectForTree
in interface IBIObjectDAO
id
- the id
it.eng.spago.error.EMFUserError
- the EMF user errorIBIObjectDAO.loadBIObjectForTree(java.lang.Integer)
public void modifyBIObject(BIObject obj) throws it.eng.spago.error.EMFUserError
modifyBIObject
in interface IBIObjectDAO
obj
- the obj
it.eng.spago.error.EMFUserError
- the EMF user errorIBIObjectDAO.modifyBIObject(it.eng.spagobi.analiticalmodel.document.bo.BIObject)
public void modifyBIObject(BIObject obj, boolean loadParsDC) throws it.eng.spago.error.EMFUserError
modifyBIObject
in interface IBIObjectDAO
obj
- the objloadParsDC
- boolean for management Document Composition params
it.eng.spago.error.EMFUserError
- the EMF user errorIBIObjectDAO.modifyBIObject(it.eng.spagobi.analiticalmodel.document.bo.BIObject)
public void modifyBIObject(BIObject obj, ObjTemplate objTemp) throws it.eng.spago.error.EMFUserError
modifyBIObject
in interface IBIObjectDAO
obj
- the objobjTemp
- the obj temp
it.eng.spago.error.EMFUserError
- the EMF user errorit.eng.spagobi.analiticalmodel.document.dao.IBIObjectDAO#modifyBIObjectWithoutVersioning(it.eng.spagobi.analiticalmodel.document.bo.BIObject)
public void modifyBIObject(BIObject obj, ObjTemplate objTemp, boolean loadParsDC) throws it.eng.spago.error.EMFUserError
modifyBIObject
in interface IBIObjectDAO
obj
- the objobjTemp
- the obj temploadParsDC
- boolean for management Document Composition params
it.eng.spago.error.EMFUserError
- the EMF user errorit.eng.spagobi.analiticalmodel.document.dao.IBIObjectDAO#modifyBIObjectWithoutVersioning(it.eng.spagobi.analiticalmodel.document.bo.BIObject)
public void insertBIObject(BIObject obj, ObjTemplate objTemp, boolean loadParsDC) throws it.eng.spago.error.EMFUserError
BIObject
and ObjTemplate
objects.
insertBIObject
in interface IBIObjectDAO
obj
- The object containing all insert informationobjTemp
- The template of the biobjectloadParsDC
- the boolean that permit the loading of parameters of a document composition
it.eng.spago.error.EMFUserError
- If an Exception occurredpublic void insertBIObject(BIObject obj) throws it.eng.spago.error.EMFUserError
BIObject
object.
insertBIObject
in interface IBIObjectDAO
obj
- The object containing all insert information
it.eng.spago.error.EMFUserError
- If an Exception occurredpublic void insertBIObject(BIObject obj, boolean loadParsDC) throws it.eng.spago.error.EMFUserError
BIObject
object.
insertBIObject
in interface IBIObjectDAO
obj
- The object containing all insert informationloadParsDC
- boolean for management Document Composition params
it.eng.spago.error.EMFUserError
- If an Exception occurredpublic java.lang.Integer insertBIObject(BIObject obj, ObjTemplate objTemp) throws it.eng.spago.error.EMFUserError
BIObject
object.
insertBIObject
in interface IBIObjectDAO
obj
- The object containing all insert informationloadParsDC
- boolean for management Document Composition params
it.eng.spago.error.EMFUserError
- If an Exception occurredpublic void eraseBIObject(BIObject obj, java.lang.Integer idFunct) throws it.eng.spago.error.EMFUserError
eraseBIObject
in interface IBIObjectDAO
obj
- the objidFunct
- the id funct
it.eng.spago.error.EMFUserError
- the EMF user errorIBIObjectDAO.eraseBIObject(it.eng.spagobi.analiticalmodel.document.bo.BIObject, java.lang.Integer)
public java.util.List getCorrectRolesForExecution(java.lang.Integer id, it.eng.spago.security.IEngUserProfile profile) throws it.eng.spago.error.EMFUserError
getCorrectRolesForExecution
in interface IBIObjectDAO
id
- the idprofile
- the profile
it.eng.spago.error.EMFUserError
- the EMF user errorIBIObjectDAO.getCorrectRolesForExecution(java.lang.Integer, it.eng.spago.security.IEngUserProfile)
public java.util.List getCorrectRolesForExecution(java.lang.Integer id) throws it.eng.spago.error.EMFUserError
getCorrectRolesForExecution
in interface IBIObjectDAO
id
- the id
it.eng.spago.error.EMFUserError
- the EMF user errorIBIObjectDAO.getCorrectRolesForExecution(java.lang.Integer)
public BIObject toBIObject(SbiObjects hibBIObject)
hibBIObject
- The Hibernate BI object
BIObject
public BIObjectParameter toBIObjectParameter(SbiObjPar hiObjPar)
BIObjectParameter
object.
hiObjPar
- The hybernate BI object parameter
BIObjectParameter
public java.util.List loadAllBIObjects() throws it.eng.spago.error.EMFUserError
IBIObjectDAO
loadAllBIObjects
in interface IBIObjectDAO
it.eng.spago.error.EMFUserError
- If an Exception occurredpublic java.util.List loadAllBIObjects(java.lang.String filterOrder) throws it.eng.spago.error.EMFUserError
IBIObjectDAO
loadAllBIObjects
in interface IBIObjectDAO
filterOrder
- the filter order
it.eng.spago.error.EMFUserError
- If an Exception occurredpublic java.util.List getBIObjectParameters(BIObject aBIObject) throws it.eng.spago.error.EMFUserError
getBIObjectParameters
in interface IBIObjectDAO
aBIObject
- BIObject the biobject to analize
it.eng.spago.error.EMFUserError
- the EMF user errorpublic java.util.List loadAllBIObjectsFromInitialPath(java.lang.String initialPath) throws it.eng.spago.error.EMFUserError
IBIObjectDAO
loadAllBIObjectsFromInitialPath
in interface IBIObjectDAO
initialPath
- the initial path
it.eng.spago.error.EMFUserError
- If an Exception occurredpublic java.util.List loadAllBIObjectsFromInitialPath(java.lang.String initialPath, java.lang.String filterOrder) throws it.eng.spago.error.EMFUserError
IBIObjectDAO
loadAllBIObjectsFromInitialPath
in interface IBIObjectDAO
initialPath
- the initial pathfilterOrder
- the filter order
it.eng.spago.error.EMFUserError
- If an Exception occurredpublic BIObject loadBIObjectForDetail(java.lang.String path) throws it.eng.spago.error.EMFUserError
IBIObjectDAO
path
in the cms. All these information,
achived by a query to the DB, are stored into a BIObject
object,
which is returned.
loadBIObjectForDetail
in interface IBIObjectDAO
path
- the path
BIObject
it.eng.spago.error.EMFUserError
- If an Exception occurspublic java.util.List loadBIObjects(java.lang.String type, java.lang.String state, java.lang.String folderPath) throws it.eng.spago.error.EMFUserError
IBIObjectDAO
loadBIObjects
in interface IBIObjectDAO
type
- the type of the biobjects (DASH/REPORT/OLAP...); if it is null, all types will be consideredstate
- the type of the biobjects (REL/DEV...); if it is null, all states will be consideredfolderPath
- the path of the folder; if it is null, all folders will be considered
it.eng.spago.error.EMFUserError
- If an Exception occurredpublic java.util.List loadBIObjects(java.lang.Integer folderID, it.eng.spago.security.IEngUserProfile profile, boolean isPersonalFolder) throws it.eng.spago.error.EMFUserError
loadBIObjects
in interface IBIObjectDAO
folderID
- profile
- the profile of the user
it.eng.spago.error.EMFUserError
public java.util.List searchBIObjects(java.lang.String valueFilter, java.lang.String typeFilter, java.lang.String columnFilter, java.lang.String scope, java.lang.Integer nodeFilter, it.eng.spago.security.IEngUserProfile profile) throws it.eng.spago.error.EMFUserError
searchBIObjects
in interface IBIObjectDAO
valueFilter
- the value of the filter for the researchtypeFilter
- the type of the filter (the operator: equals, starts...)columnFilter
- the column on which the filter is appliednodeFilter
- the node (folder id) on which the filter is appliedprofile
- the profile of the user
it.eng.spago.error.EMFUserError
public java.lang.Integer countBIObjects() throws it.eng.spago.error.EMFUserError
countBIObjects
in interface IBIObjectDAO
it.eng.spago.error.EMFUserError
public java.util.List loadPagedObjectsList(java.lang.Integer offset, java.lang.Integer fetchSize) throws it.eng.spago.error.EMFUserError
loadPagedObjectsList
in interface IBIObjectDAO
it.eng.spago.error.EMFUserError
public BIObject loadBIObjectForExecutionByLabelAndRole(java.lang.String label, java.lang.String role) throws it.eng.spago.error.EMFUserError
IBIObjectDAO
label
and its role
. All these information,
achived by a query to the DB, are stored into a BIObject
object,
which is returned.
loadBIObjectForExecutionByLabelAndRole
in interface IBIObjectDAO
label
- The BI object labelrole
- The BI object role
BIObject
it.eng.spago.error.EMFUserError
- If an Exception occurs
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |